Skip to main content

updatepolicy assign

This command assigns a compliance policy to one or more devices and to return the job ID and task IDs for monitoring the status of the job and tasks.

This command starts a job to perform the update-policy action. If successful, the job ID is returned. You can use the job ID in the tasks –j or updatepolicy job_status –j command to determine the status of the job.

Syntax

updatepolicy assign  -h

updatepolicy assign -p <policies> -u <device_UUID> [-t <device_type>] [-v <filter>]

Options

{-h | --help}
Displays the syntax and brief usage information for this command.
{-p | --policy} <policies>
Specifies the name of the compliance policy to be assigned.
{-t | --type} <device_type>
Specifies the UUID of the device to which you want to assign the compliance policy.
  • CMM. Chassis Management Module

  • IOSwitch. Flex switch

  • RACKSWITCH. RackSwitch switch

  • STORAGE. Storage device

  • SERVER. Compute node or rack server

{-u | --uuid} <device_UUID>
Specifies the UUID of the device to which you want to assign the compliance policy.
{-v | --view} <filter>
Identifies the view to use for the returned data. If a filter is not specified, the default view is used.

You can also create custom views (see Creating custom views).

Examples

The following example assigns a compliance policy to a server.

connect --url https://192.0.2.0 --user ADMIN --noverify
updatepolicy assign –p policy_1 –t SERVER –u AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA