There’s a plenty of great CLI tools in VCSA that modern vSphere administrator should know, so I decided to share my knowledge and describe them in the series of articles.
The first one is journalctl. A tool that simplifies and quickens the VCSA troubleshooting process.
Below I’m presenting how I’m using it, to filter the logs records.
Log in to VCSA shell and run the commands below, regarding to the result you want to achive.
The logs from the current boot:
The boots that journald is aware of:
It will show this kind of results representing each known boot:
Now you can use it, to display the results of the chosen boot:
To limit the results to the given timeframe, use dates or keywords:
Limiting the logs by service name:
Get the service names first:
To show only records for vpxd service in current boot:
Filtering by Id (Process, User or Group):
Get the user Id, e.g.:
Filtering by the binary path:
Displaying kernel messages:
Limiting messages by their priorities:
where the priority codes are:
Of course those examples don’t exhaust all the possibilities this tool has, but consider them as a usage starting point. Feel free to add new, useful examples in comments below.
That’s all for today!