4 Replies Latest reply on Sep 24, 2012 6:41 PM by Bill Robinson

    Extended object take so long to display the result

    Aurora Hermida

      Hi,

       

      I have created a extended object to know the version of a patrol agent installed on a solaris target server but it is taking so long to display the result.

       

      I configured the extended object as follow_

       

      • Command / Script : nsh -c "//bbsazone/opt/bmc/bladelogic/8.2/NSH/scripts/patrol_version_last.nsh" ??TARGET.NAME??
      • Central execution
      • Grammar file: auto.gm

       

      The script has the following content:

       

      #!/bin/nsh

      HOST=$1

      for vdirs in /export /home /opt

      do

      cd $vdirs

      binfile=`nexec -nohup $HOST sh -c "find / -name patrolrc.sh -type f 2> /dev/null | grep -v zonas"`

      if [ ${#binfile} -gt 0 ]; then

              pathPatrol=$binfile

              vdirbin=$vdirs

      fi

      done

      nexec -nohup $HOST sh -c "cd $vdirbin"

      pathdir=`nexec -nohup $HOST sh -c dirname $pathPatrol`

      nexec -nohup $HOST sh -c "cd $pathdir"

      pagversion=`nexec -nohup $HOST sh -c PatrolAgent -v`

      echo $pagversion

       

       

      Thanks in advance!