This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
JJ Asghar
committed
Jul 6, 2012
1 parent
cc5cf57
commit 482901e
Showing
10 changed files
with
51 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
while [ 1 ] | ||
do | ||
lynx --dump www.brotips.com/random | awk -F "brotip #" '{print $2}' | cut -d":" -f2 | awk -F '%0A%0Aht' '{print $1}' | sed -e's/%\([0-9A-F][0-9A-F]\)/\\\\\x\1/g' | xargs -0 echo -e | awk '/./' | ||
sleep 1m | ||
done |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
for i in `cat machines.txt` | ||
do | ||
ssh $i "uname -a" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
for i in `cat prod_machines.txt` ; do scp linux_audit.sh $i://tmp/ ; done | ||
for i in `cat prod_machines.txt` ; do ssh $i /tmp/linux_audit.sh ; done | ||
./pull_linux_audit.sh | ||
ls -ltra *.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
DATE=`date +%F` | ||
HOSTNAME=`hostname -s` | ||
|
||
uname -a > out1.txt | ||
echo "" > out2.txt | ||
uptime > out3.txt | ||
echo "" > out4.txt | ||
rpm -qa | sort -u > out5.txt | ||
echo "" > out6.txt | ||
df -h > out7.txt | ||
cat out* | tee $HOSTNAME.$DATE.txt | ||
rm out*.txt | ||
cp $HOSTNAME.$DATE.txt /tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
for i in `cat machines.txt` | ||
do | ||
ssh $i uptime | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
for i in `cat prod_machines.txt` | ||
do | ||
scp $i://tmp/*.txt ./ | ||
ssh $i rm /tmp/*.txt | ||
done |
This file was deleted.
Oops, something went wrong.