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
vtpVlanIndex
vtpVlanState
vtpVlanType
vtpVlanName
vtpVlanMtu
vtpVlanDot10Said
vtpVlanRingNumber
vtpVlanBridgeNumber
vtpVlanStpType
vtpVlanParentVlan
vtpVlanTranslationalVlan1
vtpVlanTranslationalVlan2
vtpVlanBridgeType
vtpVlanAreHopCount
vtpVlanSteHopCount
vtpVlanIsCRFBackup
vtpVlanTypeExt
vtpVlanIfIndex
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.