# phpman > man > SNMPGETNEXT(1)

> **TLDR:** Query the next value in the MIB tree.
>
- Request the next value from the SNMP agent:
  `snmpgetnext -v {{version}} -c {{community}} {{ip_address}} {{oid}}`
- Display the full Object Identifier (OID) path:
  `snmpgetnext -v {{version}} -c {{community}} -O f {{ip_address}} {{oid}}`
- Display help:
  `snmpgetnext {{-h|--help}}`

*Source: tldr-pages*

---

[SNMPGETNEXT(1)](https://www.chedong.com/phpMan.php/man/SNMPGETNEXT/1/markdown)                                Net-SNMP                                [SNMPGETNEXT(1)](https://www.chedong.com/phpMan.php/man/SNMPGETNEXT/1/markdown)



## NAME
       snmpgetnext - communicates with a network entity using SNMP GETNEXT requests

## SYNOPSIS
       **snmpgetnext** [COMMON OPTIONS] [-Cf] AGENT OID [OID]...

## DESCRIPTION
       **snmpgetnext**  is  an SNMP application that uses the SNMP GETNEXT request to query for informa‐
       tion on a network entity.  One or more object identifiers (OIDs) may be given as arguments on
       the  command line.  Each variable name is given in the format specified in [_variables(5)](https://www.chedong.com/phpMan.php/man/variables/5/markdown)_.  For
       each one, the variable that is lexicographically "next" in the remote entity's  MIB  will  be
       returned.

       For example:

       snmpgetnext -c public zeus interfaces.ifTable.ifEntry.ifType.1

       will retrieve the variable interfaces.ifTable.ifEntry.ifType.2:

       interfaces.ifTable.ifEntry.ifType.2 = [softwareLoopback(24)](https://www.chedong.com/phpMan.php/man/softwareLoopback/24/markdown)

       If  the  network  entity has an error processing the request packet, an error message will be
       shown, helping to pinpoint in what way the request was malformed.

## OPTIONS
### -Cf -Cf
               **status**) will try to fix errors returned by the agent that you were talking to and re‐
               send the request.  The only time this is really useful is if you specified a OID that
               didn't  exist in your request and you're using SNMPv1 which requires "all or nothing"
               kinds of requests.

       In addition to this option, **snmpgetnext** takes the common options described in the  [_snmpcmd(1)](https://www.chedong.com/phpMan.php/man/snmpcmd/1/markdown)_
       manual page.  Note that **snmpgetnext** REQUIRES an argument specifying the agent to query and at
       least one OID argument, as described there.

## SEE ALSO
       [snmpcmd(1)](https://www.chedong.com/phpMan.php/man/snmpcmd/1/markdown), [snmpget(1)](https://www.chedong.com/phpMan.php/man/snmpget/1/markdown), [variables(5)](https://www.chedong.com/phpMan.php/man/variables/5/markdown).



V5.9.1                                       04 Mar 2002                              [SNMPGETNEXT(1)](https://www.chedong.com/phpMan.php/man/SNMPGETNEXT/1/markdown)
