man tinysnmpget (Commandes) - retrieves one or more object identifiers from an agent

NAME

tinysnmpget - retrieves one or more object identifiers from an agent

SYNOPSIS

tinysnmpget [OPTIONS] <hostname> <community> <objectID> [[objectID]...]

DESCRIPTION

tinysnmpget is one of a set of command-line utilities used to query an agent.

OPTIONS

A summary of options is included below.

-p | --port=SERVICE
The port which the server binds to. You may specify either a service as found in /etc/services or a valid port number. By default, snmp/udp is searched for in the /etc/services file and the resulting port number is used. Failing that, port 161 is used. If the program was compiled without -DGETSERVBYNAME, you may only used port numbers (and the default behaviour also differs accordingly).
-t | --timeout=SECONDS
Timeout in seconds between operations. This setting affects how long the manager waits for the agent to respond to queries.
-r | --retries=NUM
Number of times that the manager will try to resend requests to the agent. Any number of retries between 0 and 65535 is allowed.
-h | --help
Show a help message.
<hostname>
Hostname or ip-address of agent. If the program was compiled without -DGETHOSTBYNAME, you may only specify an ip-address.
<community>
The community string which manager must use to connect to the server.
<objectID>
A list of Object Identifiers (OIDs) that should be retrieved from the agent. OIDs should be absolute, i.e. no assumptions is made about them and does not start with a dot (e.g. 1.3.6.1 is a valid OID, but .1.3.6.1 is not)

All of these options can also be found be executing the program with the -h or --help options.

SEE ALSO

AUTHOR

Written by Abraham vd Merwe <abz@blio.com>