List Operating Log(LST OPTLOG)

Function

An OM command that queries the delivered and authenticated commands, which are recorded in the operating logs. You can query the records based on different or combined conditions.

1.To query all operating logs, do not specify any parameter.

2.To query all the operating logs with a source of the specific terminal, specify the parameter Source.

3.To query all the operating logs relative to a specific operator, specify the parameter Operator.

4.To query all the operating logs relative to a specific login domain, specify the parameter Domain.

5.To query all the operating logs relative to a specific IP address, specify the parameter IP.

6.To query all the operating logs relative to a specific command, specify the parameter Command.

7.To query all the operating logs generated within a specific period, specify the parameters Starttime and Endtime.

8.To query all the operating logs relative to a specific operation type, specify the parameter Operation type.

9.To query all the operating logs with a specific execution result, specify the parameter Finish.

10.To query all the operating logs with a specific error code, specify the parameter Error code.

11.To query all the operating logs with a specific number of records, specify the parameter Records to return.

Note

The conditions can be combined in the query. The result is the content of the logs that meet all the specified conditions.

Parameters

ID Name Description
SRC Source

Meaning: source attribute

Value range: EMS, LMT, INF, TELNET, SERIAL, OTHER

Explanation:

1. EMS: element management system;

LMT: local maintenance terminal;

INF: northbound interface;

TELNET: TELNET terminal;

SERIAL: serial

OTHER: other terminals.

2. This parameter specifies the terminal type of the command source according to which the operating log is queried. By default, logs with terminal types of all the command sources are queried.

Default value: None

OP Operator

Meaning: operator account

Value range: 1-32 characters

Explanation: This parameter specifies the operator account according to which the operating log is queried. By default, logs with all operator accounts are queried. For example, when you run the command lgi:op="admin",pwd="admin"; on the telnet to log in to the MML30023 port, "op" here indicates the operator.

Default value: None

DN Domain

Meaning: domain attribute

Value range: LOCAL(Local), EMS(LMT), EMSOP(M2000)

Explanation: This parameter specifies the domain attribute (login domain) according to which the operating log is queried. By default, logs with all the domain attributes are queried.

Default value: None

WS IP

Meaning: IP address of the workstation on which the command is executed

Value range: 0.0.0.0-255.255.255.255

Explanation: This parameter specifies the IP address of the workstation according to which the operating log is queried. By default, logs with the IP address of all workstations are queried.

Default value: None

ST Starttime

Meaning: start time of the time period of the query

Value range:

1. Year: 1970-2538

2. Month: 1-12

3. Day: 1-31

4. Hour: 0-23

5. Minute: 0-59

6. Second: 0-59

Explanation: This parameter specifies the start time of the time period in the query. You can query the operating log that is delivered after the start time. By default, the value is the earliest time of the very day.

Default value: None

ET Endtime

Meaning: end time of the time period of the query

Value range:

1. Year: 1970-2538

2. Month: 1-12

3. Day: 1-31

4. Hour: 0-23

5. Minute: 0-59

6. Second: 0-59

Explanation: This parameter specifies the end time of the time period of the query. You can query the operating log that is delivered before the end time. By default, the value is the time when the current command is delivered.

Default value: None

CMD Command

Meaning: MML command name

Value range: names of all valid MML commands

Explanation: This parameter specifies the MML command according to which the operating log is queried. By default, logs with all types of MML commands are queried. You can choose one or more MML commands to be queried. The fuzzy search is supported. That is, you can query a MML command by inputting just part of that command. For example, to query the command "lst optlog", you can input just "lst op". To query multiple commands, separate the commands using &.

Default value: None

CMDTP Command type

Meaning: command type

Value range: SYS(system), CM(configure), MAINTENANCE(maintenance), ALM(alarm), SECURITY(security), PM(performance), TASK(task), OPR(operation), OTHER(other)

Explanation: This parameter specifies the command type according to which the operating log is queried. By default, logs with all types of commands are queried.

Default value: None

FIN Finish

Meaning: result of executing the command

Value range: SUCCESS(success), FAIL(fail)

Explanation: This parameter specifies the result of executing the command according to which the operating log is queried. By default, logs with all types of results are queried.

Default value: None

ERCODE Error code

Meaning: error code

Value range: 1-2147483646

Explanation: This parameter specifies the error code according to which the operating log is queried. By default, logs with all types of error codes are queried. If the execution of the command fails, the error code specifies the detailed failure.

Default value: None

MAX Records to return

Meaning: number of returned records of the operating logs

Value range: 0-1000

Explanation: This parameter specifies the number of records returned for a query. By default, 64 records can be returned for each query.

Default value: 64

Example

1. Query the record of all the operating logs:
LST OPTLOG:;
The result is as follows:
+++    HUAWEI        2008-07-28 14:26:12
O&M    #7
%%LST OPTLOG:;%%
RETCODE = 0  Operation succeeded

