Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ vmware-cmd --help
- Usage: vmware-cmd <options> <vm-cfg-path> <vm-action> <arguments>
- vmware-cmd -s <options> <server-action> <arguments>
- Options:
- Connection Options:
- -H or --server <host> specifies an ESX host or a Virtual Center
- -T <target host> specifies a target host if host is a virtual center
- -O <port> specifies an alternative port
- -Q <protocol> specifies an alternative protocol
- -U or --username <username> specifies a username
- -P or --password <password> specifies a password
- --sessionfile specifies a sessionfile path
- --passthroughauth specifies a login by sspi option
- --credstore specifies to fetch Credential store information
- --encoding specifies encoding option
- General Options:
- -h More detailed help.
- -q Quiet. Minimal output
- -v Verbose.
- Server Operations:
- vmware-cmd -l
- -- lists the registered VMs
- vmware-cmd -s register <config_file_path> <datacenter> <resource pool>
- -- registers a VM
- vmware-cmd -s unregister <config_file_path>
- -- unregisters a VM
- VM Operations:
- vmware-cmd <cfg> getstate
- -- gets the execution state of the VM
- vmware-cmd <cfg> start
- -- powers on or resumes a VM.
- vmware-cmd <cfg> stop <powerop_mode>
- -- stops a VM. <powerop_mode> can be soft, hard.
- vmware-cmd <cfg> reset <powerop_mode>
- -- resets a VM. <powerop_mode> can be soft, hard.
- vmware-cmd <cfg> suspend <powerop_mode>
- -- suspends a VM. <powerop_mode> can be soft, hard.
- vmware-cmd <cfg> setguestinfo <variable> <value>
- -- sets a guest info variable
- vmware-cmd <cfg> getguestinfo <variable>
- -- retrieves the value for a guest info variable
- vmware-cmd <cfg> getproductinfo <prodinfo>
- -- gets various product information.
- <prodinfo> can be product, platform, build, majorversion or minorversion
- vmware-cmd <cfg> connectdevice <device_name>
- -- connects a virtual device to a VM
- vmware-cmd <cfg> disconnectdevice <device_name>
- -- disconnects a virtual device from a VM
- vmware-cmd <cfg> getconfigfile
- -- retrieves the path to the configuration file
- vmware-cmd <cfg> getuptime
- -- retrieves the uptime of the guest OS
- vmware-cmd <cfg> answer
- -- answers a question for a VM requesting input
- vmware-cmd <cfg> gettoolslastactive
- -- retrieves the VMware tools status.
- vmware-cmd <cfg> hassnapshot
- -- determine if VM has a snapshot
- vmware-cmd <cfg> createsnapshot <name> <description> <quiesce> <memory>
- -- creates a snapshot of a VM
- vmware-cmd <cfg> revertsnapshot
- -- revert to the last snapshot of a VM
- vmware-cmd <cfg> removesnapshots
- -- remove all snapshots of a VM
- ###
- $ vmware-cmd --version
- Enter username: mylocalusername
- Enter password: *****
- Usage: vmware-cmd <options> <vm-cfg-path> <vm-action> <arguments>
- vmware-cmd -s <options> <server-action> <arguments>
- Options:
- Connection Options:
- -H or --server <host> specifies an ESX host or a Virtual Center
- -T <target host> specifies a target host if host is a virtual center
- -O <port> specifies an alternative port
- -Q <protocol> specifies an alternative protocol
- -U or --username <username> specifies a username
- -P or --password <password> specifies a password
- --sessionfile specifies a sessionfile path
- --passthroughauth specifies a login by sspi option
- --credstore specifies to fetch Credential store information
- --encoding specifies encoding option
- General Options:
- -h More detailed help.
- -q Quiet. Minimal output
- -v Verbose.
- Server Operations:
- vmware-cmd -l
- vmware-cmd -s register <config_file_path> <datacenter> <resource pool>
- vmware-cmd -s unregister <config_file_path>
- VM Operations:
- vmware-cmd <cfg> getstate
- vmware-cmd <cfg> start <powerop_mode>
- vmware-cmd <cfg> stop <powerop_mode>
- vmware-cmd <cfg> reset <powerop_mode>
- vmware-cmd <cfg> suspend <powerop_mode>
- vmware-cmd <cfg> setguestinfo <variable> <value>
- vmware-cmd <cfg> getguestinfo <variable>
- vmware-cmd <cfg> getproductinfo <prodinfo>
- vmware-cmd <cfg> connectdevice <device_name>
- vmware-cmd <cfg> disconnectdevice <device_name>
- vmware-cmd <cfg> getconfigfile
- vmware-cmd <cfg> getuptime
- vmware-cmd <cfg> answer
- vmware-cmd <cfg> gettoolslastactive
- vmware-cmd <cfg> hassnapshot
- vmware-cmd <cfg> createsnapshot <name> <description> <quiesce> <memory>
- vmware-cmd <cfg> revertsnapshot
- vmware-cmd <cfg> removesnapshots
- Synopsis: OPTIONS
- Common VI options:
- --config (variable VI_CONFIG)
- Location of the VI Perl configuration file
- --credstore (variable VI_CREDSTORE)
- Name of the credential store file defaults to <HOME>/.vmware/credstore/vicredentials.xml on Linux and <APPDATA>/VMware/credstore/vicredentials.xml on Windows
- --encoding (variable VI_ENCODING, default 'utf8')
- Encoding: utf8, cp936 (Simplified Chinese), iso-8859-1 (German), shiftjis (Japanese)
- --help
- Display usage information for the script
- --passthroughauth (variable VI_PASSTHROUGHAUTH)
- Attempt to use pass-through authentication
- --passthroughauthpackage (variable VI_PASSTHROUGHAUTHPACKAGE, default 'Negotiate')
- Pass-through authentication negotiation package
- --password (variable VI_PASSWORD)
- Password
- --portnumber (variable VI_PORTNUMBER)
- Port used to connect to server
- --protocol (variable VI_PROTOCOL, default 'https')
- Protocol used to connect to server
- --savesessionfile (variable VI_SAVESESSIONFILE)
- File to save session ID/cookie to utilize
- --server (variable VI_SERVER, default 'localhost')
- VI server to connect to. Required if url is not present
- --servicepath (variable VI_SERVICEPATH, default '/sdk/webService')
- Service path used to connect to server
- --sessionfile (variable VI_SESSIONFILE)
- File containing session ID/cookie to utilize
- --url (variable VI_URL)
- VI SDK URL to connect to. Required if server is not present
- --username (variable VI_USERNAME)
- Username
- --verbose (variable VI_VERBOSE)
- Display additional debugging information
- --version
- Display version information for the script
Advertisement
Add Comment
Please, Sign In to add comment