Not sure if your wait function is correct.
1 = normal (successful completion)
18 = processing (this is good, not bad)
6 = tftpTimeoutError status,ro
7 = tftpOutOfBufferSpace status,ro
8 = tftpBusy status,ro
9 = tftpRemoteOtherErrors status,ro
10 = tftpRemoteNoFile status,ro
11 = tftpRemoteBadAccess status,ro
12 = tftpRemoteDiskFull status,ro
13 = tftpRemoteBadOperation status,ro
14 = tftpRemoteBadId status,ro
15 = tftpRemoteFileExists status,ro
16 = tftpRemoteNoUser status,ro
17 = operationError status,ro
This may be overkill, but I would like to put an IF statement for each
error, so that I can see it in the logs...of course this after I
actually see it work ;)
On Thu, 2007-07-26 at 23:28 -0500, Craig Small wrote:
> for($i=0; $i < 30; $i++) {
> $result = snmp_get($ip, $rwcommunity, "$oid.9");
> if ($result == 1) // Complete :)
> return true;
> if ($result != 18) { // Not processing :(
> logger("Transfer failed to $ip : Error $result");
> return false;
> }
> } // for
> return false;
--
Jeffrey Singleton
Network Systems Administrator (Trusted Source)
Secure Computing Corporation
48000 North Point Parkway
Alpharetta, GA 30022
C: +1 770-820-2909
O: +1 678-904-3694
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users