kp2a has asked for the wisdom of the Perl Monks concerning the following question:
I have a script that polls thousands of devices with Net::SNMP
If device needs attention I connect via SOCKET in myownmodule.pm and diddle some parameters in the device.
Works AOK but after a random number of diddles like one to a few dozen which are successful, perl stops, no error message, no crash, nothing unique about the device it stops on, echo $? = 0
Successful diddles are reported via STDOUT to a log file. The log file records the last diddle up to the point of executing the updating of a parameter in the device but perl quits talking before the confirming log message.
Upon polling the device afterwards, the update was successful!
This is very annoying because I have thousands of devices to tend to!
I need a clue of where to start looking and/or how I might capture some debug information. It would be rather tedious to run in debug mode.
Thanks!
If device needs attention I connect via SOCKET in myownmodule.pm and diddle some parameters in the device.
Works AOK but after a random number of diddles like one to a few dozen which are successful, perl stops, no error message, no crash, nothing unique about the device it stops on, echo $? = 0
Successful diddles are reported via STDOUT to a log file. The log file records the last diddle up to the point of executing the updating of a parameter in the device but perl quits talking before the confirming log message.
Upon polling the device afterwards, the update was successful!
This is very annoying because I have thousands of devices to tend to!
I need a clue of where to start looking and/or how I might capture some debug information. It would be rather tedious to run in debug mode.
Thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: unexpected quit - no error message
by almut (Canon) on Mar 02, 2009 at 16:44 UTC | |
by kp2a (Sexton) on Mar 02, 2009 at 18:20 UTC | |
by almut (Canon) on Mar 02, 2009 at 19:18 UTC | |
by CountZero (Bishop) on Mar 02, 2009 at 21:11 UTC | |
Re: unexpected quit - no error message
by zentara (Archbishop) on Mar 02, 2009 at 16:10 UTC | |
Re: unexpected quit - no error message
by shmem (Chancellor) on Mar 02, 2009 at 16:11 UTC |
Back to
Seekers of Perl Wisdom