admsnmpobject(1M) DG/UX 5.4.2 admsnmpobject(1M)
NAME
admsnmpobject - manage the snmpd object database
SYNOPSIS
admsnmpobject -o get [ -q|v ] object
admsnmpobject -o set [ -a value ] object
admsnmpobject -o reset object
admsnmpobject -o list [ -q|v ] [ all|[object ...]] ]
admsnmpobject -o supported [ -q|v ] [ all|[object ...]] ]
DESCRIPTION
Use admsnmpobject to manage the MIB object database. The MIB object
database is located in the /etc/snmpd.config file. This database
contains optional entries to specify values for MIB objects that are
machine dependent. Use this command to tailor the objects in the
database appropriately for your system. Each entry in the object
database consists of an objectname, an equal sign, and a value. Not
all objects maintained by snmpd can be modified. Use the supported
operation to see a list of objects that you can modify.
Most adminstrators only need to specify the sysContact and
sysLocation objects because the agent can provide reasonable defaults
for all other supported objects.
get Get the current value for the requested object. If the
object is in the database the value is printed, otherwise,
the default value is printed.
set Set the object to the requested value.
reset Reset the value of the object to the system supplied
default. This option removes the entry for object from the
database.
list List the current value for object.
supported List the objects that are allowed in the database and give
the default values that are assigned to them.
Options
-a value Use the value option to specify the value to be assigned to
the requested object.
-q Use the quiet option to produce an unformatted listing.
-v Use the verbose option to produce a formatted listing of
object value pairs with headers and aligned columns.
OUTPUT
All operations write their output to stdout and diagnostics to
Licensed material--property of copyright holder(s) 1
admsnmpobject(1M) DG/UX 5.4.2 admsnmpobject(1M)
stderr.
If you specify the -v "verbose" option with the list, get, or
supported operations, the object-value pairs are displayed in aligned
columns with headers.
If you specify the -q "quiet" option with the list or get operation,
headers are suppressed and only the values for the objects are
written. If you specify the -q "quiet" option with the supported
operation, headers are suppressed and only valid object names are
written. If you do not specify either the -q or -v option with the
list, get, or supported operations, headers are suppressed, and the
output is in an object=value format.
FILES
/etc/snmpd.config the MIB object database.
DIAGNOSTICS
Warnings
- If the agent can not be sent a SIGHUP signal to request
reconfiguration.
Errors
- The object requested is not one of the supported objects.
Exit Codes
0 The operation was successful.
1 The operation was unsuccessful.
2 The operation failed due to access restrictions.
3 There was an error in the command line.
SEE ALSO
snmpd(1M), sysadm(1M), snmpd.config(4M).
NOTES
Access to the get, set, and reset operations is granted based upon
write access to the /etc/snmpd.config file. Generally, only the
system administrator has this access. Access to the list and
supported operation is granted based upon read access to the
/etc/snmpd.config file. Generally, everyone has this access.
Licensed material--property of copyright holder(s) 2