Wouldn't the header printed before each of the summary block help?

e.g.
# hastatus -sum | egrep --  "--|[A-Z]"
-- SYSTEM STATE
-- System               State                Frozen
A  vcslx202             RUNNING              0
A  vcslx203             RUNNING              0
-- GROUP STATE
-- Group           System               Probed     AutoDisabled    State
B  Infosphere_test vcslx202             Y          N               OFFLINE
B  Infosphere_test vcslx203             Y          N               OFFLINE
B  SybaseIQ_SVG    vcslx202             Y          N               OFFLINE
B  SybaseIQ_SVG    vcslx203             Y          N               OFFLINE
B  edb-postgres-plus vcslx203             Y          N               OFFLINE
B  edb-postgres-std vcslx203             Y          N               OFFLINE
B  mysql           vcslx202             Y          N               PARTIAL
B  mysql           vcslx203             N          N               OFFLINE
B  oraebiz_sg      vcslx203             Y          N               OFFLINE
B  oraem12c_sg     vcslx203             Y          N               PARTIAL
B  oraem_sg        vcslx203             Y          N               PARTIAL
B  postgres        vcslx203             Y          N               OFFLINE
-- GROUPS FROZEN
-- Group
C  SybaseIQ_SVG
-- RESOURCES NOT PROBED
-- Group           Type                 Resource             System
E  edb-postgres-plus DiskGroup            edb-pgplus_dg        vcslx203
E  edb-postgres-plus Mount                edb-pgplus_mnt       vcslx203
E  mysql           MySQLMulti           mysqlmulti_res       vcslx203
-- RESOURCES DISABLED
-- Group           Type            Resource
H  SybaseIQ_SVG    SybaseIQ        SybaseIQ_Res
-- AGENTS FAILED
-- Type            System
J  MySQLMulti      vcslx203

A quick grep also showed me the information which may come handy:
# egrep "eq|output" hastatusprint |grep -v "[0-9]s"|grep -v "print $output"

But I am not sure whether this is documented anywhere.

Thanks and Regards,
Satish/

From: veritas-ha-boun...@mailman.eng.auburn.edu 
[mailto:veritas-ha-boun...@mailman.eng.auburn.edu] On Behalf Of Seraphine, 
Charles
Sent: Monday, October 08, 2012 10:27 PM
To: veritas-ha@mailman.eng.auburn.edu
Subject: [Veritas-ha] "hastatus -sum" output flags

Each data-bearing line of the output of 'hastatus -sum' has a convenient 
capital letter in the first field, which is great for grepping.  However, I 
can't seem to find a comprehensive enumeration of these fields.  There are a 
few references that google turned up, but they are all of the "I'm pretty sure 
that they are this-and-such" sort and have some conflicts (e.g. I have found 
people claiming that C, D, *and* E all represent not-probed).

Does anyone know of a reliable document for this?



Chip Seraphine
Unix Administrator, Citadel
D: 312 239 2856
M: 773 412 2608
charles.seraph...@citadelgroup.com

CONFIDENTIALITY AND SECURITY NOTICE The contents of this message and any 
attachments may be confidential and proprietary. If you are not an intended 
recipient, please inform the sender of the transmission error and delete this 
message immediately without reading, distributing or copying the contents.
_______________________________________________
Veritas-ha maillist  -  Veritas-ha@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-ha

Reply via email to