Difference between revisions of "Snmpget"

From Net-SNMP Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
{{tool|snmpget|manual=1|tutorial=1|code=apps/snmpget.c}}
 
{{tool|snmpget|manual=1|tutorial=1|code=apps/snmpget.c}}
 +
 +
== Purpose ==
 +
 +
Issue a single SNMP [[GET]] operation to a remote agent.
 +
 +
== Command Line ==
 +
 +
The command line options are per the [[snmpcmd]] options.
 +
 +
The remaining options are a list of OIDs to use.
 +
 +
== Example Usage ==
 +
 +
  # snmpget -v 1 -c demopublic test.net-snmp.org sysUpTime.0
 +
  DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (333296) 0:55:32.96

Latest revision as of 22:45, 30 June 2011

Net-SNMP Tool
snmpget
Manual: snmpget
Tutorial: Tutorial
Code: apps/snmpget.c

Purpose

Issue a single SNMP GET operation to a remote agent.

Command Line

The command line options are per the snmpcmd options.

The remaining options are a list of OIDs to use.

Example Usage

 # snmpget -v 1 -c demopublic test.net-snmp.org sysUpTime.0
 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (333296) 0:55:32.96