1SNMP::Info::Layer3::NetUSsNeMrP(C3o)ntributed Perl DocumSeNnMtPa:t:iIonnfo::Layer3::NetSNMP(3)
2
3
4

NAME

6       SNMP::Info::Layer3::NetSNMP - SNMP Interface to L3 Net-SNMP Devices
7

AUTHORS

9       Bradley Baetz and Bill Fenner
10

SYNOPSIS

12        # Let SNMP::Info determine the correct subclass for you.
13        my $netsnmp = new SNMP::Info(
14                                 AutoSpecify => 1,
15                                 Debug       => 1,
16                                 DestHost    => 'myrouter',
17                                 Community   => 'public',
18                                 Version     => 2
19                               )
20           or die "Can't connect to DestHost.\n";
21
22        my $class      = $netsnmp->class();
23        print "SNMP::Info determined this device to fall under subclass : $class\n";
24

DESCRIPTION

26       Subclass for Generic Net-SNMP devices
27
28   Inherited Classes
29       SNMP::Info::Layer3
30
31   Required MIBs
32       UCD-SNMP-MIB
33       NET-SNMP-TC
34       HOST-RESOURCES-MIB
35       Inherited Classes' MIBs
36           See SNMP::Info::Layer3 for its own MIB requirements.
37
38           See SNMP::Info::LLDP for its own MIB requirements.
39

GLOBALS

41       These are methods that return scalar value from SNMP
42
43       $netsnmp->vendor()
44           Returns 'Net-SNMP'.
45
46       $netsnmp->os()
47           Returns the OS extracted from "sysDescr".
48
49       $netsnmp->os_ver()
50           Returns the software version extracted from "sysDescr", along with
51           the Net-SNMP version.
52
53       $netsnmp->uptime()
54           Returns the system uptime instead of the agent uptime.  NOTE:
55           discontinuity timers and other Time Stamp based objects are based
56           on agent uptime, so use orig_uptime().
57
58       $netsnmp->serial()
59           Returns ''.
60
61   Globals imported from SNMP::Info::Layer3
62       See documentation in SNMP::Info::Layer3 for details.
63
64   Globals imported from SNMP::Info::LLDP
65       See documentation in SNMP::Info::LLDP for details.
66

TABLE ENTRIES

68       These are methods that return tables of information in the form of a
69       reference to a hash.
70
71   Overrides
72       $netsnmp->i_ignore()
73           Returns reference to hash.  Increments value of IID if port is to
74           be ignored.
75
76           Ignores loopback
77
78   Table Methods imported from SNMP::Info::Layer3
79       See documentation in SNMP::Info::Layer3 for details.
80
81   Table Methods imported from SNMP::Info::LLDP
82       See documentation in SNMP::Info::LLDP for details.
83

NOTES

85       In order to cause SNMP::Info to classify your device into this class,
86       it may be necessary to put a configuration line into your snmpd.conf
87       similar to
88
89         sysobjectid .1.3.6.1.4.1.8072.3.2.N
90
91       where N is the object ID for your OS from the "NET-SNMP-TC" MIB (or 255
92       if not listed).  Some Net-SNMP installations default to an incorrect
93       return value for "system.sysObjectId".
94
95       In order to recognize a Net-SNMP device as Layer3, it may be necessary
96       to put a configuration line similar to
97
98         sysservices 76
99
100       in your snmpd.conf.
101
102
103
104perl v5.28.0                      2018-11-29    SNMP::Info::Layer3::NetSNMP(3)
Impressum