The dmsweep packages subcommand displays the list of packages available for deployment on the specified deployment manager.
"packages" can be shortened to "pack", that is, you can use the command "dmsweep pack".
The subcommand has the following format:
packages
[/manager <manager_machine>] [/musername <manager_username> /mpassword <manager_password>] [/mfilename <manager_filename>]
Specifies the name of the manager from which to retrieve the package list. If you omit /manager, the current machine is assumed.
Specifies the username for the manager computer.
The user will be prompted for the username if /musername is entered without <manager_username>.
Specifies the password for the manager computer.
If <manager_password> is not supplied, dmsweep will prompt the value.
Note: Neither /musername nor /mpassword can be specified without /manager.
Lets you read the name of the manager and details of its username and password from a file.
If the manager requires authentication and /mfilename has been specified, the <manager_filename> is searched. If an entry exists for the manager, the credentials in the file are used, otherwise <manager_username> and <manager_password> are used. The file <manager_filename> lists one manager per line with each line containing the manager's machine name, username and password; for example:
manager1 username1 password1 manager2 username2 password2 * username3 password3
An entry with '*' as the manager name denotes default credentials, which are used for any manager name not explicitly listed in the file.
If the /mpassword option is specified but <manager_password> is omitted, the password is prompted for when the command runs.
Example:
The following example shows how you can use the dmsweep command line utility. Replace values such as the package number, target computers and manager machines with suitable values.
To list the packages available for deployment on the local machine, enter one of the following:
dmsweep packages dmsweep pack
Output from the command appears. The following extract is part of the example output, and it shows the package numbers that you can use with the /packagenumber (or /pn) options in subsequent commands.
Contacting the deployment manager on ASTEROID.
New job id is 13191950.
Retrieving the package list.
Found 5 packages on deployment manager ASTEROID:
..Package 1:
....Product.....: CA DMS
....Package.....: Agent + Asset Management Plugin
....Version.....: 11.1.8124.2426
....Platform....: Windows_x86
Language : ENU
....Description.: Deploy agent with Asset Management plugin.
....Command.....: AgtAM.msi" AGENT_SERVER=$1$ ALLUSERS=1 ENSURE_CAF_STOPPED=1 CAF_COMMON_CONFIG=1 CAF_INSTALL_SERVICE=1 CAF_START_SERVICE=1 /qn /l*v %TEMP%\ITRMSetupAgtAM.log EXITFILE=$E$ $2$
....UNIX Command : installdsm" -r $P$/install.rsp /REXITFILE=$E$ /RITRM_SERVER=$1$ $3$
....Parameter 1 : Please enter the Scalability Server address to connect to
....Regular Expression Validation : ^[^<>`~!/@\#}$%:;)(_^{*=|'+]{1,255}$
....Parameter 2 : Please enter any additional Windows install options
....Regular Expression Validation : .*
..Package 2:
........
........:
In the example output, there are two parameters listed for package 1. If you select this package for deployment you must supply two parameters using the /pparams option. Use commas to separate the parameter values.
For example, to select package 1 for deployment, you could use the command
dmsweep deploy /pn 1 /ip 192.0.2.5.9 /pparams <myserver>,”CA=D:\DSM”
where parameter 1 (the Scalability Server address) is set to <myserver>, parameter 2 (the Windows install options) has the value “CA=D:\DSM”, which requests the package should be installed in a non-default location.
The parameters appear in the DSM Explorer in three separate fields on the Agent Configuration page when you use the DSM Explorer to deploy a package.
The Regular Expression Validation string specifies the range of characters that are valid for the associated parameter. A validation string of ‘.*’ means there are no syntactic restrictions on the parameter value.
|
Copyright © 2013 CA.
All rights reserved.
|
|