1SNMP::Info::CiscoStpExtUesnesrioCnosn(t3r)ibuted Perl DoScNuMmPe:n:tIantfioo:n:CiscoStpExtensions(3)
2
3
4

NAME

6       SNMP::Info::CiscoStpExtensions - SNMP Interface to
7       "CISCO-STP-EXTENSIONS-MIB"
8

AUTHOR

10       Carlos Vicente
11

SYNOPSIS

13          my $stpx = new SNMP::Info(
14                                AutoSpecify => 1,
15                                Debug       => 1,
16                                DestHost    => 'myswitch',
17                                Community   => 'public',
18                                Version     => 2
19                              )
20
21          or die "Can't connect to DestHost.\n";
22
23          my $class = $stpx->class();
24          print " Using device sub class : $class\n";
25

DESCRIPTION

27       Create or use a subclass of SNMP::Info that inherits this class.  Do
28       not use directly.
29
30       For debugging you can call new() directly as you would in SNMP::Info
31
32        my $stpx = new SNMP::Info::CiscoStpExtensions(...);
33
34   Inherited Classes
35       SNMP::Info
36       SNMP::Info::Bridge
37
38   Required MIBs
39       CISCO-STP-EXTENSIONS-MIB
40
41       MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz
42

GLOBAL METHODS

44       These are methods that return scalar values from SNMP
45
46       $stpx->stp_ver()
47           Returns the particular STP version running on this device.  Meant
48           to override SNMP::Info::Brigde::stp_ver()
49
50           Values: "pvstPlus", "mistp", "mistpPvstPlus", "mst",
51           "rapidPvstPlus"
52
53           ("stpxSpanningTreeType")
54

TABLE METHODS

56       These are methods that return tables of information in the form of a
57       reference to a hash.
58
59       $stpx->mst_config_digest()
60           Returns the Multiple Spanning Tree (MST) configuration digest
61
62           ("stpxSMSTConfigDigest")
63
64       $stpx->mst_region_name()
65           Returns the Multiple Spanning Tree (MST) region name
66
67           ("stpxMSTRegionName")
68
69       $stpx->mst_region_rev()
70           Returns the Multiple Spanning Tree (MST) region name
71
72           ("stpxSMSTRegionRevision")
73
74       $stpx->mst_vlan2instance()
75           Returns the mapping of vlan to MST instance in the form of a hash
76           reference with key = VLAN id, value = STP instance
77
78       $stpx->i_rootguard_enabled()
79           Returns 1 or 0 depending on whether "RootGuard" is enabled on a
80           given port.  Format is a hash reference with key = "ifIndex", value
81           = [1|0]
82
83           ("stpxRootGuardConfigEnabled")
84
85       $stpx->i_loopguard_enabled()
86           Returns 1 or 0 depending on whether "LoopGuard" is enabled on a
87           given port.  Format is a hash reference with key = "ifIndex", value
88           = [1|0]
89
90           ("stpxLoopGuardConfigEnabled")
91
92       $stpx->i_bpduguard_enabled()
93           Returns 1 or 0 depending on whether "BpduGuard" is enabled on a
94           given port.  Format is a hash reference with key = "ifIndex", value
95           = [1|0]
96
97           ("stpxFastStartPortBpduGuardMode")
98
99       $stpx->i_bpdufilter_enabled()
100           Returns 1 or 0 depending on whether "BpduFilter" is enabled on a
101           given port.  Format is a hash reference with key = "ifIndex", value
102           = [1|0]
103
104           ("stpxFastStartBpduFilterEnable")
105
106       $stpx->i_faststart_enabled()
107           Returns 1 or 0 depending on whether FastStart (aka PortFast) is
108           enabled on a given port.  Format is a hash reference with key =
109           "ifIndex", value = [1|0]
110
111           ("stpxFastStartPortEnable" and "stpxFastStartPortMode")
112

MUNGES

114       oct2str()
115           Unpacks H* into a string
116
117
118
119perl v5.28.1                      2019-04-04 SNMP::Info::CiscoStpExtensions(3)
Impressum