summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 69d16ad)
raw | patch | inline | side by side (parent: 69d16ad)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Nov 2008 15:44:34 +0000 (15:44 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Nov 2008 15:44:34 +0000 (15:44 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12901 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/server/events/gosaTriggered.pm | patch | blob | history |
index d4f321b7dc39af41f439c837677907916beef1c5..aaec74effca26710cb7ba202007f1663f949c951 100644 (file)
return ( $out_msg );
}
- my %data = ( 'macaddress' => \@{$msg_hash->{macaddress}} );
- my $wake_msg = &build_msg("trigger_wake", "GOSA", "KNOWN_SERVER", \%data);
- &main::server_server_com::trigger_wake($msg, $msg_hash, $session_id);
-
-
sub trigger_activate_new {
my ($msg, $msg_hash, $session_id) = @_;
my %data = ( 'macaddress' => $mac );
my $wake_msg = &build_msg("trigger_wake", "GOSA", "KNOWN_SERVER", \%data);
&main::server_server_com::trigger_wake($msg, $msg_hash, $session_id);
- my $sql_statement= "SELECT * FROM $known_server_tn";
+ my $sql_statement= "SELECT * FROM $main::known_server_tn";
my $query_res = $main::known_server_db->select_dbentry( $sql_statement );
while( my ($hit_num, $hit) = each %{ $query_res } ) {
my $host_name = $hit->{hostname};
} elsif ($ldap_mesg->count == 0) {
&main::daemon_log("$session_id WARNING: No System with mac address '$mac' was found in base '".$main::ldap_base."'! Re-queuing job.", 4);
my $sql_statement = "UPDATE ".$main::job_queue_tn.
- ." SET status='waiting', timestamp = '".(&calc_timestamp(&get_time(), 'plus', 60))."' ".
- ." WHERE id = $jobdb_id";
+ " SET status='waiting', timestamp = '".(&calc_timestamp(&get_time(), 'plus', 60))."' ".
+ " WHERE id = $jobdb_id";
$main::job_db->exec_statement($sql_statement);
return undef;
}