Is it possible to de-register several packages at the same time from some scalability servers using only one container?

Document ID : KB000032036
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

Sometimes we may need to de-register from all the scalability servers a big amount of packages, when they become obsolete, for example. It should be really good to have a way to create a job container to de-register them all in a row.

We know it can be done by scalability server, selecting all the packages to be deregistered and delivering the resulting job, but this operation has to be repeated for each scalability server. 

Or it can be done by package, selecting all the scalability servers it should be removed from and delivering the resulting job, but this has to be repeated for each package to be removed. 

Is it possible to de-register several packages at the same time from some scalability servers using only one container?

 

Environment:

Client Automation (any version).

 

Answer:

There is a scalability server command that can be used to de-register the package: 

- sd_sscmd dereg item="Package-Name" version=1.01 [logfile=C:\test\test.log]

NOTE: The package name and version should match the package name and version you want to de-register.

 

This command has to be repeated as many times as packages have to be de-registered.

Apart from this, we can add, at the end of the lines de-registering the packages, the following command in order to synchronize the resulting library: 

- sd_sscmd deldctbu 

This way, we can send a script containing the instructions to de-register all the packages we need to de-register and to synchronize the resulting library to each of the scalability servers with just one SD job. 

 

The resulting script would look like this:

 

sd_sscmd dereg item="Package-Name_1" version=1.01 logfile=C:\test\test.log

sd_sscmd dereg item="Package-Name_2" version=1.02 logfile=C:\test\test.log

sd_sscmd dereg item="Package-Name_3" version=3.0 logfile=C:\test\test.log

...

sd_sscmd dereg item="Package-Name_N" version=12.9 logfile=C:\test\test.log

sd_sscmd deldctbu