Hi, I am facing a problem in setting ipaddress value using snmpset command.I have created a SNMP table where i have lot of objects with Syntax IpAddress,PhysAddress,Integer32....
I am successful in getting the ipaddress value using snmpget.I am now trying to set a ipaddress for a object having a Syntax IpAddress using snmpset command. I am using snmpv2 and i have properly given the community name and its access.I have searched in Google for setting the ipaddress value using snmpset.But i couldnt get it right. I have tried so many options for setting the value.below are the commands which i used for setting the ipaddress value.kindly go thro it and help me accordingly. #snmpset -v 2c -c viswa 172.29.38.91 TMRND-OLT-MIB::oltIpAddress.20 a 172.29.38.97 Error in packet. Reason: wrongType (The set datatype does not match the data type the agent expects) Failed object: TMRND-OLT-MIB::oltIpAddress.20 viswanat...@viswanathan-desktop:~/net-snmp-5.4.2.1/subagent/table/ TMRNDTABLE$ snmpset -v 2c -c viswa 172.29.38.91 TMRND-OLT- MIB::oltIpAddress.20 a 172 29 38 97 29: Bad object type: 3 viswanat...@viswanathan-desktop:~/net-snmp-5.4.2.1/subagent/table/ TMRNDTABLE$ snmpset -v 2c -c viswa 172.29.38.91 TMRND-OLT- MIB::oltIpAddress.20 a 172293897 Error in packet. Reason: wrongType (The set datatype does not match the data type the agent expects) Failed object: TMRND-OLT-MIB::oltIpAddress.20 What is the correct way to set the ipaddress value in snmp using snmpset command??Help me in this regard. Regards Viswanathan M ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users