NSX CLI Guide
Associated Commands:
CLI Description | Command |
---|---|
Clear all configured logging-serversClear all logging server configuration. |
clear logging-servers
|
Delete logging-serverDelete the specified logging server configuration. You can use the get logging-servers command to display the current logging server configuration. |
del logging-server <hostname-or-ip-address[:port]> proto <proto> level <level> [facility <facility>] [messageid <messageid>] [structured-data <structured-data>]
|
Show log file contentsDisplay the contents of the specified log file. |
get log-file <log-file-arg>
|
Show log file contentsDisplay the last 10 lines of the specified log file and all new messages that are written to the log file. |
get log-file <log-file-arg> follow
|
Display the list of logs filesDisplay the list of logs files |
get log-file list
|
Display all configured logging serversDisplay logging server configuration. |
get logging-servers
|
Set logging-serverConfigure a logging server. The logging system uses the facility codes defined in RFC 5424. Facility local7 is used for audit messages, and local6 is used for non-audit messages. |
set logging-server <hostname-or-ip-address[:port]> proto <proto> level <level> [facility <facility>] [messageid <messageid>] [serverca <filename>] [clientca <filename>] [certificate <filename>] [key <filename>] [structured-data <structured-data>]
|
Verify all configured logging serversVerify iptables rules for all logging servers and update if needed |
verify logging-servers
|
Total commands: 8