- or download this
#!/usr/bin/perl
...
my $session = new SNMP::Session(DestHost => $ARGV[0], Community =>$ARG
+V[1]);
my $numInts = $session->get('1.3.6.1.2.1.2.1.0');
print "Number of Interfaces: $numInts\n";
- or download this
#!/usr/bin/perl
...
print "$ip -> $mac\n";
};
($ip,$mac) = $session->getnext($vars);
- or download this
#!/usr/bin/perl
...
print "SNMP::Info determined this device to fall
under subclass: $class\n";