Forum Discussion

Michelle_Lai's avatar
18 years ago

Veritas Cluster Server Windows API?

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?
  • Does it mean I have to parse the result of those "ha" commands in my C program? Is this the only way?
  • 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
  • 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.
  • Yup,

    hares -value FileService-MountV MountPath

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