SNMP::Info::CiscoVTP - Perl5 Interface to Cisco's VLAN Management MIB - CISCO-VTP-MIB
Max Baker (max@warped.org)
max@warped.org
# Let SNMP::Info determine the correct subclass for you. my $vtp = new SNMP::Info( AutoSpecify => 1, Debug => 1, # These arguments are passed directly on to SNMP::Session DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n"; my $class = $vtp->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
SNMP::Info::CiscoVTP is a subclass of SNMP::Info that provides information about a switch's VLANs.
Use or create in a subclass of SNMP::Info. Do not use directly.
none.
MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz
vtpVersion
vtpMaxVlanStorage
vtpNotificationsEnabled
vtpVlanCreatedNotifEnabled
vtpVlanDeletedNotifEnabled
You device will only implement a subset of these methods.
See ftp://ftp.cisco.com/pub/mibs/supportlists/wsc5000/wsc5000-communityIndexing.html for a good treaty of how to connect to the VLANs
This table is from CISCO-VTP-MIB::vtpVlanTable
vtpVlanIndex
vtpVlanState
vtpVlanType
vtpVlanName
vtpVlanMtu
vtpVlanDot10Said
vtpVlanRingNumber
vtpVlanBridgeNumber
vtpVlanStpType
vtpVlanParentVlan
vtpVlanTranslationalVlan1
vtpVlanTranslationalVlan2
vtpVlanBridgeType
vtpVlanAreHopCount
vtpVlanSteHopCount
vtpVlanIsCRFBackup
vtpVlanTypeExt
vtpVlanIfIndex
This table is from CISCO-VLAN-MEMBERSHIP-MIB::VmMembershipTable
Static, Dynamic, or multiVlan.
vmVlanType
The VLAN that a port is assigned to.
0 for no VLAN assigned.
vmVlan
Inactive, active, shutdown.
vmPortStatus
Each bit represents a VLAN. This is 0 through 1023
vmVlans
Each bit represents a VLAN. This is 1024 through 2047
vmVlans2k
Each bit represents a VLAN. This is 2048 through 3071
vmVlans3k
Each bit represents a VLAN. This is 3072 through 4095
vmVlans4k
managementDomainIndex
managementDomainName
managementDomainLocalMode
managementDomainConfigRevNumber
managementDomainLastUpdater
managementDomainLastChange
managementDomainRowStatus
managementDomainTftpServer
managementDomainTftpPathname
managementDomainPruningState
managementDomainVersionInUse
To install SNMP::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SNMP::Info
CPAN shell
perl -MCPAN -e shell install SNMP::Info
For more information on module installation, please visit the detailed CPAN module installation guide.