Hi all ! I’m still working on eventlog. I want to get events from a remote machine (it’s a server). It seems that the handle on the eventlog is well created by doing :

 

$handle=Win32::EventLog->new($eventLog, $host)

������� or die "Can't open $eventLog EventLog on $host\n";

 

but when I try to get the number of events and the the oldest record with :

 

$handle->GetNumber($recs)

������� or die "Can't get number of EventLog records on $host\n";

����������� $handle->GetOldest($base)

������� or die "Can't get number of oldest EventLog record on $host\n";

 

it doesn’t work and the script dies. Worse than that, if I can’t get this info, I can’t list all the events to read them with the read() function .

Did I miss something ??

Thanks…

----------------------------------

Jean-Christophe PINEAU

Ing�nieur r�seaux

[EMAIL PROTECTED]

 

Reply via email to