*******************************************************************************
* text
*******************************************************************************

mail -s "soggetto" pippo@server < FILE

----------- S S H -------------------------------------------------------------
###############################################################################
pbsnodes -a |grep ^td

PATH=/sbin:/bin:/usr/sbin:/usr/bin

03 1,7,13,19 * * * root /opt/edg/sbin/edg-pbs-knownhosts

---------- B A S H ------------------------------------------------------------
###############################################################################

sed -e s/\|/PIC_WN\ lcg-WN-torque\ pic\ ide\ 1/ trallalero.sh
cat ../hostlist_pic_new |sed -e s/,\ /,/g

for i in `pbsnodes -a | grep ^td | sort`; do

 num=1
 expr $num + 3
 4

wc command counts the number of lines
date
	save_date=`date`
	echo The date is $save_date
ls -al | awk '{sum = sum + $5} END {print sum}'
echo "Hello Jim" | sed -e 's/Hello/Bye/'
#  Turn each line into a shell comment
	sed -e 's/^/# /' sdsc.txt
tr 'A-Z' 'a-z' < file   // upper to lower
ln -sf "dest" "source"
ipcalc -n 12.7.149.0/26
PERCENT=`df -hk / | grep "/$" | awk '{print $5}' | sed -e s/%// | uniq`
free |grep Mem |awk '{print $0}'
 
mplayer http://media.kataweb.it/mibgetpointer.aspx?LIVE=7
mplayer mms://212.162.69.199/live


fsck -pyfv /dev/hdc1  
 -p                   Automatic repair (no questions)
 -n                   Make no changes to the filesystem
 -y                   Assume "yes" to all questions
 -c                   Check for bad blocks and add them to the badblock list
 -f                   Force checking even if filesystem is marked clean
 -v                   Be verbose

 ----------------------------------------------
 /root/.ssh/known_hosts
 Replace: Same as with sed, Replace OLD with NEW:
vi /etc/ssh/sshd_config
 
 First occurrence on current line:      :s/OLD/NEW
  
 Globally (all) on current line:        :s/OLD/NEW/g 

 Between two lines #,#:                 :#,#s/OLD/NEW/g
  
 Every occurrence in file:              :%s/OLD/NEW/g 
%s/SRV/grid/g
 
 
 -------- S N M P -------------------------------------------------------------
###############################################################################

service snmpd status ; service snmpd start ; chkconfig snmpd on ; exit

snmpwalk -v 1 -t 30 HOST -c COMMUNITY .1.3.6.1.4.1.2021.8

 -------- C V S ---------------------------------------------------------------
###############################################################################
 
 alias cvsd='cvs  -d :pserver:user@server:/home/xxx'
 cvs login
 cvs add FILE
 cvs commit -m "commento obbligatorio" FILE
 cvs diff FILE
 
 	-	-	-	
	locate cvsconf.sh
	export CVSROOT=:pserver:user@server:/home/xxx
	cvs co "directori da scaricare"
	
 #!/bin/bash

#
 -------------------------------------------------------
 ---   P B S   -------------------------------------------------
 ###############################################################################
  qmgr -c "create node "; pbsnodes -o td111.pic.es
 qstat
 pbsnodes -a
 (man pbsnoded)
 -------------------------------------------------------
 %tail -10000 globus-gridftp.log | awk '{print $10,$15,$6,$7}' | sed s/NBYTES=//g | sort -n 
 [root@wl-delgallo ~]# date +%s
1115385025

 ------------------------------------------------------*-
 la questione dei driver in linux è differente e in realtà molto + semplice:
a me è successo lo stesso (che fedora non mi vedesse la scheda)
io farei così:

apri un terminale: come root (se non sei root basta che scrivi "su" e tichiede la password)
[root@pcmatteo ~]# service pcmcia status     :questo ti dice se il driver PCMCIA è attivo:
[root@pcmatteo ~]# kudzu -p  :taderà un po e poi ti da una lista di tutte le periferiche collegate al pc
tu devi trovare la tua scheda nella lista e scriverti il "vendor id" e il "product id"
ora dovresti sapere quale è il modulo adatto alla tua scheda, per esempio quello per la mia
 che è una asus WL-100 è "orinoco_cs". così con queste informazioni ho installato la scheda come segue;
[root@pcmatteo ~]#  vi /etc/pcmcia/config  : vi è un editor di testo, ma puoi aprire il file /etc/pcmcia/config
con qualsiasi editor preferici, sempre come root!

io ho aggiunto questa voce (3 righe)

card "ASUS WL-100 fichetta Wireless"
  manfid 0x02aa, 0x0002    ;questi due numeri sono rispettivamente il "vendor id" e il "product id"
  bind "orinoco_cs"

con questo ho associato il modulo a la mia scheda e facendo 
[root@pcmatteo ~]# service pcmcia restart
la mia scheda ha cominciato a lampeggiare, quindi il kernel la vedeva.

ora do un occhiata se trovo la tua scheda, sono su messenger.

 Sitecom  	802.11g  	WL-112  	Cardbus  	Ralink  	rt2x00
	
	http://rt2x00.serialmonkey.com/wiki/index.php/Main_Page

Alessandro
	
 -------- Kernel ---------------------------------------------------------------
###############################################################################


wget http://oss.oracle.com/projects/firewire/dist/files/RedHat/RHEL3/i386/kernel-smp-2.4.21-27.0.2.ELorafw1.i686.rpm

rpm -ivh kernel-smp-2.4.21-27.0.2.ELorafw1.i686.rpm

y se han cambiado los parámetros de velocidad del disco:
[root@pic042 etc]# sysctl -w dev.raid.speed_limit_min=10000
dev.raid.speed_limit_min = 10000
[root@pic042 etc]# sysctl -w dev.raid.speed_limit_max=100000
dev.raid.speed_limit_max = 100000
Se pone en el fichero /etc/sysctl.conf  y la velocidad ha mejorado:

 -------- GANGLIA ---------------------------------------------------------------
###############################################################################

/etc/gmond.conf

         # /etc/obj/gmond configure 
         # /sbin/service gmond restart
         

The final part is to install the gmetad portion of ganglia somewhere with a web server. The LCFG server is one very good option for this.

Follow the ganglia instructions to set up gmetad.

It is also a good idea to add the central GridPP Ganglia as a trusted host to your gmetad configuration.

To do that your /etc/gmetad.conf file must contain at least

trusted_hosts 127.0.0.1 130.88.200.150 130.88.200.151 130.88.200.152\
   130.88.200.153 194.36.3.0/24  

which is some hosts at Manchester Computing Center. Finally send Andrew McNab the hostname of gmetad server so he can monitor it.

- - - - - - - - - 

http://gocmon.uits.iupui.edu/ganglia-webfrontend/?m=&r=hour&s=descending&hc=4
http://ganglia.gridpp.rl.ac.uk/?m=%5Bnone%5D&r=day&s=descending