Listing virtual logs or virtual log devices
You can list virtual logs or virtual log devices by using the lsvlog command.
To list virtual logs or virtual log devices, use the following commands, as applicable:
- To display the properties of virtual logs, enter the lsvlog command.
For example, entering the lsvlog command returns
results similar to the following:
Client Name Log Name UUID VTD lpar-03 syslog 02392437473b6c552680a9ddd2fd8d06 vhost1/vtlog1 lpar-02 syslog 956f8c1c25208091495c721e0796f456 vhost0/vtlog0 lpar-01 audit 9705340b31a7883573a1cd04b2254efd lpar-01 syslog b27a94a8e187ee5c917577c2a2df0268 - You can filter the output by using options such as -uuid to
display only the log with a specific UUID. For example, entering the lsvlog
-uuid 02392437473b6c552680a9ddd2fd8d06 command returns results
similar to the following:
Client Name Log Name UUID VTD lpar-03 syslog 02392437473b6c552680a9ddd2fd8d06 vhost1/vtlog1 - To display all properties for each virtual log, use the -detail option.
The virtual logs are displayed and are sorted by client name. For
example, entering the lsvlog -uuid 02392437473b6c552680a9ddd2fd8d06
-detail command returns results similar to the following:
Client Name: lpar-03 Log Name: syslog UUID: 02392437473b6c552680a9ddd2fd8d06 Virtual Target Device: vtlog1 Parent Adapter: vhost1 State: enabled Logical Unit Address: 8100000000000000 Log Directory: /var/vio/vlogs/lpar-03/syslog Maximum Log Files: 10 Maximum Log File Size: 1048576 Maximum State Files: 10 Maximum State File Size: 1048576 - To display this information in a custom format, use the -field option.
Specify a string with field names separated by characters that are
not alphanumeric. For example, entering the lsvlog -field
"uuid\tsfs:sf" command lists all virtual logs. Results similar
to the following are displayed:
02392437473b6c552680a9ddd2fd8d06 1048576:10 956f8c1c25208091495c721e0796f456 1048576:10 9705340b31a7883573a1cd04b2254efd 1048576:5 b27a94a8e187ee5c917577c2a2df0268 65536:20