Passing Parameters at the Command Line

You can pass parameters at the command line by using option name and option value pairs. Some options have no value.

The syntax for passing parameters is the following.

--<optionname> <optionvalue>

The following example connects to the server as user snow-white with password dwarf$. The first example (Linux) uses an escape character before each special character, the other examples use single quotes (Linux) and double quotes (Windows).

Linux

vminfo.pl --server <server> --username snow\-white --password dwarf\$ --vmname <name>
vminfo.pl --server <server> --username 'snow-white' --password 'dwarf$' --vmname <name>

Windows

vminfo.pl --server <server> --username "snow-white" --password "dwarf$" --vmname <name>