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

GLOBALS

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

TABLE ENTRIES

63       These are methods that return tables of information in the form of a
64       reference to a hash.
65
66   Overrides
67       $netsnmp->i_ignore()
68           Returns reference to hash.  Increments value of IID if port is to
69           be ignored.
70
71           Ignores loopback
72
73   Table Methods imported from SNMP::Info::Layer3
74       See documentation in SNMP::Info::Layer3 for details.
75

NOTES

77       In order to cause SNMP::Info to classify your device into this class,
78       it may be necessary to put a configuration line into your snmpd.conf
79       similar to
80
81         sysobjectid .1.3.6.1.4.1.8072.3.2.N
82
83       where N is the object ID for your OS from the "NET-SNMP-TC" MIB (or 255
84       if not listed).  Some Net-SNMP installations default to an incorrect
85       return value for "system.sysObjectId".
86
87       In order to recognize a Net-SNMP device as Layer3, it may be necessary
88       to put a configuration line similar to
89
90         sysservices 76
91
92       in your snmpd.conf.
93
94
95
96perl v5.36.1                      2023-07-17    SNMP::Info::Layer3::NetSNMP(3)
Impressum