A quick way to backup your LDM config on SPARC hardware


A quick and dirty way to backup your LDM configuration for each domain in to separate XML file:
for i in `ldm list-domain|grep active|awk '{ print $1 }'`;do ldm list-constraints -x $i>>$i-`hostname`-$DATE.xml;done

NOTE: This worked on a Solaris 11.3 box….YMMV!


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.