1SNMPGETNEXT(1) Net-SNMP SNMPGETNEXT(1)
2
3
4
6 snmpgetnext - communicates with a network entity using SNMP GETNEXT re‐
7 quests
8
10 snmpgetnext [COMMON OPTIONS] [-Cf] AGENT OID [OID]...
11
13 snmpgetnext is an SNMP application that uses the SNMP GETNEXT request
14 to query for information on a network entity. One or more object iden‐
15 tifiers (OIDs) may be given as arguments on the command line. Each
16 variable name is given in the format specified in variables(5). For
17 each one, the variable that is lexicographically "next" in the remote
18 entity's MIB will be returned.
19
20 For example:
21
22 snmpgetnext -c public zeus interfaces.ifTable.ifEntry.ifType.1
23
24 will retrieve the variable interfaces.ifTable.ifEntry.ifType.2:
25
26 interfaces.ifTable.ifEntry.ifType.2 = softwareLoopback(24)
27
28 If the network entity has an error processing the request packet, an
29 error message will be shown, helping to pinpoint in what way the re‐
30 quest was malformed.
31
33 -Cf If -Cf is not specified, some applications (snmpdelta, snmpget,
34 snmpgetnext and snmpstatus) will try to fix errors returned by
35 the agent that you were talking to and resend the request. The
36 only time this is really useful is if you specified a OID that
37 didn't exist in your request and you're using SNMPv1 which re‐
38 quires "all or nothing" kinds of requests.
39
40 In addition to this option, snmpgetnext takes the common options de‐
41 scribed in the snmpcmd(1) manual page. Note that snmpgetnext REQUIRES
42 an argument specifying the agent to query and at least one OID argu‐
43 ment, as described there.
44
46 snmpcmd(1), snmpget(1), variables(5).
47
48
49
50V5.9.1 04 Mar 2002 SNMPGETNEXT(1)