On Mon, 28 Nov 2011 14:49:45 +0530 [email protected] wrote:
BJC> Can you please explain why this commands are not behaving as expected.
BJC> 
BJC> snmpset ... ipAddressIfIndex.ipv4.4.10.10.10.40 = 3
BJC> ipAddressRowStatus.ipv4.4.10.10.10.40 = createAndGo
BJC> 
BJC> It returns the following error.
BJC> 
BJC> Error in packet.
BJC> Reason: (genError) A general failure occured
BJC> Failed object: IP-MIB::ipAddressIfIndex.ipv4."10.10.10.40"
BJC> 
BJC> It returns an error.
BJC> 
BJC> But it actually creates an instance for this IP, after some 3 sec (I
BJC> tried a snmpwalk and found a new instance is created).
BJC> 
BJC> If the command was able to set the IP, why this one is returning error.

Sounds like when the error occurs, the undo process isn't properly cleaning up.

Try running the agent with the following debug tokens:

  -D ipAddressTable,verbose:ipAddressTable,internal:ipAddressTable

BJC> But trying to destroy it crashes the snmpd daemon.
BJC> 
BJC> snmpset ...  ipAddressRowStatus.ipv4.4.10.10.10.40 = destroy
BJC> Error in packet.
BJC> Reason: (genError) A general failure occured
BJC> Failed object: IP-MIB::ipAddressRowStatus.ipv4."10.10.10.40" 
BJC> 
BJC> # service snmpd status
BJC> snmpd dead but pid file exists

What release is this? Is it a vendor package, or did you build from source?

BJC> Using Linux 2.6.18-238.19.1.el5 and Net SNMP 5.3.2.2

Ah.. ok, 5.3.2.2 is a rather old release, and is unsupported. Can you
reproduce this on a more recent release?

BJC> And one more thing...
BJC> 
BJC> The failed object is IP-MIB::ipAddressRowStatus.ipv4."10.10.10.40"
BJC> 
BJC> But we tried to set ip for      ipAddressRowStatus.ipv4.4.10.10.10.40
BJC> 
BJC> What happened to the '4' in between the 'ipv4' and '10.10.10.40'

4 is the length.. the length is omitted when displaying the address as a
string (note the quotes: "10.10.10.40).

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

Reply via email to