lsver command

Use the lsver command to list the current version and, if you have updated the product, the previous version of IBM® Flex System Manager that is or was installed on the system.

Synopsis

smcli [-c] [-prompt] [-user user_name] [-pw password] lsver options

smcli lsver [-h | -? | --help]

smcli lsver [-p]

Description

The lsver command lists the current version of IBM Flex System Manager. Specifying the -p option will instead list the previous version of IBM Flex System Manager, if applicable.

Operands

None.

Options

-h | -?
Displays the syntax and a brief description of the command.
Tip: If you specify additional options other than -h | -? | --help, the options are ignored.
--help
Displays detailed information about the command, including the syntax, a description of the command, a description of the options and operands, error codes, and examples.
Tips:
  • If you specify additional options other than -h | -? | --help, the options are ignored.
  • You can also display detailed help in the form of man pages using the man command_name command.
-p | --prevversion
Lists the previous version of IBM Flex System Manager installed on the system.

Exit status

The following codes are returned by this command.
  • 0: The operation completed.
  • 1: A usage error occurred.
  • 2: The command or bundle was not found.
  • 3: The command was not performed because either authentication failed or you are not authorized to perform the action.
  • 73: The product version was not available.

Examples

  1. List the currently-installed version of IBM Flex System Manager

    This example illustrates how to list the version of IBM Flex System Manager that is currently installed on the system.

    smcli lsver
  2. List the previously-installed version of IBM Flex System Manager

    This example illustrates how to list the version of IBM Flex System Manager that was on the system before the current version was installed.

    smcli lsver -p