crsctl add category

Use the crsctl add category command to add a server category.

Syntax

crsctl add category category_name [-attr "attr_name=attr_value
   [,attr_name=attr_value[,...]]"] [-i]

Parameters

Table E-24 crsctl add category Command Parameters

Parameter Description
category_name

Specify a name for the server category you want to add.

attr_name

Specify the name of a category attribute you want to add preceded by the -attr flag.

attr_value

A value for the category attribute.

Note: The attr_name and attr_value parameters must be enclosed in double quotation marks ("") and separated by commas. For example:

-attr "EXPRESSION='(CPU_COUNT > 2) AND (MEMORY_SIZE > 2048)'"

See Also:

  • Table 3-4 for a list of attributes you can use with this command

  • "Filters" for information about operators

-i

If you specify -i, then the command fails if Oracle Clusterware cannot process the request immediately.

Usage Notes

  • If an attribute value for an attribute name-value pair contains commas, then the value must be enclosed in single quotation marks (''). For example:

    "START_DEPENDENCIES='hard(res1,res2,res3)'"

Example

To add a server category:

$ crsctl add category cat1 -attr "EXPRESSION='(CPU_COUNT > 2) AND (MEMORY_SIZE > 2048)'"