One way to find out which the Solaris container resides is by using this long command :
find /var -type f -name 'pkginfo' 2>/dev/null |xargs grep "From: " 2>/dev/null |grep -v "From: fern"|awk -F: '{print $6}' 2>/devh/null| awk '{print$1}'|sort|uniq
Sometimes, it will give out the name of the global zone. Please note : sometimes. Not every time the global zone will be given by running the command.
If somehow the global zone does not appear, that means you just have to look elsewhere, eg. : ask the previous system administator.
Hope this helps.
No comments:
Post a Comment