Solved

Telnet to a SnapGear running Linux and Reboot it

Posted on 2008-06-09
4
1,369 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
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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Routing between two networks? 10 72
How VPC help preventing STP Loops 4 127
Ping Through ASA Firewall 6 46
error log using ftp 7 56
Secure Shell (SSH) is a network protocol for secure data communication, mainly used to administer remote Unix / Linux servers via command line. But it also allows the user to open a secure tunnel between a client and a server where he can send any k…
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
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…

791 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