in reply to set/get requests to Table

The MIB alone won't get us very far. What actual code are you using? What modules? etc etc.. Please, show us what you've tried, don't just tell.

C.

Replies are listed 'Best First'.
Re^2: set/get requests to Table
by cleo (Initiate) on Aug 27, 2004 at 07:46 UTC
    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...