I'm using the net::snmp module.
here's the code i used to try the custom mib generated oid's
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";
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... |