Skip to main content

logmgr commands

Use the logmgr commands to obtain and clear BMC event logs. The logmgr commands support in-band and out-of-band mode.

logmgr command syntax

OneCli.exe [misc] logmgr <cmds> [<options>]
Table 1. logmgr commands and syntax examples
CommandSyntax exampleDescription
clearbmclog
OneCli.exe misc logmgr
clearbmclog
  • Clear the BMC event logs of the server.
  • Clear the remote BMC event logs by inputting --bmc user:password@host:port.
  • Can be run on the local host OS without specifying --bmc.
clearall
OneCli.exe misc logmgr
clearall --bmc userid:
password@host
  • Clear the BMC event logs and the system event logs of the server.
  • Clear the remote BMC event logs and the system event logs by inputting --bmc user:password@host:port.
  • Can be run on the local host OS without specifying --bmc
clearsel
OneCli.exe misc logmgr
clearsel --bmc userid:
password@host
  • Clear the system event logs of the server.
  • Clear the remote BMC system event logs by inputting --bmc user:password@host:port.
  • Can be run on the local host OS without specifying --bmc.
showauditlog
OneCli.exe misc logmgr
showauditlog --bmc userid:
password@host
  • Display the BMC audit event logs of the server.
  • Display the remote BMC audit event logs by inputting --bmc user:password@host:port.
  • Can be run on the local host OS without specifying --bmc.
showbmclog
OneCli.exe misc logmgr
showbmclog --bmc userid:
password@host
  • Display the BMC Platform event logs of the server.
  • Display the remote BMC event logs by inputting --bmc user:password@host:port.
  • Can be run on the local host OS without specifying --bmc.
showmaintlog
OneCli.exe misc logmgr
showmaintlog --bmc userid:
password@host
  • Display the BMC maintenance logs of the server.
  • Display the remote BMC maintenance logs by inputting --bmc user:password@host:port.
  • Can be run on the local host OS without specifying --bmc.
showsel
OneCli.exe logmgr
showsel --bmc userid:
password@host
  • Display the system event logs of the server.
  • Display the remote BMC system event logs by inputting --bmc user:password@host:port.
  • Can be run on the local host OS without specifying --bmc.
Table 2. logmgr command specific parameters
ParameterRequired/OptionalNotes
--type, -TOptional

Specify the type of BMC log to be cleared.

AEL: Audit Event Log

PEL: Platform Event Log

ALL: Audit Event Log and Platform Event Log

  • --bmc, -b

  • --bmc-cim-port, -p

  • --bmc-password, -w

  • --bmc-username, -u

  • --check-trust, -C

  • --config

  • --nolog

  • --never-check-trust, -N

  • --output, -o

Optional

Refer to Table 2.

Example of the logmgr command

OneCli.exe logmgr clearbmclog --bmc userid:password@host