The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SNMP::Info::CiscoVTP - Perl5 Interface to Cisco's VLAN Management MIB - CISCO-VTP-MIB

AUTHOR

Max Baker (max@warped.org)

SYNOPSIS

 # 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";

DESCRIPTION

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.

Inherited Classes

none.

Required MIBs

CISCO-VTP-MIB

MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz

GLOBALS

$vtp->vtp_version()

vtpVersion

$vtp->vtp_maxstore()

vtpMaxVlanStorage

$vtp->vtp_notify()

vtpNotificationsEnabled

$vtp->vtp_notify_create()

vtpVlanCreatedNotifEnabled

$vtp->vtp_notify_delete()

vtpVlanDeletedNotifEnabled

TABLE METHODS

You device will only implement a subset of these methods.

VLAN Table

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

$vtp->v_index()

vtpVlanIndex

$vtp->v_state()

vtpVlanState

$vtp->v_type()

vtpVlanType

$vtp->v_name()

vtpVlanName

$vtp->v_mtu()

vtpVlanMtu

$vtp->v_said()

vtpVlanDot10Said

$vtp->v_ring()

vtpVlanRingNumber

$vtp->v_bridge()

vtpVlanBridgeNumber

$vtp->v_stp()

vtpVlanStpType

$vtp->v_parent()

vtpVlanParentVlan

$vtp->v_trans1()

vtpVlanTranslationalVlan1

$vtp->v_trans2()

vtpVlanTranslationalVlan2

$vtp->v_btype()

vtpVlanBridgeType

$vtp->v_hop_are()

vtpVlanAreHopCount

$vtp->v_hop_ste()

vtpVlanSteHopCount

$vtp->v_crf()

vtpVlanIsCRFBackup

$vtp->v_type_ext()

vtpVlanTypeExt

$vtp->v_if()

vtpVlanIfIndex

VLAN Interface Table

This table is from CISCO-VLAN-MEMBERSHIP-MIB::VmMembershipTable

$vtp->i_vlan_type()

Static, Dynamic, or multiVlan.

vmVlanType

$vtp->i_vlan()

The VLAN that a port is assigned to.

0 for no VLAN assigned.

vmVlan

$vtp->i_vlan_stat()

Inactive, active, shutdown.

vmPortStatus

$vtp->i_vlan_1()

Each bit represents a VLAN. This is 0 through 1023

vmVlans

$vtp->i_vlan_2()

Each bit represents a VLAN. This is 1024 through 2047

vmVlans2k

$vtp->i_vlan_3()

Each bit represents a VLAN. This is 2048 through 3071

vmVlans3k

$vtp->i_vlan_4()

Each bit represents a VLAN. This is 3072 through 4095

vmVlans4k

Managment Domain Table

$vtp->vtp_d_index()

managementDomainIndex

$vtp->vtp_d_name()

managementDomainName

$vtp->vtp_d_mode()

managementDomainLocalMode

$vtp->vtp_d_rev()

managementDomainConfigRevNumber

$vtp->vtp_d_updater()

managementDomainLastUpdater

$vtp->vtp_d_last()

managementDomainLastChange

$vtp->vtp_d_status()

managementDomainRowStatus

$vtp->vtp_d_tftp()

managementDomainTftpServer

$vtp->vtp_d_tftp_path()

managementDomainTftpPathname

$vtp->vtp_d_pruning()

managementDomainPruningState

$vtp->vtp_d_ver()

managementDomainVersionInUse