Product Documentation

autoscale policy

Sep 12, 2016

The following operations can be performed on "autoscale policy":

add | rm | set | unset | show | stat | rename

add autoscale policy

Create a autoscale policy.

Synopsys

add autoscale policy <name> -rule <expression> -action <string> [-comment <string>] [-logAction <string>]

Arguments

name

The name of the autoscale policy.

rule

The rule associated with the policy.

action

The autoscale profile associated with the policy.

comment

Comments associated with this autoscale policy.

logAction

The log action associated with the autoscale policy

rm autoscale policy

Remove a autoscale policy.

Synopsys

rm autoscale policy <name>

Arguments

name

The name of the autoscale policy.

Example

rm autoscale policy pol

set autoscale policy

Set a new rule/action/comment for an existing autoscale policy.

Synopsys

set autoscale policy <name> [-rule <expression>] [-action <string>] [-comment <string>] [-logAction <string>]

Arguments

name

The name of the autoscale policy.

rule

The rule associated with the policy.

action

The autoscale profile associated with the policy.

comment

Comments associated with this autoscale policy.

logAction

The log action associated with the autoscale policy

Example

set autoscaler policy pol -rule true

unset autoscale policy

Unset comment/logaction for existing autoscale policy..Refer to the set autoscale policy command for meanings of the arguments.

Synopsys

unset autoscale policy <name> [-rule <expression>] [-action <string>] [-comment <string>] [-logAction <string>]

Example

unset autoscale policy pol9 -undefAction

show autoscale policy

Display the autoscale policies.

Synopsys

show autoscale policy [<name>]

Arguments

name

The name of the autoscale policy.

Outputs

rule

The rule associated with the policy.

action

The autoscale profile associated with the policy.

comment

Comments associated with this autoscale policy.

logAction

The log action associated with the autoscale policy

stateflag

hits

Number of hits.

undefHits

Number of Undef hits.

priority

Specifies the priority of the policy.

boundTo

Location where policy is bound

activePolicy

Indicates whether policy is bound or not.

gotoPriorityExpression

Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE.

devno

count

stat autoscale policy

Display autoscale policy statistics.

Synopsys

stat autoscale policy [<name>] [-detail] [-fullValues] [-ntimes <positive_integer>] [-logFile <input_filename>] [-clearstats ( basic | full )]

Arguments

name

The name of the autoscale policy for which statistics will be displayed. If not given statistics are shown for all autoscale policies.

detail

Specifies detailed output (including more statistics). The output can be quite voluminous. Without this argument, the output will show only a summary.

fullValues

Specifies that numbers and strings should be displayed in their full form. Without this option, long strings are shortened and large numbers are abbreviated

ntimes

The number of times, in intervals of seven seconds, the statistics should be displayed.

Default value: 1

Minimum value: 0

logFile

The name of the log file to be used as input.

clearstats

Clear the statsistics / counters

Possible values: basic, full

Outputs

count

devno

stateflag

Outputs

Policy hits (Hits)

Number of hits on the policy

Policy undef hits (Undefhits)

Number of undef hits on the policy

Example

stat autoscale policy

rename autoscale policy

Rename a autoscale policy.

Synopsys

rename autoscale policy <name>@ <newName>@

Arguments

name

The name of the autoscale policy.

newName

The new name of the autoscale policy.

Example

rename autoscale policy oldname newname