Veritas Cluster Server Commands - Vcs Cheat Sheet Page 3

ADVERTISEMENT

VERITAS Enterprise Consulting Services APAC – VCS Cheat Sheet
Resource Operations
Task
Command
Example
List resources
hares -list
Display resource state
hares –state res_name [-sys system_name]
hares –state myres [-sys myserver]
Clear resource faults
hares –clear res_name [-sys system_name]
hares –clear myres [-sys myserver]
hares –display res_name
hares –display myres
Display a resource
hares –display –group group_name
hares –display –group mygroup
hares –display –sys system_name
hares –display –sys system_name
Display resource dependencies
hares –dep res_name
hares –dep myres
Online a resource
hares –online res_name –sys system_name
hares –online myres –sys myserver
Offline a resource
hares –offline res_name –sys system_name
hares –offline myres –sys myserver
Offline propagate a resource
hares –offprop res_name –sys system_name
hares –offprop myres –sys myserver
Probe a resource
hares –probe res_name –sys system_name
hares –probe myres –sys myserver
Add a resource
hares –add res_name res_type group_name
hares –add myres mytype mygroup
Delete a resource
hares –delete res_name
hares –delete myres
Modify a resource
hares –modify res_name attribute value
hares –modify myres device qfe3
Create a resource dependency
hares –link parent_res child_res
hares –link myres mynewres
Delete a resource dependency
hares –unlink parent_res child_res
hares –unlink myres mynewres
Resource Type Operations
Task
Command
Example
List resource types
hatype -list
List resources of a particular
hatype –resources res_type
hatype –resources mytype
type
Display a resource type
hatype –display [res_type]
hatype –display [mytype]
Add a resource type
hatype –add res_type
hatype –add mynewtype
Delete a resource type
hatype –delete res_type
hatype –delete mynewtype
Modify a resource type
hatype –modify res_type attribute value
hatype –modify mytype OnlineRetryLimit 2
Agent Operations
Task
Command
Example
List agents
haagent -list
Display agents
haagent –display [agent_type]
haagent –display [myagent]
Start an agent
haagent –start agent_type –sys system_name
haagent –start myagent –sys myserver
Stop an agent
haagent –stop agent_type –sys system_name
haagent –stop myagent –sys myserver
LLT & GAB Operations
Task
Command
Example
Display llt links
lltconfig –a list
Display llt stats
lltstat
Display llt links
lltstat -nvv
Display llt system name
lltstat -H
Display gab config
gabconfig –l
Display gab ports
gabconfig -a
Page 3 of 3
13 June 2003

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 3