Removing pkg on multiple Solaris zones

Script to remove the pkg on mutiple solaris zones

# for z in `zoneadm list |grep -v global`; do
echo $z
zlogin $z pkgrm uptimeagent >> /tmp/unixplanetary.txt
done

Script to list the pkg on mutiple solaris zones .

#for z in `zoneadm list |grep -v global`; do
echo $z
zlogin $z pkginfo -l uptimeagent >> /tmp/unixplanetary.txt
done

Leave a Reply

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