getid(1Msnmp)


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. On UnixWare, 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(1Msnmp), getone(1Msnmp), getnext(1Msnmp), snmp(1Msnmp), snmpstat(1Msnmp), snmpd.comm(4snmp)

RFC 1155, RFC 1157, RFC 1213


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004