Note that my example is for unix. You can do the same thing with windows scripting.
I do not have a Sarian (bgp) device but below is an example of something similar with a cisco device in my lab. You can use nnmsnmpwalk.ovpl to collect the information you need.
In the following example, I want to check the status for a power supply. The Management Information Base (MIB) variable I want to check is called ciscoEnvMonSupplyState and is part of a table called ciscoEnvMonSupplyStatusTable. In order to determine the table name, I output a full nnmsnmpwalk.ovpl for the device to a file and found the variable I was looking for. Why is this important? An nnmsnmpwalk.ovpl can take minutes to run. If you know which table contains the information you are looking for, you can increase performance by querying only that table. Here is the table I want dumped from an nnmsnmpwalk.ovpl:
You would likely want to print the device description and other information and you would want to format the output but this is a quick example of how to pull the information you want from the nnmsnmpwalk.ovpl using a script.
HP Support If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution, If you are satisfied with anyone’s response please remember to give them a KUDOS and show your appreciation.