SNMP::Info::CiscoVTP - Perl5 Interface to Cisco's VLAN Management MIBs
Max Baker (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 cisco device's VLAN and VTP Domain memebership.
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
vtp_version()vtpVersion
vtp_maxstore()vtpMaxVlanStorage
vtp_notify()vtpNotificationsEnabled
vtp_notify_create()vtpVlanCreatedNotifEnabled
vtp_notify_delete()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
v_index()vtpVlanIndex
v_state()vtpVlanState
v_type()vtpVlanType
v_name()vtpVlanName
v_mtu()vtpVlanMtu
v_said()vtpVlanDot10Said
v_ring()vtpVlanRingNumber
v_bridge()vtpVlanBridgeNumber
v_stp()vtpVlanStpType
v_parent()vtpVlanParentVlan
v_trans1()vtpVlanTranslationalVlan1
v_trans2()vtpVlanTranslationalVlan2
v_btype()vtpVlanBridgeType
v_hop_are()vtpVlanAreHopCount
v_hop_ste()vtpVlanSteHopCount
v_crf()vtpVlanIsCRFBackup
v_type_ext()vtpVlanTypeExt
v_if()vtpVlanIfIndex
This table is from CISCO-VLAN-MEMBERSHIP-MIB::VmMembershipTable
i_vlan_type()vmVlanType
i_vlan()0 for no VLAN assigned.
vmVlan
i_vlan_stat()vmPortStatus
i_vlan_1()vmVlans
i_vlan_2()vmVlans2k
i_vlan_3()vmVlans3k
i_vlan_4()vmVlans4k
vtp_d_index()managementDomainIndex
vtp_d_name()managementDomainName
vtp_d_mode()managementDomainLocalMode
vtp_d_rev()managementDomainConfigRevNumber
vtp_d_updater()managementDomainLastUpdater
vtp_d_last()managementDomainLastChange
vtp_d_status()managementDomainRowStatus
vtp_d_tftp()managementDomainTftpServer
vtp_d_tftp_path()managementDomainTftpPathname
vtp_d_pruning()managementDomainPruningState
vtp_d_ver()managementDomainVersionInUse