in reply to Re: set/get requests to Table
in thread set/get requests to Table
it would generate an error like noSuchInstance on object 1.3.6.1.4.1.300001.2.1 tnx...im new to both perl and snmp and i really feel lost i hope you could help...use Net::SNMP; use strict; my $inputOID = '1.3.6.1.4.1.30000.1.2.1.1'; my $ASN_type = INTEGER; my $newVal = '2'; my ($session, $error ) = Net::SNMP->session( Hostname => '192.36.253.30', Community => 'private' ) || die "Can't open a session"; print $session->set_request($inputOID, $ASN_type, $newVal) || die "Can't set"; print my $answer = SEC_SNMP->getRequest($inputOID) || die "Cant' get";
|
|---|