Hi, OK I understand that these two values to be set in a single set command. But it still gives the bad value name error.
[root@localhost ~]# snmpset -v 2c -c public 10.20.20.20 ipAddressIfIndex.ipv4.4.10.10.10.30 = 3 ipAddressStatus.ipv4.4.10.10.10.30 = createAndGo ipAddressStatus.ipv4.4.10.10.10.30: Bad value name (createAndGo) And I tried with the integer equivalent of createAndGo (4) also [root@localhost ~]# snmpset -v 2c -c public 10.20.20.20 ipAddressIfIndex.ipv4.4.10.10.10.30 = 3 ipAddressStatus.ipv4.4.10.10.10.30 = 4 Error in packet. Reason: wrongValue (The set value is illegal or unsupported in some way) Failed object: IP-MIB::ipAddressStatus.ipv4."10.10.10.30" And destroy is also giving bad value name error. Am I again doing wrong? Thanks and regards, Basil Joseph. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>> -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: 24 November 2011 19:59 To: Basil Joseph (WT01 - GMT-Telecom Equipment) Cc: [email protected] Subject: Re: Setting IP address through SNMP On 24 November 2011 14:15, <[email protected]> wrote: > # snmpget -v 2c -c public 10.20.20.20 > ipAddressIfIndex.ipv4.4.10.10.10.10 > IP-MIB::ipAddressIfIndex.ipv4."10.10.10.10" = INTEGER: 3 OK - so the ifIndex of the interface with this address is 3 > And I believe this is the value to be used in the next command. Correct # snmpset -v 2c -c public 10.20.20.20 ipAddressIfIndex.ipv4.4.10.10.10.30 = 3 # snmpset -v 2c -c public 10.20.20.20 ipAddressStatus.ipv4.4.10.10.10.30 = createAndGo No - those two assignments should be included within the same SET request. You are saying: "please create a row with index IPv4:10.10.10.30, and set the ifIndex value to 3" You can't set the ifIndex value on its own, since the row doesn't yet exist. You can't create the row (and make it active) on its own, since the agent doesn't know which interface should have this address. The agent needs *both* bits of information in order to do this. Dave ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
