hacmp 5.3 primary and standby?

Hi All,

How do I determine if a hacmp 5.3 server is a primary or a standby?

Thanks in advance.

clstat will tell you which node has the resource groups.

You might need to get the definitions right. In case you have a two node cluster theses nodes will be sortet alphanumerically by their names. The one that comes first is your cluster's primary node, the other is the secondary.
To find out whether HACMP is active on a node lssrc -ls clstrmgrES is most reliable. However, if you want to find out about where a resource group should become active if it has a choice you need to look into the RG's properties. clshowres might be useful: the ordering of the nodes for a RG might differ. If you then want to find out if your RGs are online at the moment and whether that node on which the RG is active is the assumed (right...) node clRGinfo (with/without -p depending on HA 5.x version) might display valuable information.