How Do I Use Commands?

The usage of the commands in Using the Ascend-DMI Tool complies with the general specifications of the Linux open source community, for example, the support for long and short options of commands. Related concepts are described as follows:

  • Short option: for example, -x. The command parameter contains only one letter.
  • Long option: For example, --xx or --xxx. The number of letters in a command parameter is two or more. The -xx format can also be used in this version.

The long and short options can be entered in either of the following ways, where value indicates the parameter value:

  • Short option: -x value
  • Long option: --xx value

Examples:

Perform a fault diagnosis test on specified devices.

  • Input formats for a short option:

    To diagnose a single device: ascend-dmi --dg -d 0

    To diagnose multiple devices: ascend-dmi --dg -d 0,1,2,3

  • Input formats for a long option:

    To diagnose a single device: ascend-dmi --dg --device 0

    To diagnose multiple devices: ascend-dmi --dg --device 0,1,2,3