Guest User

Untitled

a guest
Dec 5th, 2014
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.01 KB | None | 0 0
  1. $ vmware-cmd --help
  2.    Usage: vmware-cmd <options> <vm-cfg-path> <vm-action> <arguments>
  3.           vmware-cmd -s <options> <server-action> <arguments>
  4.  
  5.      Options:
  6.        Connection Options:
  7.           -H or --server <host>            specifies an ESX host or a Virtual Center
  8.           -T <target host>                 specifies a target host if host is a virtual center
  9.           -O <port>                        specifies an alternative port
  10.           -Q <protocol>                    specifies an alternative protocol
  11.           -U or --username <username>      specifies a username
  12.           -P or --password <password>      specifies a password
  13.           --sessionfile                    specifies a sessionfile path
  14.           --passthroughauth                specifies a login by sspi option
  15.           --credstore                      specifies to fetch Credential store information
  16.           --encoding                       specifies encoding option
  17.        General Options:
  18.           -h More detailed help.
  19.           -q Quiet. Minimal output
  20.           -v Verbose.
  21.  
  22.      Server Operations:
  23.        vmware-cmd -l
  24.           -- lists the registered VMs
  25.        vmware-cmd -s register <config_file_path> <datacenter> <resource pool>
  26.           -- registers a VM
  27.        vmware-cmd -s unregister <config_file_path>
  28.           -- unregisters a VM
  29.  
  30.  
  31.      VM Operations:
  32.        vmware-cmd <cfg> getstate
  33.           -- gets the execution state of the VM
  34.        vmware-cmd <cfg> start
  35.           -- powers on or resumes a VM.
  36.        vmware-cmd <cfg> stop <powerop_mode>
  37.           -- stops a VM. <powerop_mode> can be soft, hard.
  38.        vmware-cmd <cfg> reset <powerop_mode>
  39.           -- resets a VM. <powerop_mode> can be soft, hard.
  40.        vmware-cmd <cfg> suspend <powerop_mode>
  41.           -- suspends a VM. <powerop_mode> can be soft, hard.
  42.        vmware-cmd <cfg> setguestinfo <variable> <value>
  43.           -- sets a guest info variable
  44.        vmware-cmd <cfg> getguestinfo <variable>
  45.           -- retrieves the value for a guest info variable
  46.        vmware-cmd <cfg> getproductinfo <prodinfo>
  47.           -- gets various product information.
  48.              <prodinfo> can be product, platform, build, majorversion or minorversion
  49.        vmware-cmd <cfg> connectdevice <device_name>
  50.           -- connects a virtual device to a VM
  51.        vmware-cmd <cfg> disconnectdevice <device_name>
  52.           -- disconnects a virtual device from a VM
  53.        vmware-cmd <cfg> getconfigfile
  54.           -- retrieves the path to the configuration file
  55.        vmware-cmd <cfg> getuptime
  56.           -- retrieves the uptime of the guest OS
  57.        vmware-cmd <cfg> answer
  58.           -- answers a question for a VM requesting input
  59.        vmware-cmd <cfg> gettoolslastactive
  60.           -- retrieves the VMware tools status.
  61.        vmware-cmd <cfg> hassnapshot
  62.           -- determine if VM has a snapshot
  63.        vmware-cmd <cfg> createsnapshot <name> <description> <quiesce> <memory>
  64.           -- creates a snapshot of a VM
  65.        vmware-cmd <cfg> revertsnapshot
  66.           -- revert to the last snapshot of a VM
  67.        vmware-cmd <cfg> removesnapshots
  68.           -- remove all snapshots of a VM  
  69.  
  70. ###
  71.  
  72. $ vmware-cmd --version
  73. Enter username: mylocalusername
  74. Enter password: *****
  75.    Usage: vmware-cmd <options> <vm-cfg-path> <vm-action> <arguments>
  76.           vmware-cmd -s <options> <server-action> <arguments>
  77.  
  78.      Options:
  79.        Connection Options:
  80.           -H or --server <host>            specifies an ESX host or a Virtual Center
  81.           -T <target host>                 specifies a target host if host is a virtual center
  82.           -O <port>                        specifies an alternative port
  83.           -Q <protocol>                    specifies an alternative protocol
  84.           -U or --username <username>      specifies a username
  85.           -P or --password <password>      specifies a password
  86.           --sessionfile                    specifies a sessionfile path
  87.           --passthroughauth                specifies a login by sspi option
  88.           --credstore                      specifies to fetch Credential store information
  89.           --encoding                       specifies encoding option
  90.        General Options:
  91.           -h More detailed help.
  92.           -q Quiet. Minimal output
  93.           -v Verbose.
  94.  
  95.      Server Operations:
  96.        vmware-cmd -l
  97.        vmware-cmd -s register <config_file_path> <datacenter> <resource pool>
  98.        vmware-cmd -s unregister <config_file_path>
  99.  
  100.      VM Operations:
  101.        vmware-cmd <cfg> getstate
  102.        vmware-cmd <cfg> start <powerop_mode>
  103.        vmware-cmd <cfg> stop <powerop_mode>
  104.        vmware-cmd <cfg> reset <powerop_mode>
  105.        vmware-cmd <cfg> suspend <powerop_mode>
  106.        vmware-cmd <cfg> setguestinfo <variable> <value>
  107.        vmware-cmd <cfg> getguestinfo <variable>
  108.        vmware-cmd <cfg> getproductinfo <prodinfo>
  109.        vmware-cmd <cfg> connectdevice <device_name>
  110.        vmware-cmd <cfg> disconnectdevice <device_name>
  111.        vmware-cmd <cfg> getconfigfile
  112.        vmware-cmd <cfg> getuptime
  113.        vmware-cmd <cfg> answer
  114.        vmware-cmd <cfg> gettoolslastactive
  115.        vmware-cmd <cfg> hassnapshot
  116.        vmware-cmd <cfg> createsnapshot <name> <description> <quiesce> <memory>
  117.        vmware-cmd <cfg> revertsnapshot
  118.        vmware-cmd <cfg> removesnapshots
  119.  
  120. Synopsis:  OPTIONS
  121.  
  122.  
  123. Common VI options:
  124.    --config (variable VI_CONFIG)
  125.       Location of the VI Perl configuration file
  126.    --credstore (variable VI_CREDSTORE)
  127.       Name of the credential store file defaults to <HOME>/.vmware/credstore/vicredentials.xml on Linux and <APPDATA>/VMware/credstore/vicredentials.xml on Windows
  128.    --encoding (variable VI_ENCODING, default 'utf8')
  129.       Encoding: utf8, cp936 (Simplified Chinese), iso-8859-1 (German), shiftjis (Japanese)
  130.    --help
  131.       Display usage information for the script
  132.    --passthroughauth (variable VI_PASSTHROUGHAUTH)
  133.       Attempt to use pass-through authentication
  134.    --passthroughauthpackage (variable VI_PASSTHROUGHAUTHPACKAGE, default 'Negotiate')
  135.       Pass-through authentication negotiation package
  136.    --password (variable VI_PASSWORD)
  137.       Password
  138.    --portnumber (variable VI_PORTNUMBER)
  139.       Port used to connect to server
  140.    --protocol (variable VI_PROTOCOL, default 'https')
  141.       Protocol used to connect to server
  142.    --savesessionfile (variable VI_SAVESESSIONFILE)
  143.       File to save session ID/cookie to utilize
  144.    --server (variable VI_SERVER, default 'localhost')
  145.       VI server to connect to. Required if url is not present
  146.    --servicepath (variable VI_SERVICEPATH, default '/sdk/webService')
  147.       Service path used to connect to server
  148.    --sessionfile (variable VI_SESSIONFILE)
  149.       File containing session ID/cookie to utilize
  150.    --url (variable VI_URL)
  151.       VI SDK URL to connect to. Required if server is not present
  152.    --username (variable VI_USERNAME)
  153.       Username
  154.    --verbose (variable VI_VERBOSE)
  155.       Display additional debugging information
  156.    --version
  157.       Display version information for the script
Advertisement
Add Comment
Please, Sign In to add comment