logmgr command

Use the logmgr commands to display and clear the system event log and the IMM event log. The logmgr commands support in-band and out-of-band mode.

logmgr command syntax

OneCli.exe misc logmgr <cmds> [<options>] [<connect opts>] 

Options

--help
Displays help information for commands and then exits without executing the command.
--output <arg>
Specifies the output directory.

Connection option

--imm <arg>
Specifies the IMM connection information.
Table 1. logmgr commands and syntax examples
Command Syntax example Description
showsel
OneCli.exe logmgr showsel
 --imm USERID:PASSW0RD@
10.240.197.65
  • Displays the system event log of the server.
  • Displays the remote IMM system event log using:
    --imm user:password@ip:port
  • Can be run on the local host OS without specifying the connection options.
clearsel
OneCli.exe misc logmgr
 clearsel
  • Clears the system event log of the server.
  • Clears the remote IMM system event log using:
    --imm user:password@ip:port
  • Can be run on the local host OS without specifying the connection options.
showimmlog
OneCli.exe misc logmgr
showimmlog --imm USERID:
PASSWORD@10.240.197.65
  • Displays the IMM event log of the server.
  • Displays the remote IMM event log using:
    --imm user:password@ip:port
  • Can be run on the local host OS without specifying the connection options.
clearimmlog
OneCli.exe misc logmgr
clearimmlog
  • Clears the IMM event log of the server.
  • Clears the remote IMM event log using:
    --imm user:password@ip:port
  • Can be run on the local host OS without specifying the connection options.
clearall
OneCli.exe misc logmgr
clearall --imm USERID:
PASSW0RD@10.240.197.65
  • Clears the IMM event log and the system event log of the server.
  • Clears the remote IMM event log and the system event using:
    --imm user:password@ip:port
  • Can be run on the local host OS without specifying the connection options.

Example of the clearimmlog command output

Lenovo ToolsCenterSuite CLI tcliXXX-X.X.X
Based on module version X.X.X
Licensed Materials - Property of Lenovo
(C) Copyright Lenovo Corp. 2013-2016 All Rights Reserved
Invoking SHOW command ...
Connected to IMM by IP address 10.240.252.102
start to clear IMM log from system
clear IMM log Successfully!