SNMPQUERY(1) — NEWS-OS Programmer’s Manual
NAME
snmpquery − Simple SNMP querying application
SYNOPSIS
snmpquery [-c community_name] agent variable [variable..]
DESCRIPTION
snmpquery is a simple querying application that allows the interrogation of Internet monitoring agents running the Simple Network Management Protocol from the command line. It is intended as a ’quick and dirty’ way of querying an agent once or twice for arbitrary SNMP variables. When snmpquery is invoked with arguments agent and variable, the agent agent specified as an ip address will be queried for the value of the SNMP variable variable. This application will print out the name and the value of the variable queried for upon successful return. If a community name other than the default of ’public’ is to be used in the query, this community name can be specified with the -c option. In this event, where the -c option is used, the query sent out will have community name community_name, instead of the default of public. Variables whose values are to be queried for must begin with ’_mgmt_mib’: for example, to query for the variable ’_iso_org_dod_internet_mgmt_mib_system_sysDescr_0’, use the abbreviation ’_mgmt_mib_system_sysDescr_0’.
FILES
/etc/snmp.variablesdefault variable initfile
SEE ALSO
J.D. Case, J.R. Davin, M.S. Fedor, M.L. Schoffstall, Simple Network Management Protocol, Request for Comments 1157, Network Information Center, SRI International, Menlo Park, California, May, 1990. M.T. Rose, K. McCloghrie, Structure of Management Information, Request for Comments 1155, Network Information Center, SRI International, Menlo Park, California, May, 1990. K. McCloghrie, M.T. Rose, Management Information Base, Request for Comments 1156, Network Information Center, SRI International, Menlo Park, California, May, 1990. M.T. Rose, Editor Management Information Base: MIB-II, Request for Comments 1158, Network Information Center, SRI International, Menlo Park, California, May, 1990.
NEWS-OSRelease 4.2.1R