atom feed9 messages in net.sourceforge.lists.net-snmp-codersSetting 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:Setting IP address through SNMP
From:basi...@wipro.com (basi@wipro.com)
Date:Nov 24, 2011 4:09:37 am
List:net.sourceforge.lists.net-snmp-coders

Hi,

I have to configure the IP address of eth1 interface of a network device.

That device have 2 interfaces - eth0 and eth1.

My app will send snmp set to eth0 and try to set the IP of eth1.

For time being I am using snmpv2, but later I will use v3.

And added "rwcommunity public" in snmpd.conf

I can get the IP address of the eth1 interface by

[root@localhost ~]# snmpget -v 2c -c public 10.20.20.20 ipAdEntAddr.10.10.10.10

IP-MIB::ipAdEntAddr.10.10.10.10 = IpAddress: 10.10.10.10

If I have to change the ip address to, say 10.10.10.30, what I have to do?

The permission for that OID is read-only.

So I can't issue a set command.

If I am querying the wrong OID, please tell me the correct OID.

And why the name of OID itself contain the IP Address.

I mean why the OID name is like ipAdEntAddr.10.10.10.10 instead ipAdEntAddr.1

And do I have to create a new instance of the Object to set the IP address.

I am not sure whether I was able to express my doubt.

That's why I have drawn a simple picture.

Eth0 ____________________ Eth1

10.20.20.20 | | 10.10.10.10

App -------------------| Network Device |--------------

SNMPSET |____________________| This IP is to be changed

Thanks and regards,

Basil Joseph.

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