Under Construction
LPAR tool and Logging
The LPAR tool logs all command calls. This makes it possible, for example, to track which commands have been executed in the past. The idea is not to monitor users, however. Each user has his own log file in the home directory (~/lpar.log). Only the user’s actions are logged in this log file. Since the home directory is typically protected from access by other users, other users cannot access the log file in the home directory. There is no central log file.
Display the last 20 lines from your log file:
$ tail -20 lpar.log
[30.01.22 13:34:57]
Version: 1.7.0.0 (20220126)
Command: hmc show
[30.01.22 13:50:47]
Version: 1.7.0.0 (20220126)
Command: lpar help
[30.01.22 13:58:07]
Version: 1.7.0.0 (20220126)
Command: lpar help fc
[30.01.22 14:02:32]
Version: 1.7.0.0 (20220126)
Command: lpar help lsfc
[30.01.22 16:16:43]
Version: 1.7.0.0 (20220126)
Command: lpar lsfc aix07
hmc01: lshwres -r virtualio --rsubtype fc -m ms01 --level lpar
$
Each entry starts with a timestamp and the version number of the LPAR tool. This is followed by the executed LPAR tool command. If commands were started on one or more HMCs, these are also listed with the name of the associated HMC.
The log is not rolled and can become relatively large over time. For example, my personal log is currently 133,521 lines long and covers the entire last year. You can delete the log file at any time; it has no effect on the way the LPAR tool works. When you run the next LPAR tool command, the log is automatically created again.