Previous Topic: dpmsd pkgjobcheck Command--Get Package Deployment Job Status

Next Topic: Storage Provisioning Manager Command


dpmsd setmanagedstatus Command--Set Management Status of Package

The dpmsd setmanagedstatus command sets the status of a specific package to managed or unmanaged.

This command has the following format:

dpmsd setmanagedstatus [-sc sc_url] -package_name {packagename|all} -managedstatus {1|0} [-itcm_server itcm domain manager] [-pre][-post][-ws_user username -ws_password password][-locale iso629value]

-sc sc_url

(Optional) Defines the URL for the service controller host.

Example: https://hostname:port/...

hostname

Defines the fully qualified host where the service controller is installed.

Example: localhost.ca.com

port

Defines the listening port for the service controller server.

Example: 80

-package_name {packagename|all}

Defines the name of the package to deliver.

packagename

Applies the managed status change to the specified package.

all

Apply the managed status change to all packages.

-managed_status {0|1}

Defines the managed status of the package.

0

Sets the package to an unmanaged state. The package appears in the Available List in the Software Delivery area of the CA Server Automation user interface, but is not available for deployment.

1

Sets the package to a managed state. The package appears in the Available List in the Software Delivery area of the CA Server Automation user interface, and is available for deployment.

-itcm_server itcmdomainmanager

(Optional) Defines the name of the CA ITCM Domain Manager where the software delivery adapter resides. Optional when only one Software Delivery adapter or CA ITCM domain manager is configured. Valid for CA Server Automation only.

-pre

(Optional) Specifies whether to generate an event before the operation is performed.

-post

(Optional) Specifies whether to generate an event after the operation is performed.

-ws_user username -ws_password password

(Optional) Specifies the credentials to use for the web service security check. If you do not include credentials, you are prompted to enter them. Avoid the prompt for credentials by setting up your own session using caaipsecurity.

-locale iso639value

(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".

Example: Set Status of Package

This example sets a package to managed.

dpmsd setmanagedstatus -package_name "Apache Tomcat" -managedstatus 1

Example: Set Status of Package in a Multiple ITCM Domain Manager Environment

This example sets a package to managed. This operation is routed to the sd adapter on ITCM domain manager domainmanager001.

dpmsd setmanagedstatus -package_name "Apache Tomcat" -managedstatus 1 - itcm_server domainmanager001