This file contains hidden or 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
File 1: | |
VLAN Name Subnet | |
1 Default 10.1.1.0/24 | |
10 Ten 10.1.10.0/24 | |
20 Twenty 10.1.20.0/24 | |
30 Thirty 10.1.30.0/24 | |
40 Fourty 10.1.40.0/24 | |
50 Fifty 10.1.50.0/24 | |
sed 's/ / | /g' 1 > 2 |
This file contains hidden or 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
File 2: | |
VLAN | Name | Subnet | |
1 | Default | 10.1.1.0/24 | |
10 | Ten | 10.1.10.0/24 | |
20 | Twenty | 10.1.20.0/24 | |
30 | Thirty | 10.1.30.0/24 | |
40 | Fourty | 10.1.40.0/24 | |
50 | Fifty | 10.1.50.0/24 | |
sed 's/^/| /' 2 > 3 |
This file contains hidden or 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
File 3: | |
| VLAN | Name | Subnet | |
| 1 | Default | 10.1.1.0/24 | |
| 10 | Ten | 10.1.10.0/24 | |
| 20 | Twenty | 10.1.20.0/24 | |
| 30 | Thirty | 10.1.30.0/24 | |
| 40 | Fourty | 10.1.40.0/24 | |
| 50 | Fifty | 10.1.50.0/24 | |
sed 's/$/ |/' 3 > 4 |
This file contains hidden or 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
File 4: | |
| VLAN | Name | Subnet | | |
| 1 | Default | 10.1.1.0/24 | | |
| 10 | Ten | 10.1.10.0/24 | | |
| 20 | Twenty | 10.1.20.0/24 | | |
| 30 | Thirty | 10.1.30.0/24 | | |
| 40 | Fourty | 10.1.40.0/24 | | |
| 50 | Fifty | 10.1.50.0/24 | |
This file contains hidden or 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
ssed -i 's/ / | /g' 1| ssed -i 's/^/| /' 1| ssed -i 's/$/ |/' 1 | |
File 1 (Before): | |
VLAN Name Subnet | |
1 Default 10.1.1.0/24 | |
10 Ten 10.1.10.0/24 | |
20 Twenty 10.1.20.0/24 | |
30 Thirty 10.1.30.0/24 | |
40 Fourty 10.1.40.0/24 | |
50 Fifty 10.1.50.0/24 |
This file contains hidden or 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
Run this command | |
/usr/StorMan/arcconf GETCONFIG 1 | |
Look for the below output. | |
Controller Status : Optimal | |
Status of logical device : Optimal | |
If any of these has a status other than optimal i.e. if status != optimal then email me ie. run this command: |
This file contains hidden or 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
#!/usr/bin/env bash | |
# This script was written for and works on Mac OS X | |
# I have to use sudo to run arping on Mac OS X | |
# I believe the options for arping on linux are a little different. I believe you use -D for duplicate IP detection instead of -d but that's from memory and you should check. | |
echo "Starting duplicate IP detection with sudo arping!" | |
for i in {1..254}; | |
do | |
sudo arping -q -d -c 2 192.168.1.$i; [ $? -ne 0 ] && echo "192.168.1.$i duplicate"; |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# Purpose | |
# Iterate over a range of IP addresses | |
# Change the /etc/network/interfaces subnet | |
# WARNING! | |
# I haven't tested this yet | |
# It might not work |
This file contains hidden or 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
!#/usr/bin/env bash | |
#Sleepbot Environmental Broadcast | |
#sleepbot.com/ambience/broadcast/ | |
#Peaceful streaming audio featuring a random cycling of some of the most sleep-worthy tracks ever created. | |
mplayer http://alpha.newerastreaming.com:8096 |
This file contains hidden or 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
#!/usr/bin/env bash | |
# | |
# Script to read a bunch of urls from a file, curl them all, echo the results | |
# The original purpose of this script was to test a bunch of 302 redirects | |
TARGETS=`cat targets` | |
for i in $TARGETS | |
do | |
echo "Testing $i" | |
RESULT=`curl -s -L $i` |
OlderNewer