iwanthome has asked for the wisdom of the Perl Monks concerning the following question:
it will success. But if I use packet Net::SNMP and code it in perl scriptsnmpset -v 1 -c pri 99.1.1.1 .1.3.6.1.4.1.9.9.16.1.1.1.3.333 x "63 1 4 +0 47"
Cisco device will report "Received badValue(3) error-status at error-index 1". I guess maybe the format of IPADDRESS isn't suitable. So how to specify ipaddress in perl script with package Net::SNMP ? thanks!use Net::SNMP ; $session->set_request( -varbindlist => ['.1.3.6.1.4.1.9.9.16.1.1.1.3.333',IPADDRESS,$r_ip +] );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to code snmpset ?
by naChoZ (Curate) on Mar 23, 2005 at 13:07 UTC | |
by iwanthome (Beadle) on Mar 24, 2005 at 08:24 UTC | |
|
Re: How to code snmpset ?
by zengargoyle (Deacon) on Mar 23, 2005 at 15:51 UTC | |
by iwanthome (Beadle) on Mar 24, 2005 at 08:30 UTC |