Solved

Telnet to a SnapGear running Linux and Reboot it

Posted on 2008-06-09
4
1,342 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
  • 2
4 Comments
 
LVL 14

Expert Comment

by:mikelfritz
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

We've been using the Cisco/Linksys RV042 for years as: - an internet Gateway - a site-to-site VPN device - a leased line site-to-site subnet-to-subnet interface (And, here I'm assuming that any RV0xx behaves the same way as an RV042.  So that's …
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now