Video Screencast Help

Is there a way to query VCS to see if monitor timeouts are occurring?

Created: 24 Sep 2010 • Updated: 29 Nov 2010 | 2 comments
Seann Herdejurgen's picture
This issue has been solved. See solution.

Without attempting to parse the output of engine_A.log, is there a way to use the ha* command set to query VCS to see if monitor timeouts are occuring?  We would like to be able to create an alert when monitor timeouts are occurring.

 

-Seann

Comments 2 CommentsJump to latest comment

Gaurav Sangamnerkar's picture

Yep, I think you can achieve that using "hamsg" command...

Check out this technote from SYmantec

 

http://www.symantec.com/business/support/index?pag...

 

From VCS users guide:

Querying log data files (LDFs)

Log data files (LDFs) contain data regarding messages written to a corresponding English language file. Typically, for each English file there is a corresponding LDF.

To display the hamsg usage list

◆ Type the following command:
# hamsg -help

To display the list of LDFs available on the current system
◆ Type the following command:
# hamsg -list

To display general LDF data
◆ Type the following command:
# hamsg -info [-path path_name] LDF
The option -path specifies where hamsg looks for the specified LDF. If not
specified, hamsg looks for files in the default directory /var/VRTSvcs/ldf.

To display specific LDF data
◆ Type the following command:
# hamsg [-any] [-sev C|E|W|N|I] [-otype VCS|RES|GRP|SYS|AGT] [-oname object_name] [-msgid message_ID] [-path path_name] [-lang language] LDF

Querying VCS

-any Specifies hamsg return messages matching any of the specified query options.
-sev Specifies hamsg return messages matching the specified message severity Critical, Error, Warning, Notice, or Information.
-otype Specifies hamsg return messages matching the specified object type

■ VCS = general VCS messages
■ RES = resource
■ GRP = service group
■ SYS = system
■ AGT = agent

-oname Specifies hamsg return messages matching the specified object name.

-msgid Specifies hamsg return messages matching the specified message ID.
-path Specifies where hamsg looks for the specified LDF. If not specified, hamsg looks for files in the default directory /var/VRTSvcs/ldf.
-lang Specifies the language in which to display messages. For example, the value en specifies English and "ja" specifies Japanese.

 

Additionally you can also refer to man pages of "hamsg" command...

 

Gaurav

PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
 

SOLUTION
Yasuhisa Ishikawa's picture

Here is an example under "montir timeout" condition.

# tail -3 /var/VRTSvcs/log/engine_A.log
2010/10/01 14:11:27 VCS NOTICE V-16-1-10447 Group gr1 is online on system node1
2010/10/01 14:11:27 VCS INFO V-16-6-15004 (node1) hatrigger:Failed to send trigger for postonline; script doesn't exist
2010/10/01 14:13:28 VCS ERROR V-16-2-13027 (node1) Resource(gr1_Application_Test) - monitor procedure did not complete within the expected time.
# hares -state
#Resource            Attribute        System     Value
gr1_Application_Test State            node1      ONLINE|MONITOR TIMEDOUT
gr1_Application_Test State            node2      OFFLINE
#

I hope this helps.

Authorized Symantec Consultant(ASC) Data Protection in Tokyo, Japan