2.4.7. Logging of the Command Calls

By default, the LPAR tool logs all command calls in the file lpar.log in the user’s home directory. The time is recorded, the version of the LPAR tool, the command that was started and all commands on the HMCs that were executed as a result of the command of the LPAR tool:

$ cat ~/lpar.log

[12.09.20 11:15:56]
Version: (20200801)
Command: lpar activate -p standard aix03
hmc02: chsysstate -m s822 -r lpar -o on -n aix03 -f standard

[12.09.20 11:16:05]
Version: (20200801)
Command: lpar status
hmc02: lssyscfg -r lpar -m s822
hmc02: lshwres -r mem -m s822 --level lpar
hmc02: lshwres -r proc -m s822 --level lpar


If an error occurs while executing a command, the error message is also recorded in the log file.

If the file gets too big, it can be deleted at any time. The log file serves the sole purpose of keeping a record of the activities that the user has carried out with the LPAR tool.