Solved

Telnet to a SnapGear running Linux and Reboot it

Posted on 2008-06-09
4
1,386 Views
Last Modified: 2012-05-05
I have a snapgear which is basically a firewall/vpn piece of equipment and I need to reboot it every so often as it likes to freeze up.

I can telnet into it or I can use the web interface. I think the easiest way would be to telnet, but I need a way to automate this.

I need to login, enter my username and password, send the "reboot" command and exit.

How do I do this as a scheduled task or as a pre-scripted file (preferably without having to buy software of search through crappy freeware sites looking for a program to install)?
0
Comment
Question by:TTCLIVE
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 14

Expert Comment

by:mikelfritz
ID: 21756288
Well, since nobody answered, I give it a go.

I think you'll need either a scriptable telnet client (Powerterm does it) or use expect.  The problem with expect is that it can be difficult to make to behave (or even work) on windows, works like a champ on all of the Unix(en).

http://expect.nist.gov/
0
 

Accepted Solution

by:
TTCLIVE earned 0 total points
ID: 21760272
I ended up just installing AutoHotkey http://www.download.com/AutoHotkey/3000-2084_4-10279446.html?cdlPid=10819446 on one of my servers and having it run a macro to do the job. Thanks for the reply though, I thought I was alone in the universe there for a while!!
0
 

Author Comment

by:TTCLIVE
ID: 21760289
Oh yeah, I tried Expect before I posted and you're right, it's a pain to get working right on windows!! Matter of fact, I couldn't get it running so I ended up posting here!
0

Featured Post

Don't Miss ATEN at InfoComm 2017!

Visit booth #2167 to see the  new ATEN VM3200 32 x 32 Modular Matrix Switch. Other highlights include the VE8950 4K HDMI Over IP Extender, VS1912 12-Port DP Video Wall Media Player  and VK2100 ATEN Control System. Register now with Free Pass Code ATEN288!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Cisco RV042 router is a popular small network interfacing device that is often used as an internet gateway. Network administrators need to get at the management interface to make settings, change passwords, etc. This access is generally done usi…
There are two basic ways to configure a static route for Cisco IOS devices. I've written this article to highlight a case study comparing the configuration of a static route using the next-hop IP and the configuration of a static route using an outg…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question