1 2 Previous Next 22 Replies Latest reply on May 4, 2016 2:20 PM by Jegavelan Sargunan

    NSH Script Questions

    Jegavelan Sargunan

      Hi All,

       

          I am trying to get a properties through a value I have wrote a NSH to get the value and set the properly but I am getting unmatched error

       

      Here is the script

       

      #!/bin/nsh

      set -x

       

      for SERVER in ${@};

      do

      CITRIXSTREAM="echo. | wmic cdrom get volumename" | awk 'NR>1'"

       

      if [ "$CITRIXSTREAM" = "CITRIX BOOT" ]

            then

               echo "Its an Citrix Stream Server"

               blcli Server setPropertyValueByName $RHOST IS_CITRIX_REB Yes

            else

               echo "Its not an Citrix Stream Server"

               blcli Server  setPropertyValueByName $RHOST IS_CITRIX_REB No

       

      fi

      done

        1 2 Previous Next