1Info::EtherLike(3)    User Contributed Perl Documentation   Info::EtherLike(3)
2
3
4

NAME

6       SNMP::Info::EtherLike - SNMP Interface to SNMP ETHERLIKE-MIB RFC 1398
7

AUTHOR

9       Max Baker
10

SYNOPSIS

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 = $cdp->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

DESCRIPTION

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
53       MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz
54

GLOBALS

56       These are methods that return scalar values from SNMP
57
58       None
59

TABLE METHODS

61       These are methods that return tables of information in the form of a
62       reference to a hash.
63
64   ETHERLIKE STATS TABLE ("dot3StatsTable")
65       $el->el_index()
66           Returns reference to hash. Indexes Stats Table to the interface
67           index (iid).
68
69           ("dot3StatsIndex")
70
71       $el->el_duplex()
72           Returns reference to hash.  Indexes Stats Table to Duplex Status of
73           port.
74
75           ("dot3StatsDuplexStatus")
76
77       $el->el_chipset()
78           ("dot3StatsEtherChipSet")
79
80       $el->el_coll_excess()
81           ("dot3StatsExcessiveCollisions")
82
83       $el->el_coll_late()
84           ("dot3StatsLateCollisions")
85
86       $el->el_coll_mult()
87           ("dot3StatsMultipleCollisionFrames")
88
89       $el->el_coll_single()
90           ("dot3StatsSingleCollisionFrames")
91
92       $el->el_error_alignment()
93           ("dot3StatsAlignmentErrors")
94
95       $el->el_error_fcs()
96           ("dot3StatsFCSErrors")
97
98       $el->el_error_cs()
99           ("dot3StatsCarrierSenseErrors")
100
101       $el->el_error_frame()
102           ("dot3StatsFrameTooLongs")
103
104       $el->el_error_mac_rec()
105           ("dot3StatsInternalMacReceiveErrors")
106
107       $el->el_error_mac_xmit()
108           ("dot3StatsInternalMacTransmitErrors")
109
110       $el->el_error_sqe()
111           ("dot3StatsSQETestErrors")
112
113       $el->el_error_symbol()
114           ("dot3StatsSymbolErrors")
115
116       $el->el_xmit_defer()
117           ("dot3StatsDeferredTransmissions")
118
119       $el->el_coll_count()
120           ("dot3CollCount")
121
122       $el->el_coll_freq()
123           ("dot3CollFrequencies")
124

Data Munging Callback Subroutines

126       $el->munge_el_duplex()
127           Removes 'Duplex' from the end of a string.
128
129
130
131perl v5.12.0                      2009-06-12                Info::EtherLike(3)
Impressum