1 Reply Latest reply on Dec 24, 2010 5:28 AM by Bill Robinson

    Populating Server Property

      Hi All,

       

             I have a requirement in Solaris, that I need to find out that my root FS is under which Volume Manager (Sun Volume Manager, Veritas Volume Manager, ZFS or NONE). For that I created a Server Property VOLUME_MANAGER. I wrote a script to populate that VOLUME_MANAGER property.

       

      My script is below:

       

      cat /etc/system | grep "^rootdev" |grep md 1>/dev/null
      if [ $? -eq 0 ];then
      VM=SVM
      fi

      cat /etc/system | grep "^rootdev" |grep vxio 1>/dev/null
      if [ $? -eq 0 ];then
      VM=VxVM
      fi

      cat /etc/system | grep "^rootdev" 1>/dev/null
      if [ $? -eq 0 ];then
      VM=N/A
      fi

       

      and I want to return the output calue of this script to one variable called VOLUME_MANAGER= "My script output" and I want to set that returned value through BLCLI.

       

      Help me Plesae..