VCS

Veritas cluster cheat-sheet
# Display information about all Clusters

# for clu in `haclus -list`;do echo -e "\nCluster ${clu}"; haclus -display ${clu} ;done

# Display information about all Systems

# for sys in `hasys -list`; do echo -e "\nSystem ${sys}"; hasys -display ${sys} ;done

# Display information about all unique ServiceGroups

# for grp in `hagrp -list |awk '{print $1}'|sort|uniq`;do echo -e "\nServiceGroup ${grp}"; hagrp -display ${grp};done

# Display information about all unique Resources

# for res in `hares -list |awk '{print $1}'|sort|uniq`;do echo -e "\nResource ${res}"; hares -display ${res};done

# Display information about all unique Agents which are actually in use

# for res in `hares -list |awk '{print $1}'|sort|uniq`;do hares -display ${res}|grep " Type " ;done |awk '{print $4}'|sort|uniq |awk '{print "\nAgent "$1; system("haagent -display "$1);}'

 

If you found this useful, say thanks, click on some banners or donate, I can always use some beer money.