How to unstage intelliRollup from Scalability Server in command line
search cancel

How to unstage intelliRollup from Scalability Server in command line

book

Article ID: 219435

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation CA Client Automation - Software Delivery

Issue/Introduction

Creation of an Unstage IntelliRollup job Container could take long time in GUI if there are a lot of involved Scalability Servers.
How can we do this in command line ?
 

Environment

Client Automation 14.0 - All Versions

Resolution

1- Uncompress the attached file Unstage_Rollup.zip on the Domain Manager in a temp directory and rename the file Unstage_Rollup.txt as Unstage_Rollup.bat
 
 
Syntax of this command is :
Syntax :
--------
Unstage_Rollup "Patch Name" {ScalaName1:ScalName2:...|ALL|<number>} [SQLUser SQLPassword]
Unstage_Rollup LIST [SQLUser SQLPassword]

Parameters :
------------
"Patch Name"                             : Name of IntelliRollup Patch
{ScalaName1:ScalName2:...|ALL|<number>}  : List of Scalability Server Names or ALL for All scalability Servers.
                                           or a number of scalabilitys servers
LIST                                     : Display the list of IntelliRollup Patch
SQLuser                                  : SQL user for db. If missing trusted connection is used.
SQLpassword                              : password of SQL user

Examples :
----------
Unstage_Rollup "CR - Patch Me - Security IntelliRollup v2103.00.1 1.0" SSName1:SSName2
Unstage_Rollup "CR - Patch Me - Security IntelliRollup v2103.00.1 1.0" SSName1:SSName2:SSName3 ca_itrm NOT_changedR11
Unstage_Rollup "CR - Patch Me - Security IntelliRollup v2103.00.1 1.0" ALL
Unstage_Rollup "CR - Patch Me - Security IntelliRollup v2103.00.1 1.0" ALL ca_itrm NOT_changedR11
Unstage_Rollup "CR - Patch Me - Security IntelliRollup v2103.00.1 1.0" 100
Unstage_Rollup "CR - Patch Me - Security IntelliRollup v2103.00.1 1.0" 100 ca_itrm NOT_changedR11
Unstage_Rollup list
Unstage_Rollup list ca_itrm NOT_changedR11

Remarks :
 
- Patch Name is the Name of a Patch Rollup group which appears under "All Patch Rollups"
 
 
 
 
- This script generates a log DSM\LOGS\Unstage_Rollup.log
 
 
2- Execute following command :
 
Example1 :
To unstage "CR - Patch Me - Security IntelliRollup v2103.00.1 1.0" for all Scalability servers
Unstage_Rollup.bat "CR - Patch Me - Security IntelliRollup v2103.00.1 1.0" ALL
 
or with SQL account :
Unstage_Rollup.bat "CR - Patch Me - Security IntelliRollup v2103.00.1 1.0" ALL ca_itrm NOT_changedR11
 
 
Example2 :
To unstage "CR - Patch Me - Security IntelliRollup v2103.00.1 1.0" for 100 Scalability servers
Unstage_Rollup.bat "CR - Patch Me - Security IntelliRollup v2103.00.1 1.0" 100 ca_itrm NOT_changedR11
 
Example3 :
To unstage "CR - Patch Me - Security IntelliRollup v2103.00.1 1.0" for Scalability servers SS1, SS2 and SS3 :
Unstage_Rollup.bat "CR - Patch Me - Security IntelliRollup v2103.00.1 1.0" SS1:SS2:SS3 ca_itrm NOT_changedR11
 

Output Example :

Unstage_Rollup.bat "CR - Patch Me - Security IntelliRollup v2103.00.1 1.0" ALL

Tue 07/13/2021-12:50:36.62 - FInd 2 Scalability Servers
Tue 07/13/2021-12:50:36.62 - Create cadsmcmd batch file
Tue 07/13/2021-12:50:36.62 - Add UnDelivery Line for JY-W10-SS
Tue 07/13/2021-12:50:36.63 - Add UnDelivery Line for JY-W10-IOT2

Tue 07/13/2021-12:50:36.63 - Execute cadsmcmd batch "C:\Users\ADMINI~1\AppData\Local\Temp\Unstage_Rollup_cadscmd_batch.txt"
Tue 07/13/2021-12:50:42.99 - Execution OK
Tue 07/13/2021-12:50:42.99 - Job Container "Unstage CR - Patch Me - Security IntelliRollup v2103.00.1 1.0 [Tue_07-13-2021_12.50.36.15]" created
Tue 07/13/2021-12:50:42.99 - See Log File "C:\Program Files (x86)\CA\DSM\\LOGS\Unstage_Rollup.log"
 

A Job Container is created by the script with name like :

Unstage <Patch Name> [Date Time]

 

Attachments

1643231301191__Unstage_Rollup.zip get_app