Skip to content

Instantly share code, notes, and snippets.

@thbkrkr
Created July 3, 2013 11:38
Show Gist options
  • Save thbkrkr/5917212 to your computer and use it in GitHub Desktop.
Save thbkrkr/5917212 to your computer and use it in GitHub Desktop.
clean formXpgih
./cmd.sh 'for u in $(grep pgih /etc/passwd | cut -d ":" -f1); do sudo /usr/sbin/userdel -rf $u; done'
./cmd.sh 'rm -rf /pgih/*'
./cmd.sh '/sbin/shutdown -r 0'
#!/bin/bash
for v in $(cat list_vms)
do
echo "$v"
ssh -t root@$v "$1"
done
#!/bin/bash
for v in $(cat list_vms)*
do
ssh-copy-id -i ~/.ssh/id_rsa.pub root@$v
done
form1pgih-ts
form1pgih-lb
form1pgih-aps1
form1pgih-aps2
form2pgih-ts
form2pgih-lb
form2pgih-aps1
form2pgih-aps2
form3pgih-ts
form3pgih-lb
form3pgih-aps1
form3pgih-aps2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment