to push
tar czf - www.example.com/ | ssh joebloggs@otherserver.com tar xzf - -C ~/
to get
ssh username@from_server "tar czf - directory_to_get" | tar xzvf - -C
Thursday, July 8, 2010
Wednesday, July 7, 2010
Solaris 10: Find new disk and label it
#cat format.cmd
label
quit
#cat list
4B19
5B19
6B19
7B19
#! /bin/sh
echo "\n" | format > format.before
#cfgadm -al
echo "\n" | format > format.after
for i in `cat list`
do
echo $i
grep -i $i format.after| grep -i configured| awk -F: '{print $1}' > a.out
echo "format -s -f format.cmd `grep -i $i format.after| grep -i configured| awk -F: '{print $1}'`" > labeldisk.sh
done
#sh -x labeldisk.sh
label
quit
#cat list
4B19
5B19
6B19
7B19
#! /bin/sh
echo "\n" | format > format.before
#cfgadm -al
echo "\n" | format > format.after
for i in `cat list`
do
echo $i
grep -i $i format.after| grep -i configured| awk -F: '{print $1}' > a.out
echo "format -s -f format.cmd `grep -i $i format.after| grep -i configured| awk -F: '{print $1}'`" > labeldisk.sh
done
#sh -x labeldisk.sh
Subscribe to:
Posts (Atom)
UNIX: How to print column nicely using printf
[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...
-
This does increase the amount of CPU and I/O that both your sending and receiving side use, but I’ve been able to run ~25 parallel instance...
-
syntax: rmvterm –m {msys} –p {lpar} # rmvterm -m Server-9117-570-SN103FACD_B -p WBITVIO2
-
Cluster operations Start VCS hastart [-force-stale] hasys -force system Stop VCS hastop -local [-force-evacuate] hastop -sys system [-force-...