Changeset 454 for trunk/UTIL/farm_tour


Ignore:
Timestamp:
Dec 6, 2011, 2:37:06 PM (13 years ago)
Author:
aslmd
Message:

UTIL: a more generic farm_tour, following a suggestion by EM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/farm_tour

    r450 r454  
    11#! /bin/bash
    2 # A. Spiga
    3 
    4 ##############
    5 users="jllmd,aslmd,acolmd,tnalmd,mvalmd,forget,rwlmd,emlmd,sdlmd,lklmd,bclmd,sllmd"
    6 ##############
     2# A. Spiga & E. Millour
    73
    84\rm ~/log > /dev/null 2> /dev/null ; touch ~/log
     
    2117machine='levan'
    2218#####################
    23 ssh $machine -t "ps --sort=-pcpu -e -o '%C %u %c %x %p' -U "$users" -r | grep -v ps >> ~/log1" > /dev/null 2> /dev/null
     19ssh $machine -t "ps --sort=-pcpu -e -o '%C %u %c %x %p' -G lmdjus r | grep -v ps | grep -v root >> ~/log1" > /dev/null 2> /dev/null
    2420echo "*********************************************************" >> ~/log
    2521echo " $machine ... "`head -n -1 ~/log1 | wc -l`" processeurs utilises sur 8"  >> ~/log
     
    3127machine='penn'
    3228#####################
    33 ssh $machine -t "ps --sort=-pcpu -e -o '%C %u %c %x %p' -U "$users" -r | grep -v ps >> ~/log2" > /dev/null 2> /dev/null
     29ssh $machine -t "ps --sort=-pcpu -e -o '%C %u %c %x %p' -G lmdjus r | grep -v ps | grep -v root >> ~/log2" > /dev/null 2> /dev/null
    3430echo "*********************************************************" >> ~/log
    3531echo " $machine ... "`head -n -1 ~/log2 | wc -l`" processeurs utilises sur 8"  >> ~/log
     
    4137machine='viccaro'
    4238#####################
    43 ssh $machine -t "ps --sort=-pcpu -e -o '%C %u %c %x %p' -U "$users" -r | grep -v ps >> ~/log3" > /dev/null 2> /dev/null
     39ssh $machine -t "ps --sort=-pcpu -e -o '%C %u %c %x %p' -G lmdjus r | grep -v ps | grep -v root >> ~/log3" > /dev/null 2> /dev/null
    4440echo "*********************************************************" >> ~/log
    4541echo " $machine ... "`head -n -1 ~/log3 | wc -l`" processeurs utilises sur 8"  >> ~/log
Note: See TracChangeset for help on using the changeset viewer.