Logging SNMP Agent Actions

When the LSMS SNMP agent process starts, stops, or sends a trap request, it logs information about the action in a log file. The log file is named lsmsSNMP.log. The log file is stored in the directory /usr/TKLC/lsms/logs/snmp.

Table 1 shows the actions and information logged by the LSMS SNMP agent.

Information Logged by the LSMS SNMP Agent

Action

Information Logged

The SNMP agent starts

Action, followed by day, date, time, and year; for example:

LSMS SNMP agent started: Thu Mar 09 09:02:53 2000

The SNMP agent stops

Action, followed by day, date, time, and year; for example:

LSMS SNMP agent stopped: Thu Mar 09 15:34:50 2000

The SNMP agent sends a trap request

The following fields, delimited by pipe characters:

  • Timestamp, recorded as YYYYMMDDhhmmss (year, month, date, hour, minute, second)

  • trap_ID, a unique numeric identifier that corresponds to the specific trap request sent.

  • For each NMS configured (up to five allowed):

    • The NMS’s IP address

    • Status (either of the following):

      • S to indicate that the LSMS SNMP agent succeeded in sending the trap request. (Even if the LSMS SNMP agent successfully sends the trap request, there is no guarantee that the NMS receives it.)

      • F to indicate that the LSMS SNMP agent failed in sending the trap request.

Following is a sample entry logged when a trap is sent (in this entry, a trap with a trap_ID of 3 is sent to two NMSs):

20000517093127|3|10.25.60.33|S|10.25.60.10|S