[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] Startup and Shutdown of a Virtual/Physical cluster




  for a in `clustat -l | grep "^Service Name" | awk '{print $4}' `; do
    clusvcadm -d $a
  done

... however, it won't work if you put spaces in your service names ;)

-- Lon
clustat -l | sed -n 's/^Service Name.*: //g p' | xargs -n 1 clusvadm -d
there you go, should work even with space :)
i don't know if the "-n 1" is necessary though.
regards,
johannes


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]