Previous Topic: link—Link Software Policy to Computer GroupNext Topic: seal—Seal a Software Policy


unlink—Unlink Software Policy from Computer Group

This action unlinks a software policy from the computer group it is assigned to. If there is no computer group assigned the command will not report any error or warning and complete successfully. The software policy has to be unsealed otherwise the action will abort with error.

The syntax of the action is as follows:

swPolicy	action=unlink
name=software_policy_name
[swpScope={distributed | local}]
[group=computer_group_name
[groupScope={global | local}]]
name

The name of the software policy that is unlinked from the computer group assigned to it.

swpScope

This option determines the type of software policy involved in the action.

«not coded»

If there is a locally created software policy of the required name then this one is taken, if not it is looked for a policy distributed from an enterprise manager. The latter is on domain managers only.

distributed

The specified software policy has to be a policy created at the enterprise manager and distributed to the addressed manager.

local

The specified software policy has to be a locally created policy.

On enterprise manager all software policies have to be of type "local".

group

If this option is coded it is checked whether the computer group to be unlinked from the software policy has the same name as specified with this option. If it matches the action continues otherwise it fails with error. If the option is not coded no such check takes place and the unlink action is processed.

groupScope

If this option is coded then it is checked whether the group associated with the software policy specified is of the group type as specified with this option. If it matches the action is continued otherwise it fails with error. If the option is not coded no such check is performed. The following group types are valid:

global

The computer group has been created at the enterprise manager and maybe replicated to the domain.

local

The computer group has been created at the domain manager.

If the option is not coded the CADSMCMD first tries to locate the group as a local group and if this fails it looks for a global one.

On enterprise managers all computer groups are global.