User Operation Information
--------------------------
Source  Operator  Domain  Workstate/IP  Operate Type  Operate Time         Result   Error Code  Comm
and Level  Record Time
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:07:23  Success  0           MAJO
R          2008-07-28 14:07:23
Operation Command Information:    LGI:op="admin",PWD="*****",SER="10.161.24.72---O&M System";
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:07:41  Success  0           MAJO
R          2008-07-28 14:07:41
Operation Command Information:    LST TRCRSLT:FILENAME="Trc_*.tmf";
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:14:11  Success  0           MAJO
R          2008-07-28 14:14:11
Operation Command Information:    LST TRCRSLT:FILENAME="Trc_*.tmf";
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:15:25  Success  0           MAJO
R          2008-07-28 14:15:25
Operation Command Information:    LST TRCRSLT:TASKNO=32;
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:16:03  Success  0           MAJO
R          2008-07-28 14:16:03
Operation Command Information:    LST TRCRSLT:FILENAME="Trc_32_20080724_125431.75.tmf";
(Number of results = 5)
1 reports in total
---    END

2. Query the record of operating logs generated within a specified time period:
LST OPTLOG: ST=2007&10&29&08&58&19, ET=2007&10&29&09&58&19;
The result is as follows:
+++    HUAWEI        2008-07-28 14:32:06
O&M    #9
%%LST OPTLOG:ST=2008&7&28&09&00&00,ET=2008&7&28&22&00&00;%%
RETCODE = 0  Operation succeeded

User Operation Information
--------------------------
Source  Operator  Domain  Workstate/IP  Operate Type  Operate Time         Result   Error Code  Comm
and Level  Record Time
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:07:23  Success  0           MAJO
R          2008-07-28 14:07:23
Operation Command Information:    LGI:op="admin",PWD="*****",SER="10.161.24.72---O&M System";
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:07:41  Success  0           MAJO
R          2008-07-28 14:07:41
Operation Command Information:    LST TRCRSLT:FILENAME="Trc_*.tmf";
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:14:11  Success  0           MAJO
R          2008-07-28 14:14:11
Operation Command Information:    LST TRCRSLT:FILENAME="Trc_*.tmf";
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:15:25  Success  0           MAJO
R          2008-07-28 14:15:25
Operation Command Information:    LST TRCRSLT:TASKNO=32;
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:16:03  Success  0           MAJO
R          2008-07-28 14:16:03
Operation Command Information:    LST TRCRSLT:FILENAME="Trc_32_20080724_125431.75.tmf";
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:26:12  Success  0           MAJO
R          2008-07-28 14:26:12
Operation Command Information:    LST OPTLOG:;
(Number of results = 6)
1 reports in total
---    END

3. Query the record of operating logs of a specified operator:
LST OPTLOG: OP="admin";
The result is as follows:
+++    HUAWEI        2008-07-28 14:51:00
O&M    #10
%%LST OPTLOG:OP="admin";%%
RETCODE = 0  Operation succeeded

User Operation Information
--------------------------
Source  Operator  Domain  Workstate/IP  Operate Type  Operate Time         Result   Error Code  Comm
and Level  Record Time
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:07:23  Success  0           MAJO
R          2008-07-28 14:07:23
Operation Command Information:    LGI:op="admin",PWD="*****",SER="10.161.24.72---O&M System";
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:07:41  Success  0           MAJO
R          2008-07-28 14:07:41
Operation Command Information:    LST TRCRSLT:FILENAME="Trc_*.tmf";
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:14:11  Success  0           MAJO
R          2008-07-28 14:14:11
Operation Command Information:    LST TRCRSLT:FILENAME="Trc_*.tmf";
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:15:25  Success  0           MAJO
R          2008-07-28 14:15:25
Operation Command Information:    LST TRCRSLT:TASKNO=32;
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:16:03  Success  0           MAJO
R          2008-07-28 14:16:03
Operation Command Information:    LST TRCRSLT:FILENAME="Trc_32_20080724_125431.75.tmf";
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:26:12  Success  0           MAJO
R          2008-07-28 14:26:12
Operation Command Information:    LST OPTLOG:;
TELNET  admin     Local   10.161.24.72  MAINTENANCE   2008-07-28 14:32:06  Success  0           MAJO
R          2008-07-28 14:32:06
Operation Command Information:    LST OPTLOG:ST=2008&7&28&09&00&00,ET=2008&7&28&22&00&00;
(Number of results = 7)
1 reports in total
---    END

Output Description

Domain Name Description
Source

Type of the terminal of the command source

Operator

Name of the operator that executes the command

Domain

Attribute of the login domain

Workstate/IP

IP address of the workstation on which the command is executed

Operate Type

Type of the command

Operate Time

Time when the command is executed

Result

Execution result of the command

Error Code

Return code after the command is executed

Command Level

Level of the command

Record Time

Time when the execution of the command is complete

Operation Command Information

Content of the command


Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.