DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

getid(ADMN)


getid -- retrieve system MIB variables from SNMP entity

Synopsis

getid [-T timeout] entity_addr community_string

Description

The getid command is an SNMP application that retrieves the variables sysDescr.0, sysObjectID.0, and sysUpTime.0 from an SNMP entity.

The arguments are the entity's address and the community string needed for access to the SNMP entity.

The entity address can be either an IP address or entity name (if name-to-address resolution is enabled).

The community string used must be valid on the given entity. Community strings are kept in /etc/netmgt/snmpd.comm.

The primary purpose of this application is to illustrate the use of the SNMP library routines.

Options

By default, getid waits 20 seconds for a response from the entity specified by entity_addr. Use the -T timeout option to specify a different number of seconds for the command to wait for a response.

References

getmany(ADMN), getone(ADMN), getnext(ADMN), snmp(ADMN), snmpstat(ADMN), snmpd.comm(SFF)

RFC 1155, RFC 1157, RFC 1213


© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005