Lets you start, stop, or show status of the SNMP Agent process. For more information about the SNMP agent process, see “Understanding the SNMP Agent Process”.
lsmsSNMP
Any user who belongs to the lsmsadm permission group.
The LSMS_DIR environment variable must be set.
$LSMS_DIR/lsmsSNMP <Action>
None.
#Stop the SNMP Agent
> $LSMS_DIR/lsmsSNMP stop
LSMS SNMP Agent stopped: Fri Mar 10 09:50:47 2000 #Start the SNMP Agent
> $LSMS_DIR/lsmsSNMP start
LSMS SNMP Agent started: Fri Mar 10 10:50:47 2000 #Determine the SNMP Agent status
> $LSMS_DIR/lsmsSNMP status
LSMS SNMP AGENT PROCESS STATUS:
TOTAL SUCCESSFUL TRAP REQUEST= 12
TOTAL FAILED TRAP REQUEST = 2
== IP-ADDRESS == == STATUS ====
177.88.34.7 Failed
198.77.39.2 SNMP Session Established
Table A-15 shows the files for the lsmsSNMP command.
Filename |
Type |
Location |
---|---|---|
snmp.cfg |
Configuration file |
/usr/TKLC/plat/etc/snmp |
Exit Code |
Cause |
Suggested Recovery |
---|---|---|
1 |
Failed operation. |
Contact the My Oracle Support (MOS). |
2 |
Operation not required. |
No action necessary. |
3 |
Usage error. |
Correct the syntax. |
4 |
Fatal application error |
Contact the My Oracle Support (MOS). |
5 |
Server not active. |
Execute the command on the active server. |
6 |
LSMS software not running. |
Start the LSMS. |
This command is usually run by scripts; scripts should search for exit codes. When the command is run from the command line, the output indicates suggested recovery. |