|
#1
| ||||
| ||||
| Unable to reboot router from Terminal
I have this AppleScript to reboot my router, but for some strange reasons which I don't understand, the script doesn't reboot my router. Here is the script : ---------------------------------- tell application "Terminal" run do script "telnet 192.168.2.1" delay 1 do script "admin" in window 1 delay 1 do script "MaccaM" in window 1 delay 1 do script "reboot" in window 1 delay 1 end tell --------------------------------- Here is the output that I get when I run this script : ![]() For your reference here are my router security settings : Router is Airlink101 Super G Wireless Router SSID is MacZone SSID broadcast is disabled Security Mode is WPA-PSK Encryption Method is AES Passphrase format is ASCII Passphrase is MaccaM Channel is 6-2437 Ghz Mode is Mixed(g/b) Can anyone please tell me why I am unable to reboot the router or is there any other way to reboot the router ? |
|
#2
| ||||
| ||||
|
Can you reboot it via terminal and without AppleScript? According to that terminal window the connection was refused.
__________________ MacBook Pro | Dell Mini Inspiron 9 | Mac Mini | Newton 2000 | iPhone | @Work : Dell D620 & 2x20" + a lot of Macs | Workstation, VC & Fusion Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. ~ Samuel Clemens | Rants | Photos |
|
#3
| ||||
| ||||
|
You sure you don't have to SSH into that router? Or maybe the Telnet feature is disabled?
__________________ • Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.4.11/Ubuntu 9.10 • Asus Eee PC 901 (1.6 GHz Atom N270) - Ubuntu Netbook Remix 9.04 • Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1 • "JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 13 • "Kidbuntu" (2.8 GHz Celeron D 335) - Ubuntu 9.04 |
|
#4
| ||||
| ||||
|
@Giaguara The same things happens when I try to reboot directly from terminal. I get connection refused. @nixgeek How can I know that I have to SSh or Telnet is disabled ? |
|
#5
| ||||
| ||||
|
Is configuring the router via SSH and/or Telnet even supported by the router? If so, it would say so in the manual... Most home routers can only be accessed via a web interface on port 80 (or sometimes 8080). I have a D-Link DIR-625 that only supports configuration via web interface -- I cannot SSH or Telnet into it.
__________________ Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb http://www.jeffhoppe.com |
|
#6
| ||||
| ||||
|
There is this Remote management setting in my Router config page, so I guess Telnet and SSH should be possible. Check here : |
|
#7
| ||||
| ||||
|
Okay, remote management is enabled. So you can connect usually via browser to whatever IP it has. Does the manual say that that model actually supports ssh or telnet for remote connection?
__________________ MacBook Pro | Dell Mini Inspiron 9 | Mac Mini | Newton 2000 | iPhone | @Work : Dell D620 & 2x20" + a lot of Macs | Workstation, VC & Fusion Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. ~ Samuel Clemens | Rants | Photos |
|
#8
| ||||
| ||||
|
No the manual doesn't mention anything about remote connection. My router is Super G Wireless Broadband Router Model #AR430W from Airlink101 (www.airlink101.com).
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|