cancel
Showing results for 
Search instead for 
Did you mean: 

Veritas Cluster Server Windows API?

Michelle_Lai
Level 4
I am writing a C windows program to query the data of some resources in Veristas cluster. For example, I need to fetch the MountPath value of a Mount reource. I wonder if there are any windows APIs that can achieve this. Or if not, are there any other options to implment this function?
5 REPLIES 5

Gene_Henriksen
Level 6
Accredited Certified
I do not think there are APIs currently. If you can run commands and accept the return value, then you could use the VCS native "ha" commands such as "hares -value".

train1 !# hares -value s1oracle Pfile
/orcl1/admin/ORCL1/pfile/initORCL1.ora

This provides the location of the Oracle Pfile for the resource s1oracle

Michelle_Lai
Level 4
Does it mean I have to parse the result of those "ha" commands in my C program? Is this the only way?

Gene_Henriksen
Level 6
Accredited Certified
You shouldn't have to parse them if you use the correct command, it will return the exact value.

I know the topic of APIs has been discussed but I haven't seen anything on it.

Michelle_Lai
Level 4
Thank you for your help, Gene!

Hywel_Mallett
Level 6
Certified
Yup,

hares -value FileService-MountV MountPath

will return the path (where the resource name is substituted appropriately)