1SNMPSTATUS(1) Net-SNMP SNMPSTATUS(1)
2
3
4
6 snmpstatus - retrieves a fixed set of management information from a
7 network entity
8
10 snmpstatus [COMMON OPTIONS] [-Cf] AGENT
11
13 snmpstatus is an SNMP application that retrieves several important sta‐
14 tistics from a network entity.
15
16 AGENT identifies a target SNMP agent, which is instrumented to monitor
17 the given objects. At its simplest, the AGENT specification will con‐
18 sist of a hostname or an IPv4 address. In this situation, the command
19 will attempt communication with the agent, using UDP/IPv4 to port 161
20 of the given target host.
21
22 See the snmpcmd(1) manual page for a full list of the possible formats
23 for AGENT.
24
25 The information returned is:
26
27 The IP address of the entity.
28 A textual description of the entity (sysDescr.0)
29 The uptime of the entity's SNMP agent (sysUpTime.0)
30 The sum of received packets on all interfaces (ifInUCastPkts.* +
31 ifInNUCastPkts.*)
32 The sum of transmitted packets on all interfaces (ifOutUCastP‐
33 kts.* + ifOutNUCastPkts.*)
34 The number of IP input packets (ipInReceives.0)
35 The number of IP output packets (ipOutRequests.0)
36
37 For example:
38
39 snmpstatus -c public -v 1 netdev-kbox.cc.cmu.edu
40
41 will produce output similar to the following:
42
43 [128.2.56.220]=>[Kinetics FastPath2] Up: 1 day, 4:43:31
44 Interfaces: 1, Recv/Trans packets: 262874/39867 | IP: 31603/15805
45
46 snmpstatus also checks the operational status of all interfaces (ifOp‐
47 erStatus.*), and if it finds any that are not running, it will report
48 in a manner similar to this:
49
50 2 interfaces are down!
51
52 If the network entity has an error processing the request packet, an
53 error packet will be returned and a message will be shown, helping to
54 pinpoint in what way the request was malformed. snmpstatus will at‐
55 tempt to reform its request to eliminate the malformed variable (unless
56 the -Cf option is given, see below), but this variable will then be
57 missing from the displayed data.
58
60 COMMON OPTIONS
61 Please see snmpcmd(1) for a list of possible values for COMMON
62 OPTIONS as well as their descriptions.
63
64 -Cf By default, snmpstatus will try to fix errors returned by the
65 agent and retry a request. In this situation, the command will
66 display the data that it can. If the -Cf option is specified,
67 then snmpstatus will not try to fix errors, and the error will
68 cause the command to terminate.
69
71 snmpcmd(1), snmpget(1)
72
73
74
75V5.9.4.pre2 25 Jul 2003 SNMPSTATUS(1)