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

GLOBALS

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

TABLE METHODS

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

MUNGES

112       oct2str()
113           Unpacks H* into a string
114
115
116
117perl v5.32.0                      2020-07-28 SNMP::Info::CiscoStpExtensions(3)
Impressum