On 24 November 2011 12:10, <[email protected]> wrote:
> I have to configure the IP address of eth1 interface of a network device.
> I can get the IP address of the eth1 interface by
> # snmpget -v 2c -c public 10.20.20.20 ipAdEntAddr.10.10.10.10
> The permission for that OID is read-only.
> So I can’t issue a set command.
The ipAddrTable is specific to IPv4, and has been
deprecated in favour of the ipAddressTable, which
can handle both IPv4 and IPv6, and *does* support
modification via SNMP.
The equivalent request would probably be something like
# snmpget .... ipAddressIfIndex.ipv4.4.10.10.10.10
(note that you need to include the length of the IP address - hence
the extra '4')
> If I have to change the ip address to, say 10.10.10.30, what I have to do?
Try
# snmpset ....
ipAddressIfIndex.ipv4.4.10.10.10.11 = 1 # ifIndex as above
ipAddressStatus.ipv4.4.10.10.10.11 = createAndGo
(to add the new address)
# snmpset ....
ipAddressStatus.ipv4.4.10.10.10.10 = destroy
(to remove the new address)
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