lslic can also list the LIC levels currently in the Hardware Management Console (HMC) hard disk repository.
| -m | The name of the managed system for which LIC levels are to be listed. The name may either be the user-defined name for the managed system, or be in the form tttt-mmm*sssssss, where tttt is the machine type, mmm is the model, and sssssss is the serial number of the managed system. The tttt-mmm*sssssss form must be used if there are multiple managed systems with the same user-defined name. |
| -c |
List all LIC level files currently in the HMC hard disk repository.
To list only the LIC level installation packages that are currently in the HMC hard disk repository, run the lslic -m managed-system -r disk command with the -l option. |
| -t |
The type of LIC levels to list. Valid values are sys for managed system LIC levels, io for I/O adapter levels, sriov for Single Root I/O Virtualization (SR-IOV) adapter levels, bmc for Baseboard Management Controller (BMC) firmware levels, pnor for PNOR firmware levels, or bmcpnor for both BMC and PNOR firmware levels.
The bmc, pnor, and bmcpnor values are valid for OpenPower managed systems only. No other values are valid for OpenPower managed systems. If this option is omitted, it will default to bmcpnor for OpenPower managed systems and to sys for other types of managed systems. This option is not valid with the -c option. |
| -r |
The repository to query for LIC levels that are available to be retrieved. Valid values are ibmwebsite for the IBM service website, ftp for a remote FTP site, sftp for a remote secure FTP (SFTP) site, dvd for the DVD drive on the HMC, disk for the internal hard disk drive on the HMC, mountpoint for the specified mount point on the internal hard disk drive on the HMC, or usb for a USB flash memory device.
When used with the -l option, only the LIC levels where the installation package and cover letter both exist in the repository are displayed. This option can be used to display what installation packages have been staged to the local disk repository, or to display the installation packages in the specified repository. This option is not valid with the -c option. |
| -l |
When displaying LIC levels that are available to be retrieved from a repository, use this option to specify the operation type of the LIC levels to list. Valid values are update to list update LIC levels only, upgrade to list upgrade LIC levels only, or downgrade to list downgrade LIC levels only. If this option is omitted, LIC levels of all operation types will be listed.
When this option is used, only the LIC levels where the installation package and cover letter both exist in the repository are displayed. This option is only valid when displaying LIC levels that are available to be retrieved from a repository. |
| -h |
The host name or IP address of the remote FTP or SFTP server.
This option is required when displaying LIC levels that are available to be retrieved from a remote FTP or SFTP site. This option is not valid otherwise. |
| -u |
The user ID to use to log in to the remote FTP or SFTP site.
This option is required when displaying LIC levels that are available to be retrieved from a remote FTP or SFTP site. This option is not valid otherwise. |
| --passwd |
The password to use to log in to the remote FTP or SFTP site.
If this option is omitted when displaying LIC levels that are available to be retrieved from a remote FTP site, you will be prompted to enter the password. If both this option and the -k option are omitted when displaying LIC levels that are available to be retrieved from a remote SFTP site, you will be prompted to enter the password. The --passwd and -k options are mutually exclusive. This option is only valid when displaying LIC levels that are available to be retrieved from a remote FTP or SFTP site. |
| -k |
The name of the file that contains the SSH private key. If the file name is not fully qualified, the file must exist in the user’s home directory on the HMC.
Use the ssh-keygen command to generate the public and private SSH key pair. The ssh-keygen command is not allowed to write to the .ssh directory in the user’s home directory on the HMC, so when you run the command on the HMC, you must specify both the directory and the file name for the private key. If you generate a key with a passphrase, you will be prompted to enter the passphrase when you run any HMC command that uses the key. If both this option and the --passwd option are omitted when displaying LIC levels that are available to be retrieved from a remote SFTP site, you will be prompted to enter the password. The -k and --passwd options are mutually exclusive. This option is only valid when displaying LIC levels that are available to be retrieved from a remote SFTP site. |
| -d |
The directory to use on the remote FTP or SFTP site, or the mount point location on the internal HMC hard disk drive. If this option is not specified for FTP or SFTP, the /opt/sfp/data/updates directory will be used.
This option is only valid when displaying LIC levels that are available to be retrieved from a mount point or a remote FTP or SFTP site. |
| --resume | List information about a previously failed code update or upgrade operation that can be resumed. |
| -F |
A delimiter separated list of attribute names for the desired attribute values to be displayed for each LIC level. If no attribute names are specified, then values for all of the attributes for each LIC level will be displayed.
When this option is specified, only attribute values will be displayed. No attribute names will be displayed. The attribute values displayed will be separated by the delimiter which was specified with this option. This option is useful when only attribute values are desired to be displayed, or when the values of only selected attributes are desired to be displayed. |
| --header | Display a header record, which is a delimiter separated list of attribute names for the attribute values that will be displayed. This header record will be the first record displayed. This option is only valid when used with the -F option. |
| --help | Display the help text for this command and exit. |
lslic -t sys -m mysystem
Display the firmware levels for all I/O adapters in a managed system:
lslic -t io -m 9080-HEX*1234567
Display OpenPower managed system BMC and PNOR firmware levels:
lslic -t bmcpnor -m mybmcsystem
Display managed system LIC levels available on the IBM service website (this command is not valid for OpenPower managed systems):
lslic -t sys -m mysystem -r ibmwebsite
Display managed system LIC levels available from a remote FTP server (this command is not valid for OpenPower managed systems):
lslic -t sys -m mysystem -r ftp -h ftphost.domainname
-u myuser --passwd mypasswd
Display OpenPower managed system BMC firmware levels available from a remote FTP server:
lslic -t bmc -m mybmcsystem -r ftp -h ftphost.domainname
-u myuser --passwd mypasswd -d /bmcupdates
Display managed system LIC levels available from a remote SFTP server using SSH keys for authentication (this command is not valid for OpenPower managed systems):
lslic -t sys -m system1 -r sftp -h sftpServer -u user1
-k /home/hmcuser1/keys/id_rsa -d liclevels/840
Display OpenPower managed system BMC and PNOR firmware levels available from a remote SFTP server using SSH keys for authentication:
lslic -t bmcpnor -m bmcsystem1 -r sftp -h sftpServer -u user1
-k /home/hmcuser1/keys/id_rsa -d /bmcupdates
Display the firmware levels for all SR-IOV adapters in a managed system:
lslic -t sriov -m mysystem
Display all LIC level files currently in the HMC hard disk repository:
lslic -c
Display all LIC level upgrade packages currently in the HMC hard disk repository:
lslic -m mysystem -r disk -l upgrade
Display resume information for a previously failed code update or upgrade operation:
lslic -m mysystem --resume
| None | |
| None | |
| Linux | LSLIC (1) | December 2024 |