cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
756
Views
0
Helpful
3
Replies

deactivate BGP neighbour through SNMP

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?

3 Replies 3

Joe Clarke
Cisco Employee
Cisco Employee

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

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?

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.