15 September 2009
By dopefish
In Uncategorized
Since the Linksys WAP200 has a tendency to hang and not let any users connect anymore, this little script to reboot an accesspoint (webinterface still works fine). Replace user and password with correct values.
Select All Code:1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
if [[ "$#" == "1" ]]
then
nc -w1 -z $1 443
if [[ "$?" == "0" ]]
then
wget -q -O – –user=foouser –password=foopass [...]
Continue reading
bash, cisco, linksys, reboot
08 August 2008
By dopefish
In Tech
Zwei Kleinigkeiten die ich heute beim scripten nachschlagen musste:
- “terminal length 0″ lässt das, beim scripten, nervige “– more –” verschwinden
- neben “include” und “exclude” kann man beim pipe | auch “begin” benutzen. z.B. “sh run | b router ospf”
Continue reading
cisco, ios
27 March 2008
By dopefish
In Tech
Let me jot this down before I forget it again, I’ve looked this up so often
First we hook up the CON port of the borked device with the AUX port of a working router (the normal Cisco console cable with RJ45 connectors on both ends). Then we go to the router and configure it’s [...]
Continue reading
aux, cisco, con, telnet