cancel
Showing results for 
Search instead for 
Did you mean: 

What is the meaning of B or C in hastatus?

kazu44
Level 2

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.

        

 

1 ACCEPTED SOLUTION

Accepted Solutions

mikebounds
Level 6
Partner Accredited

 

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

View solution in original post

5 REPLIES 5

mikebounds
Level 6
Partner Accredited

 

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

Satish_K__Pagar
Level 5
Employee

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

kazu44
Level 2

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

Thanks.

g_lee
Level 6

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.

kazu44
Level 2

Thank you for your answers.It is very useful.