β04-06-2013 04:31 PM
If I run "hastatus -sum",I can see B or A or C in left side.What does they mean?
----------------------------------------------------------------------------
hastatus -sum
-- SYSTEM STATE
-- System State Frozen
A node1 RUNNING 0
A node2 UNKNOWN 0
-- GROUP STATE
-- Group System Probed AutoDisabled State
B Oss node1 Y N OFFLINE
B Oss node2 Y N OFFLINE
B Ossfs node1 Y N ONLINE
B Ossfs node2 Y N OFFLINE
B PrivLan node1 Y N OFFLINE|FAULTED
B PrivLan node2 Y N OFFLINE
B PubLan node1 Y N ONLINE
B PubLan node2 Y N OFFLINE
B Sybase1 node1 Y N OFFLINE|FAULTED
B Sybase1 node2 Y N OFFLINE
B VcsWeb node1 Y N ONLINE
B VcsWeb node2 Y N OFFLINE
-- RESOURCES FAILED
-- Group Type Resource System
C PrivLan Monitor private_lan node1
C Sybase1 Sybase masterdataservice node1
-- RESOURCES NOT PROBED
-- Group Type Resource System
D Oss Application SnmpHpunix node2
D Oss Application SnmpMaster node2
----------------------------------------------------------------------------
Thanks.
Solved! Go to Solution.
β04-07-2013 01:51 AM
hastatus -sum | grep "^D"
β04-07-2013 01:51 AM
hastatus -sum | grep "^D"
β04-07-2013 09:43 PM
Thats correct Mike, and the letter that shows you "RESOURCES ONLINING" is "F". All this information is part of the hastatusprint script.
β04-08-2013 02:41 AM
Thank you for your answers.Sorry I have a question again.Is there a document of correspondence table like "RESOURCES" = "F"?
Thanks.
β04-08-2013 03:41 AM
As Satish mentioned in his post above ( https://www-secure.symantec.com/connect/forums/what-meaning-b-or-c-hastatus#comment-8586081 ), you can see the letter mapping by looking in the hastatusprint script ( /opt/VRTSvcs/bin/hastatusprint )
Also, it looks like this has made it into the hastatus man page from 6.0.1, eg: VCS 6.0.1 (Solaris) hastatus man page:
https://sort.symantec.com/public/documents/sfha/6.0.1/solaris/manualpages/html/man/cluster_server/html/man1m/hastatus.1m.html
--------------------
-summary Provides the summary of current status of VCS components such as service groups, resources, heartbeat links and agents.
The output is comprehensive information about the current state of systems, state of service groups, state of resources, and so on, belonging to remote and local clusters. Each category of information begins with a capital letter. You can use a capital letter to search for patterns in the output summary. See which category each letter belongs to in the output.
A - SYSTEM STATE
B - GROUP STATE
C - GROUP FROZEN
D - RESOURCES FAILED
E - RESOURCE NOT PROBED
F - RESOURCE ONLINING
G - RESOURCE OFFLINING
H - RESOURCE DISABLED
I - RESOURCES IN ADMIN WAIT
J - AGENT FAILED
M - HEARTBEAT STATE
N - REMOTE CLUSTER STATE
O - REMOTE SYSTEM STATE
P - REMOTE GROUP STATE
Q - REMOTE GROUP FROZEN
R - REMOTE RESOURCES FAULTED
S - REMOTE RESOURCES NOT PROBED
T - REMOTE RESOURCE ONLINING
U - REMOTE RESOURCE OFFLINING
V - REMOTE RESOURCE DISABLED
--------------------
If you are using a different platform, see https://sort.symantec.com/documents - note the letter mapping is only included in man pages for SF6.0.1+, so if you are using an earlier version, refer to the hastatusprint script on your system.
β04-08-2013 04:13 AM
Thank you for your answers.It is very useful.