Get bgppeer2peer state from an API call in Spectrum
search cancel

Get bgppeer2peer state from an API call in Spectrum

book

Article ID: 374089

calendar_today

Updated On:

Products

DX NetOps

Issue/Introduction

You are looking to get API that can get bgppeer2peer state table.

 

Resolution

The BGP4mib has a bgpPeerState oid that can be used for this.

 

A simple get of the following will pull peer state of a model.  you get the same result pulling it from the device or the app model.  We see 2 peers with a value 6 corresponding to established.

/spectrum/restful/model/0x#####?attr=0x213650

<model-responses>
<model mh="0x######c">
<attribute-list id="0x213650">
<instance oid="1.4.#.#.#.#.3" value="6"/>
<instance oid="1.4.#.#.#.#.4" value="6"/>
</attribute-list>
</model>
</model-responses>
</model-response-list>

 

Additional Information