Enabling CLI Auditing
Use the instructions in this topic to enable and disable auditing via the Command Line Interface (CLI) in ExtremeCloud IQ Site Engine. The enable option also adjusts the auditing plugin to send auditing events to the syslog.
To enable the auditd process using the ExtremeCloud IQ Site Engine server CLI:
- Access the CLI through the ExtremeCloud IQ Site Engine server.
- Change the auditing rules file to meet the needs of your network:
Navigate to the
/etc/audit/audit.rules
folder.- Enter the rules to complete the auditing.
EXAMPLE: If you wanted to log every command run via the CLI, you would enter:
# Audit all commands from command line
-a exit,always -F arch=b64 -S execve
-a exit,always -F arch=b32 -S execve - Run the
/root/scripts/auditctl -e
script. - Press Enter.
- Open the
/etc/audisp/plugins.d/syslog.conf
file. - Verify that the
active
line is set to"active = yes"
to ensure the auditing plugin is sending auditing events to the syslog.
To disable the auditing option:
- Run the
/root/scripts/auditctl -d
script. - Press Enter.
- Open the
/etc/audisp/plugins.d/syslog.conf
file. - Verify that the
active
line is set to"active = no"
to ensure the auditing plugin is no longer sending auditing events to the syslog.