Skip to main content

vm commands

Use the vm commands to list, mount, or unmount the virtual media.

vm command syntax

OneCli.exe [misc] vm <command> [options] 
Table 1. vm commands and syntax examples
CommandSyntax exampleDescription
list
OneCLI vm list --bmc <bmc connection info>

List the virtual media status on BMC.

mount
OneCLI vm mount --id <virtual media id> --path 
<httpfs or nfs url> --bmc <bmc connection info>

Mount virutal media on BMC by using ID.

umount
OneCLI vm umount --id <virtual media id> --bmc 
<bmc connection info>

Unmount virutal media on BMC by using ID.

Table 2. vm command specific parameters
ParameterRequired/OptionalNotes

--id, -I

Only required in the mount and umount commands.

Specify the virtual media ID, for example, RDOC1, EXT1, and Remote1.

For ThinkBMC, the virtual media ID is CD.
Note
ThinkBMC is the BMC for the ThinkServer systems listed in OneCLI features supported on the ThinkServer/WenTian servers.

--path, -P

Only required in the mount and umount commands.

Specify the URL of virtual media path, which supports NFS and HTTPFS.

Support NFS and CIFS in ThinkBMC.

NFS URL address form:
  • ipaddress:/path/to/file

  • domain-name:/path/to/file

NFS (ThinkBMC) form:
  • nfs://host[:port]/path/to/file

CIFS(ThinkBMC) form:
  • cifs://[username:password@]host[:port]/path/to/file

HTTPFS URL address form:
  • https://ipaddress[:port]/path/to/file

  • https://domain-name[:port]/path/to/file

The domain-name can be alphanumeric characters ., -, or _ and should be composed of at least two domain items. The port number is optional.

Example of the vm command

OneCli.exe misc vm list -b USERID:PASSWORD@xxx.xxx.xxx.xxx