cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4015
Views
0
Helpful
3
Replies

MIB OID to check vtp mode via SNMP ?

ffurholm
Level 1
Level 1

I have to create an extra Vlan on several switches via SNMP, but want to do it only on switches with vtp mode = transpartent.

Which MIB OID contains the vtp mode ?

Flemming Furholm

ffu@dk.ibm.com

1 Accepted Solution

Accepted Solutions

paddyxdoyle
Level 6
Level 6

Hi,

I think its this:

$ snmpget 192.168.7.3 cisco.ciscoMgmt.ciscoVtpMIB.vtpMIBObjects.vlanManagementDomains.managementDomainTable.managementDomainEntry.managementDomainLocalMode.1

cisco.ciscoMgmt.ciscoVtpMIB.vtpMIBObjects.vlanManagementDomains.managementDomain

Table.managementDomainEntry.managementDomainLocalMode.1 : INTEGER: server

I found it by walking the entire MIB on a 3750 switch and then grepping for VTP and then for mode. I've tried it on a 5500 and a 3750 switch and its looks correct.

HTH

PJD

View solution in original post

3 Replies 3

paddyxdoyle
Level 6
Level 6

Hi,

I think its this:

$ snmpget 192.168.7.3 cisco.ciscoMgmt.ciscoVtpMIB.vtpMIBObjects.vlanManagementDomains.managementDomainTable.managementDomainEntry.managementDomainLocalMode.1

cisco.ciscoMgmt.ciscoVtpMIB.vtpMIBObjects.vlanManagementDomains.managementDomain

Table.managementDomainEntry.managementDomainLocalMode.1 : INTEGER: server

I found it by walking the entire MIB on a 3750 switch and then grepping for VTP and then for mode. I've tried it on a 5500 and a 3750 switch and its looks correct.

HTH

PJD

Thank's - it solved my problem

Flemming Furholm

nhabib
Level 9
Level 9

.1.3.6.1.4.1.9.9.46.1.2.1.1.3

managementDomainLocalMode OBJECT-TYPE

-- FROM CISCO-VTP-MIB

SYNTAX Integer { client(1), server(2), transparent(3), off(4) }

MAX-ACCESS read-create

STATUS Current

DESCRIPTION "The local VTP mode in this management domain when managementDomainVersionInUse is version1(1) or version2(2).

If managementDomainVersionInUse is version3(4), this object has the same value with vtpDatabaseLocalMode of VLAN database type.

- 'client' indicates that the local system is acting as a VTP client.

- 'server' indicates that the local system is acting as a VTP server.

- 'transparent' indicates that the local system does not generate or listen to VTP messages, but forwards messages. This mode can also be set by the device itself when the amount of VLAN information is too large for it to hold in DRAM.

- 'off' indicates that the local system does not generate, listen to or forward any VTP messages."

Review Cisco Networking for a $25 gift card