atom feed9 messages in net.sourceforge.lists.net-snmp-codersRE: Setting IP address through SNMP
FromSent OnAttachments
basi...@wipro.comNov 24, 2011 4:09 am 
Dave ShieldNov 24, 2011 4:55 am 
basi...@wipro.comNov 24, 2011 6:15 am 
Dave ShieldNov 24, 2011 6:28 am 
Dave ShieldNov 24, 2011 6:34 am 
basi...@wipro.comNov 24, 2011 9:00 pm 
Magnus FromreideNov 24, 2011 10:28 pm 
basi...@wipro.comNov 24, 2011 10:54 pm 
basi...@wipro.comNov 25, 2011 12:55 am 
Subject:RE: Setting IP address through SNMP
From:basi...@wipro.com (basi@wipro.com)
Date:Nov 25, 2011 12:55:27 am
List:net.sourceforge.lists.net-snmp-coders

Hi,

Update:

[root@localhost ~]# snmpset -v 2c -c public 10.20.20.20 ipAddressIfIndex.ipv4.4.10.10.10.40 = 3 ipAddressRowStatus.ipv4.4.10.10.10.40 = createAndGo Error in packet. Reason: (genError) A general failure occured Failed object: IP-MIB::ipAddressIfIndex.ipv4."10.10.10.40"

The command actually creates the object, but set returns an general error I checked with a walk command. It is actually created. Why this happens? If it can create the instance it should return a success value, right?

But [root@localhost tmp]# snmpset -v 2c -c public 10.20.20.20 ipAddressRowStatus.ipv4.4.10.10.10.40 = destroy Error in packet. Reason: (genError) A general failure occured Failed object: IP-MIB::ipAddressRowStatus.ipv4." 10.10.10.40"

Will kill the snmpd service itself [root@localhost ~]# service snmpd status snmpd dead but pid file exists

So I have to restart the snmpd again. But the instances are not deleted. They newly created 10.10.10.40 is still there.

Any thoughts?

Thanks and regards, Basil Joseph.

-----Original Message----- From: basi@wipro.com [mailto:basi@wipro.com] Sent: 25 November 2011 12:25 To: mag@lysator.liu.se Cc: net-@lists.sourceforge.net Subject: RE: Setting IP address through SNMP

Hi,

It is still showing error for createAndGo. Is it a problem specific to my platform? I am using Linux 2.6.18-238.19.1.el5 and netsnmp 5.7

[root@localhost ~]# snmpset -v 2c -c public 10.20.20.20 ipAddressIfIndex.ipv4.4.10.10.10.30 = 3 ipAddressRowStatus.ipv4.4.10.10.10.30 = createAndGo Error in packet. Reason: inconsistentValue (The set value is illegal or unsupported in some way) Failed object: IP-MIB::ipAddressRowStatus.ipv4."10.10.10.30"

Thank and regards, Basil Joseph.

-----Original Message----- From: Magnus Fromreide [mailto:mag@lysator.liu.se] Sent: 25 November 2011 11:59 To: Basil Joseph (WT01 - GMT-Telecom Equipment) Cc: D.T.@liverpool.ac.uk; net-@lists.sourceforge.net Subject: RE: Setting IP address through SNMP

On Fri, 2011-11-25 at 10:31 +0530, basi@wipro.com wrote:

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.

Try with ipAddressRowStatus instead of ipAddressStatus.

/MF

------------------------------------------------------------------------

------ 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

------------------------------------------------------------------------------ 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