admsnmpobject(1M) DG/UX R4.11MU05 admsnmpobject(1M)
NAME
admsnmpobject - manage the snmpd object database
SYNOPSIS
admsnmpobject -o get [ -q|v ] object
admsnmpobject -o set [ -qn ] [ -a value ] object
admsnmpobject -o reset [ -qn ] 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.conf file. Use this command to
tailor the objects in the database appropriately for your system.
Each entry in the object database consists of the keyword object, the
object, 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 administrators need only 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 For the list operation this produces an unformatted
listing. (i.e., no headers). For the set or reset
operations it suppresses confirmation messages.
-v Use the verbose option to produce a formatted listing of
object value pairs with headers and aligned columns.
-n Use this option to modify the object database without
reconfiguring the agent.
FILES
/etc/snmpd.conf the SNMP agent configuration file.
DIAGNOSTICS
Warnings
- If the agent can not be reconfigured.
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.conf(4M).
NOTES
Access to the get, set, and reset operations is granted based upon
write access to the /etc/snmpd.conf file. Access to the list and
supported operation is granted based upon read access to the
/etc/snmpd.conf file.
Licensed material--property of copyright holder(s)