08-05-2005 03:58 AM
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
Solved! Go to Solution.
08-05-2005 04:45 AM
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
08-05-2005 04:45 AM
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
08-07-2005 11:33 PM
Thank's - it solved my problem
Flemming Furholm
08-05-2005 06:25 PM
.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."
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide