lsmsSNMP

SNMP Agent Process Control

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”.

Keyword

lsmsSNMP

Permission

Any user who belongs to the lsmsadm permission group.

Restrictions

The LSMS_DIR environment variable must be set.

Syntax

$LSMS_DIR/lsmsSNMP <Action>

Options

None.

Parameters

Action
Function to perform on the SNMP agent. This is a mandatory parameter with the following values:
  • start
  • stop
  • status

Sample Output

 #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

Files

Table A-15 shows the files for the lsmsSNMP command.

Files: lsmsSNMP

Filename

Type

Location

snmp.cfg

Configuration file

/usr/TKLC/plat/etc/snmp

Possible Errors

Exit Codes: lsmsSNMP

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.