02-12-2009 10:54 PM
Preved!
I need to change admin status of neighbour through snmp. I have typed the next command:
C:\snmp\bin>snmpset -v 2c -c SetSNMP 192.168.132.2 1.3.6.1.2.1.15.3.1.3.2.2.2.2 i 2
(2.2.2.2 - ip address of my neighbour)
But have got the next error.
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: SNMPv2-SMI::mib-2.15.3.1.3.2.2.2.2
Have anybody any ideas how to change this oid?
02-12-2009 11:06 PM
Cisco IOS does not implement any of the objects in the BGP4-MIB as read-write (only read-only).
However, if you want to bring a neighbor up which is shutdown using SNMP, you could upload a config snippet to the device which removes the shutdown command from the neighbor statement. To do this, follow the instructions in this tech tip:
http://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a0080094aa6.shtml
02-12-2009 11:18 PM
Hi!
Thanks for fast answer.
But before I have found this OID in Cisco SNMP object navigator. It presents as read-write. :(
bgpPeerAdminStatus OBJECT-TYPE
SYNTAX INTEGER {
stop(1),
start(2)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
Where is the error?
02-12-2009 11:31 PM
The MIB defines the MAX-ACCESS as read-write. However, IOS only implements the object as read-only. This is allowed by the MIB specification. There is no error. You will not be able to set this object.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide