7 Replies Latest reply on Feb 12, 2015 12:26 PM by Bill Robinson

    Server Uptime script issue

      Hi guys,

       

      I am trying to run a script to get server uptime in a file for a list of servers in group, below is the script let me know whats the issue.

       

      #!/bin/NSH

      # This script should provide the uptime of the servers

       

      mkdir //@/app/bladelogic/depot/testing_7

       

       

      GROUP="/group path"

       

       

      blcli_connect

       

       

      SERVER_LIST='blcli_execute Server listServersInGroup $GROUP'

       

       

      for serverName in $SERVER_LIST

       

       

      do

       

       

      nexec $serverName net statistics server | grep "Statistics since"

       

       

      echo $output >> //@/app/bladelogic/depot/testing_7/123.log

       

       

      done

       

       

      blcli_disconnect

       

       

      Error:

      nexec: Error accessing host blcli_execute: I/O error

       

      Thanks,

      Sachin