1SNMP::Info::Layer7(3) User Contributed Perl DocumentationSNMP::Info::Layer7(3)
2
3
4

NAME

6       SNMP::Info::Layer7 - SNMP Interface to network devices serving Layer7
7       only.
8

AUTHOR

10       Jeroen van Ingen
11

SYNOPSIS

13        # Let SNMP::Info determine the correct subclass for you.
14        my $l7 = new SNMP::Info(
15                                 AutoSpecify => 1,
16                                 Debug       => 1,
17                                 DestHost    => 'myswitch',
18                                 Community   => 'public',
19                                 Version     => 2
20                               )
21           or die "Can't connect to DestHost.\n";
22
23        my $class = $l7->class();
24        print "SNMP::Info determined this device to fall under subclass : $class\n";
25
26        # Let's get some basic Port information
27        my $interfaces = $l7->interfaces();
28        my $i_up       = $l7->i_up();
29        my $i_speed    = $l7->i_speed();
30
31        foreach my $iid (keys %$interfaces) {
32           my $port  = $interfaces->{$iid};
33           my $up    = $i_up->{$iid};
34           my $speed = $i_speed->{$iid}
35           print "Port $port is $up. Port runs at $speed.\n";
36        }
37

DESCRIPTION

39       This class is usually used as a superclass for more specific device
40       classes listed under SNMP::Info::Layer7::*   Please read all docs under
41       SNMP::Info first.
42
43       Provides abstraction to the configuration information obtainable from a
44       Layer7 device through SNMP.  Information is stored in a number of MIBs.
45
46       For speed or debugging purposes you can call the subclass directly, but
47       not after determining a more specific class using the method above.
48
49        my $l7 = new SNMP::Info::Layer7(...);
50
51   Inherited Classes
52       SNMP::Info
53
54   Required MIBs
55       None
56
57       MIBs required for "REQUIREMENTS" in SNMP::Info
58
59       See "REQUIREMENTS" in SNMP::Info for its MIB requirements.
60

GLOBALS

62       These are methods that return scalar value from SNMP
63
64   Overrides
65       $l7->model()
66           Cross references $l7->id() with product IDs.
67
68       $l7->vendor()
69           Tries to discover the vendor by looking up the enterprise number in
70           "sysObjectID".
71
72   Global Methods imported from SNMP::Info
73       See documentation in "USAGE" in SNMP::Info for details.
74

TABLE METHODS

76       These are methods that return tables of information in the form of a
77       reference to a hash.
78
79   Overrides
80       $l7->interfaces()
81           Returns reference to the map between IID and physical Port.
82
83   Table Methods imported from SNMP::Info
84       See documentation in "USAGE" in SNMP::Info for details.
85
86
87
88perl v5.34.0                      2022-01-21             SNMP::Info::Layer7(3)
Impressum