Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

perl/snmp set_request

  • 02-03-2004 4:48pm
    #1
    Registered Users, Registered Users 2 Posts: 2,591 ✭✭✭


    hi all hope ye can help i trying to set multiple values in the smp mib2 and the following is the code i using but it only sets the first one
    $snmp_session is an net::snmp object to the host and with the correct community name. i have no problem, setting the first one but when i try to set the second one it doesnt change it at all i using perl to write the script

    my $setResponsePDU = $snmp_session->set_request(sysName,OCTET_STRING,$newname );
    my $setResponsePDU1 = $snmp_session->set_request(sysDescr,OCTET_STRING,$newdescription );
    my $setResponsePDU2 = $snmp_session->set_request(sysLocation,OCTET_STRING,$newlocation );
    my $setResponsePDU3 = $snmp_session->set_request(sysContact,OCTET_STRING,$newcontact );

    any help would be great
    tanx


Comments

  • Closed Accounts Posts: 10 jdsiiken


    As far as i know, the sysDescr OID is read-only


  • Registered Users, Registered Users 2 Posts: 2,591 ✭✭✭tommycahir


    thought it mite be. but wasnt really sure..
    tanx for info but solved the probhad to rewrite code and also trysort a config issue with Net::snmp.


Advertisement