1SNMP::Info::EtherLike(3U)ser Contributed Perl DocumentatiSoNnMP::Info::EtherLike(3)
2
3
4
6 SNMP::Info::EtherLike - SNMP Interface to SNMP ETHERLIKE-MIB RFC 1398
7
9 Max Baker
10
12 my $el = new SNMP::Info (
13 AutoSpecify => 1,
14 Debug => 1,
15 DestHost => 'router',
16 Community => 'public',
17 Version => 2
18 );
19
20 my $class = $el->class();
21 print " Using device sub class : $class\n";
22
23 # Find the duplex setting for a port on a device that implements
24 # ETHERLIKE-MIB
25 my $interfaces = $el->interfaces();
26 my $el_index = $el->el_index();
27 my $el_duplex = $el->el_duplex();
28
29 foreach my $el_port (keys %$el_duplex){
30 my $duplex = $el_duplex->{$el_port};
31 my $iid = $el_index->{$el_port};
32 my $port = $interfaces->{$iid};
33
34 print "PORT:$port set to duplex:$duplex\n";
35 }
36
38 SNMP::Info::EtherLike is a subclass of SNMP::Info that supplies access
39 to the ETHERLIKE-MIB used by some Layer 3 Devices such as Cisco
40 routers.
41
42 See RFC 1398 for more details.
43
44 Use or create a subclass of SNMP::Info that inherits this one. Do not
45 use directly.
46
47 Inherited Classes
48 None.
49
50 Required MIBs
51 ETHERLIKE-MIB
52
54 These are methods that return scalar values from SNMP
55
56 None
57
59 These are methods that return tables of information in the form of a
60 reference to a hash.
61
62 ETHERLIKE STATS TABLE ("dot3StatsTable")
63 $el->el_index()
64 Returns reference to hash. Indexes Stats Table to the interface
65 index (iid).
66
67 ("dot3StatsIndex")
68
69 $el->el_duplex()
70 Returns reference to hash. Indexes Stats Table to Duplex Status of
71 port.
72
73 ("dot3StatsDuplexStatus")
74
75 $el->el_chipset()
76 ("dot3StatsEtherChipSet")
77
78 $el->el_coll_excess()
79 ("dot3StatsExcessiveCollisions")
80
81 $el->el_coll_late()
82 ("dot3StatsLateCollisions")
83
84 $el->el_coll_mult()
85 ("dot3StatsMultipleCollisionFrames")
86
87 $el->el_coll_single()
88 ("dot3StatsSingleCollisionFrames")
89
90 $el->el_error_alignment()
91 ("dot3StatsAlignmentErrors")
92
93 $el->el_error_fcs()
94 ("dot3StatsFCSErrors")
95
96 $el->el_error_cs()
97 ("dot3StatsCarrierSenseErrors")
98
99 $el->el_error_frame()
100 ("dot3StatsFrameTooLongs")
101
102 $el->el_error_mac_rec()
103 ("dot3StatsInternalMacReceiveErrors")
104
105 $el->el_error_mac_xmit()
106 ("dot3StatsInternalMacTransmitErrors")
107
108 $el->el_error_sqe()
109 ("dot3StatsSQETestErrors")
110
111 $el->el_error_symbol()
112 ("dot3StatsSymbolErrors")
113
114 $el->el_xmit_defer()
115 ("dot3StatsDeferredTransmissions")
116
117 $el->el_coll_count()
118 ("dot3CollCount")
119
120 $el->el_coll_freq()
121 ("dot3CollFrequencies")
122
124 $el->munge_el_duplex()
125 Removes 'Duplex' from the end of a string.
126
127
128
129perl v5.34.0 2022-01-21 SNMP::Info::EtherLike(3)