Setting attributes dynamically from the command line

To update the AgentClass

Type:

hatype -modify resource_type AgentClass value -platform 
platform_name
 

For example, to set the AgentClass attribute of the FileOnOff resource to Realtime, type:

hatype -modify FileOnOff AgentClass "RT" -platform solaris

To update the AgentPriority

Type:

hatype -modify resource_type AgentPriority value -platform 
platform_name
 

For example, to set the AgentPriority attribute of the FileOnOff resource to 10, type:

hatype -modify FileOnOff AgentPriority "10" -platform solaris

To update the ScriptClass

Type:

hatype -modify resource_type  ScriptClass value -platform 
platform_name
 

For example, to set the ScriptClass of the FileOnOff resource to RealTime, type:

hatype -modify FileOnOff ScriptClass "RT" -platform aix

To update the ScriptPriority

Type:

hatype -modify resource_type ScriptPriority value -platform 
platform_name
 

For example, to set the ScriptClass of the FileOnOff resource to RealTime, type:

hatype -modify FileOnOff ScriptPriority "40" -platform aix

Note: For the attributes AgentClass and AgentPriority, changes are effective immediately. For ScriptClass and ScriptPriority, changes become effective for scripts issued after the execution of the hatype command.