?
Solved

Telnet to a SnapGear running Linux and Reboot it

Posted on 2008-06-09
4
Medium Priority
?
1,389 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Hello to you all, I hear of many people congratulate AWS (Amazon Web Services) on how easy it is to spin up and create new EC2 (Elastic Compute Cloud) instances, but then fail and struggle to connect to them using simple tools such as SSH (Secure…
In the world of WAN, QoS is a pretty important topic for most, if not all, networks. Some WAN technologies have QoS mechanisms built in, but others, such as some L2 WAN's, don't have QoS control in the provider cloud.
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…
Suggested Courses
Course of the Month10 days, 23 hours left to enroll

770 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