deactivate BGP neighbour through SNMP

Unanswered Question
Feb 12th, 2009
User Badges:

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?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
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:


http://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a0080094aa6.shtml

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

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?


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.

Actions

This Discussion