Using a simple script, I have found that the SNMP module I'm using (5.0.6, to match the net-snmp version used with RedHat 8) works with some devices but not others. For instance, I can make a connection with machines running ucd-snmp, but not with HP printers or Brocade "Silkworm" switches. This same script run on a machine running SNMP.pm 4.2.0 and ucd-snmp 4.2.5 works fine. snmpget from the command line works with all of them.

At this point silkworm.monitor, foundry-chassis.monitor and printmib.monitor do not work for me.

Unfortunately I'm not enough of a perl scripter to further debug this issue. Anyone have any ideas?

Also, the monshow cgi seems to be failing when I click on the "Service" link to get more information. Is this a Perl 5.8 issue?

Hugh

#!/usr/bin/perl

use SNMP;

$host = $ARGV[0];

$s = new SNMP::Session(DestHost => $host, Community => public);

if($s)
{
        print "Session completed\n";
} else {
        print "Session could not be completed\n";
};


-- Hugh Caley, Unix Systems Administrator Affymetrix Inc., 510-428-8537 [EMAIL PROTECTED]

_______________________________________________
mon mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to