deactivate BGP neighbour through SNMP

Unanswered Question
Feb 12th, 2009
User Badges:


I need to change admin status of neighbour through snmp. I have typed the next command:

C:\snmp\bin>snmpset -v 2c -c SetSNMP i 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-

Have anybody any ideas how to change this oid?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Joe Clarke Thu, 02/12/2009 - 23:06
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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:

alexandr.serebriakov Thu, 02/12/2009 - 23:18
User Badges:


Thanks for fast answer.

But before I have found this OID in Cisco SNMP object navigator. It presents as read-write. :(

bgpPeerAdminStatus OBJECT-TYPE





MAX-ACCESS read-write

STATUS current


Where is the error?

Joe Clarke Thu, 02/12/2009 - 23:31
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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.


This Discussion