Video Screencast Help

What is the meaning of B or C in hastatus?

Created: 06 Apr 2013 • Updated: 29 Apr 2013 | 5 comments
This issue has been solved. See solution.

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.

        

 

Comments 5 CommentsJump to latest comment

mikebounds's picture

 

The letters just refer to the different sections in the "hastatus -sum" output, so these are useful for greping for particular sections of the output, so for instance
hastatus -sum | grep "^D" 
 
will just show you just the resources that are failed.
 
I can't remember which letter shows you "Resouces Onlining", but I have greped for this letter before as this is very useful when the cluster is starting up if you haven't got access to GUI, especially for clusters with large configs
 
Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has helped you, please vote or mark as solution

SOLUTION
Satish K. Pagare's picture

Thats correct Mike, and the letter that shows you "RESOURCES ONLINING" is "F". All this information is part of the hastatusprint script.

kazu44's picture

Thank you for your answers.Sorry I have a question again.Is there a document of correspondence table like "RESOURCES" = "F"?

Thanks.

g_lee's picture

As Satish mentioned in his post above ( https://www-secure.symantec.com/connect/forums/wha... ), 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....

--------------------
-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.

If this post has helped you, please vote or mark as solution

kazu44's picture

Thank you for your answers.It is very useful.