Skip to main content
akristof
Staff
Staff
Feb 16, 2022 12:32 PM UTC

Technical Tip: SNMPv3 monitoring of BGP/OSPF in multiple VDOMs

Description This article describes how to use SNMPv3 monitoring to get information about BGP/OSPF from multiple VDOMs.
Scope

In general, only management VDOM can return information about device.

But there is expectation, that BGP/OSPF will be running also on different VDOMs, not only in management.

 

With SNMPv2, you can do this via community. With SNMPv3, it is possible to do it with username.

Solution

Unit has 2 VDOMs. Root is management, LAB is VDOM with BGP/OSPF.

To query for SNMPv3 information from other VDOMs, this is the syntax:

 

snmpwalk -v3 -l authPriv -u username-VDOM -a SHA -A "PASSWORD1" -x AES -X "PASSWORD1" IP_ADDRESS OID

 

So if only username is used, information will be from management VDOM, in this case root.

If username-LAB syntax is used, information will be from LAB VDOM.

 

snmpwalk -v3 -l authPriv -u user-LAB -a SHA -A fortinet -x AES -X fortinet 10.109.21.93 1.3.6.1.2.1.15
iso.3.6.1.2.1.15.1.0 = Hex-STRING: 10
iso.3.6.1.2.1.15.2.0 = INTEGER: 65119 < Local AS number
iso.3.6.1.2.1.15.4.0 = IpAddress: 0.0.0.0

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024