All commands are available from domain NETWORK-MANAGEMENT and they require NET-ADMINISTRATION privilege.
- START-NET-SNMP - possible outputs:
If snmpd is not running and START-NET-SNMP is executed a message will be displayed (also displayed on the operator console):
snmpd is started log file is on POSIX file system: /var/adm/snmpd.log
If snmpd is running and START-NET-SNMP is executed a message will be displayed:
snmpd is already started
- STOP-NET-SNMP - possible outputs:
If snmpd is running and STOP-NET-SNMP is executed a message will be displayed (also displayed on the operator console):
snmpd successfully terminated
If snmpd is not running and STOP-NET-SNMP is executed a message will be displayed:
snmpd is not running
If the STOP command cannot be successfully executed:
unable to stop snmpd
- RESTART-NET-SNMP - possible outputs:
If snmpd is not running and RESTART-NET-SNMP is executed a message will be displayed:
snmpd is not started: START-NET-SNMP
If snmpd is running and RESTART-NET-SNMP is executed a message will be displayed also displayed on the operator console):
snmpd is restarted log file is on POSIX file system: /var/adm/snmpd.log
- SHOW-NET-SNMP-STATUS
If snmpd is not running and SHOW-NET-SNMP-STATUS is executed a message will be displayed:
snmpd is not running
If snmpd is running and SHOW-NET-SNMP-STATUS is executed a message will be displayed:
snmpd is running log file is on POSIX file system: /var/adm/snmpd.log
If the application crashed, is cancelled or killed:
snmpd is dead
If application is running on POSIX, but has not been launched by the RC scripts or by the START-NET-SNMP command:
snmpd is running but it has not been started by START-NET-SNMP log file is on POSIX file system: /var/adm/snmpd.log
Available return codes when NET-SNMP package is installed:
Command name | Exit codes |
START-NET-SNMP | NET0001 CMD0001 |
STOP-NET-SNMP | NET0001 NET0002 CMD0001 |
RESTART-NET-SNMP | NET0001 NET0003 CMD0001 |
SHOW-NET-SNMP-STATUS | NET0003 CMD0001 |
START-SNMP-AGENT | NET0001 NET0003 CMD0001 |
STOP-SNMP-AGENT | NET0001 NET0004 CMD0001 |
RESTART-SNMP-AGENT | NET0001 NET0005 CMD0001 |
SHOW-SNMP-AGENT-STATUS | NET0001 CMD0001 |
Explanation of exit codes:
CMD0001
: No error
NET0001
: SNMP is not installed
NET0002
: Unable to stop snmpd
NET0003
: snmpd is not running: START-NET-SNMP
NET0004
: Unable to stop net-snmp agent
NET0005
: NET-SNMP agent is not running
Regarding NET0001 error
Error NET0001 will be returned in case of all possibilities different than CMD0001 or NET0002-NET0005. This means if the error POSIX subsystem is not installed
appears, the return code NET0001 will be returned. If error with RC=CCM0999
and SC2=127
appears, also NET0001 will be returned.