04-04-2012
I have a service running with test1.. The tag added is of watchdog related config.. I'm checking the health status of the test1 process using watchdog. I need to display whether the process test1 is enabled or not and path where I could find the pidFile..
In addition to the above, I want to retrieve the values of enabled and pidFile by means of processName. It is because, I have defined 30 tags of these type to check the health status.
The processName is unique among the file..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Jean
I require your help in writing a shell script. Iam zero in Unix programming. I have a large file about 400 MB of data, which contains about 50000 XML messages seperated by a Tab, I think. I need to extract only 4 values from each XML message and write it onto a new file. Please help me... (2 Replies)
Discussion started by: pk_eee
2 Replies
2. Shell Programming and Scripting
Hi All,
I'm trying to extract the values for the 'src' and 'alt' tags within an xml file. In the files that I'm searching, the tags are always enclosed within an 'img' tag. Typically:
<img src="diwiz01.gif" width="576" height="254" alt="Out-of-process and In-process COM Objects"><bookmark... (3 Replies)
Discussion started by: Steve_altius
3 Replies
3. Shell Programming and Scripting
Is there any shell command to clean an html tag of its attributes. For ex <p align ="center"> with <p>.
Thanks for your help!! (2 Replies)
Discussion started by: parshant_bvcoe
2 Replies
4. Shell Programming and Scripting
Hi,
How to read xml tag attributes and store into variable in shell script?
Thanks,
Swetha (5 Replies)
Discussion started by: swetha123
5 Replies
5. Shell Programming and Scripting
Greetings,
I am very new to the UNIX shell scripting and would like to learn. However, I am currently stuck on how to process the below sample of code from an XML file using UNIX comands:
<ATTRIBUTE NAME="Memory" VALUE="512MB"/>
<ATTRIBUTE NAME="CPU Speed" VALUE="3.0GHz"/>
<ATTRIBUTE... (5 Replies)
Discussion started by: JesterMania
5 Replies
6. Shell Programming and Scripting
Hi All,
Find the following code:
<Universal>D38x82j1JJ
</Universal>
I want to retrieve the value of <Universal> tag as below:
Please help me. (3 Replies)
Discussion started by: mjavalkar
3 Replies
7. Shell Programming and Scripting
Hi Guys
Here is my Input :
<?xml version="1.0" encoding="UTF-8"?>
<xn:MeContext id="01736">
<xn:VsDataContainer id="01736">
<xn:attributes>
<xn:vsDataType>vsDataMeContext</xn:vsDataType>
... (12 Replies)
Discussion started by: pareshkp
12 Replies
8. Shell Programming and Scripting
I want to basically do the below thing. Suppose there is a tag called object1. I want to display an output for all similar tag values under heading of Object 1 and the count of the xmls. Please help
File:
<xml><object1>house</object1><object2>child</object2>... (9 Replies)
Discussion started by: srkmish
9 Replies
9. Shell Programming and Scripting
Hi,
My requirement is something like this,
I have a xml file that contains some tags and nested tags,
<n:tag_name1>
<n:sub_tag1>val1</n:sub_tag1>
<n:sub_tag2>val2</n:sub_tag2>
</n:tag_name1>
<n:tag_name2>
<n:sub_tag1>value</n:sub_tag1>
... (6 Replies)
Discussion started by: Little
6 Replies
10. Shell Programming and Scripting
Hi Forum.
I have an XML file with the following requirement to move the <AdditionalAccountHolders> tag and its content right after the <accountHolderName> tag within the same file but I'm not sure how to accomplish this through a Unix script.
Any feedback will be greatly appreciated.
... (19 Replies)
Discussion started by: pchang
19 Replies
LEARN ABOUT CENTOS
ocf_pacemaker_healthsmart
OCF_PACEMAKER_HEALTH(7) Pacemaker Configuration OCF_PACEMAKER_HEALTH(7)
NAME
ocf_pacemaker_HealthSMART - SMART health status
SYNOPSIS
OCF_RESKEY_state=string OCF_RESKEY_drives=string OCF_RESKEY_devices=string OCF_RESKEY_temp_lower_limit=string
OCF_RESKEY_temp_upper_limit=string OCF_RESKEY_temp_warning=string HealthSMART [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
Systhem health agent that checks the S.M.A.R.T. status of the given drives and updates the #health-smart attribute.
SUPPORTED PARAMETERS
OCF_RESKEY_state = string [/HealthSMART-{OCF_RESOURCE_INSTANCE}.state]
State file
Location to store the resource state in.
OCF_RESKEY_drives = string [/dev/sda]
Drives to check
The drive(s) to check as a SPACE separated list. Enter the full path to the device, e.g. "/dev/sda".
OCF_RESKEY_devices = string
Device types
The device type(s) to assume for the drive(s) being tested as a SPACE separated list.
OCF_RESKEY_temp_lower_limit = string [0]
Lower limit for the red smart attribute
Lower limit of the temperature in deg C of the drive(s). Below this limit the status will be red.
OCF_RESKEY_temp_upper_limit = string [60]
Upper limit for red smart attribute
Upper limit of the temperature if deg C of the drives(s). If the drive reports a temperature higher than this value the status of
#health-smart will be red.
OCF_RESKEY_temp_warning = string [5]
Deg C below/above the upper limits for yellow smart attribute
Number of deg C below/above the upper/lower temp limits at which point the status of #health-smart will change to yellow.
AUTHOR
Andrew Beekhof <andrew@beekhof.net>
Author.
Pacemaker Configuration 06/10/2014 OCF_PACEMAKER_HEALTH(7)