Take a snapshot of the resources on Sun Cluster 3.1

Sun Cluster 3.1 has a nice utility called scsnapshot.
With this command is possibile take a full image of the cluster ( resource type , resource group , resources)
creating a script as backup!

This is an example:

root@LOY2 # cd /sun-temp
root@LOY2 # scinstall -p
3.1u4
root@LOY2 # scsnapshot -s loy.sh
Parsing the CCR data… This may take a while
Wrote script file loy.sh

Good !!
There are some lines of loy.sh

# loy-rg
run_cmd “$SCRGADM -a -g loy-rg -h \”LOY2,LOY1\” -y rg_project_name=\”default\” -y rg_mode=\”Failover\””

# END

# Resource definitions
#———————

echo “[INFO] : Add new Resource definitions:”

# loy-lh
run_cmd “$SCRGADM -a -L -g loy-rg -j loy-lh -l LOYDB -n ipmp0@2,ipmp0@1 -y resource_project_name=\”default\””

# END

This script is powerful !