lsaudit command
Use the lsaudit command to list audit settings and categories.
Synopsis
smcli lsaudit [-h | -? | --help]
smcli lsaudit [-l category_name]
Description
If you use the lsaudit command without any options, it lists the current auditing settings such as status (enabled or disabled) and the list of available auditing categories with their status (enabled or disabled). It can also list the information related to all the actions or the actions of particular categories when you use the required options. If IBM® Flex System Manager is configured to send audit logs to syslog server, then that configuration will also be listed.
Options
- -h | -?
- Displays the syntax and a brief description of the command. Tip: If you specify additional options other than -h | -? | --help, the options are ignored.
- --help
- Displays detailed information about the command, including the
syntax, a description of the command, a description of the options
and operands, error codes, and examples. Tips:
- If you specify additional options other than -h | -? | --help, the options are ignored.
- You can also display detailed help in the form of man pages using the man command_name command.
- -l category_name [, category_name...] | ALL
- Specifies the categories for which information is displayed. Each category_name is separated by a comma. If you specify ALL, information for all categories is displayed.
Exit status
The following codes are returned by this command.- 0: The operation completed.
- 1: A usage error occurred.
- 2: The command or bundle was not found.
- 3: The command was not performed because either authentication failed or you are not authorized to perform the action.
- 27: A specified attribute is not valid.
- 29: The specified locale is not valid or not supported.
Examples
- List all audit settings and audit categories
This example illustrates how to list all audit settings and categories.
smcli lsaudit - View information for specified audit categories
This example illustrates how to list information for specified categories cat_1 and cat_2.
smcli lsaudit -l cat_1,cat_2 - View information for all audit categories
This example illustrates how to list information for all available categories.
smcli lsaudit -l ALL