- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- PIPE something into TELNET on Linux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2000 06:11 AM
тАО12-08-2000 06:11 AM
I have a nice Script to backup my Cisco-Router-Configs to a tftp-Server running on HP-UX.
The script works like this:
- Setup a complete string-sequence to do the entire job
- Echo $BACK | telnet cisco-router
This works fine on HP-UX 10.20 and 11.00
Now I wanted to switch this backup to run on a Linux box, and it appears, that the Linux telnet is not accepting anything which is piped inside.
Runing the telnet manually and clipping the entire sequence into the terminal session works as well.
How do I disable Linux Telnet to flush the initial Input ?
I already tried to set up telnet options:
unset autoflush
mode character
Did not help :-(
Running RedHat 6.1 Blue Sky (SAP) Edition?
Thanks in advance
Volker
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2000 06:50 AM
тАО12-08-2000 06:50 AM
Re: PIPE something into TELNET on Linux
I guess I do not see the point in getting the script from the telnet session on Linux, especially when Linux is extremely capable of storing and/or scheduling it's own processes.
Hope that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2000 01:51 PM
тАО12-08-2000 01:51 PM
Re: PIPE something into TELNET on Linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2000 12:07 AM
тАО12-11-2000 12:07 AM
Re: PIPE something into TELNET on Linux
that is really the thing one should do in general. But I guess it will not work in this case, as the cisco (IOS) router is (as far as I know) not able to execute a scheduled script (Any input on this is welcome). So there is little chance to change the procedure.
Best Regards
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2000 12:11 AM
тАО12-11-2000 12:11 AM
Re: PIPE something into TELNET on Linux
could you please be a little bit more specific. Can I get a diffrent telnet there, which is capable of what I need, or an extension to my ciscos IOS, which can schedule the backupscript ?
Best Regards
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2000 08:27 AM
тАО12-11-2000 08:27 AM
Re: PIPE something into TELNET on Linux
Couldn't you poll the Cisco Router Remotely to extract the configuration? Doesn't Cisco support the ftp command? You should be able to lock down the command from the Console to enable it.
I am certain that there is a solution to this, as Cisco has supplied a Tool which will download the current configuration for any device which has the passwords. You got those, right?
Thanks for the points! We'll get this ironed out for you, one way or another.
Talk to you soon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2000 09:06 AM
тАО12-11-2000 09:06 AM
Re: PIPE something into TELNET on Linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2000 06:32 AM
тАО12-12-2000 06:32 AM
Solution"There are a few scripts on the OVFI FTP site: ftp.ovforum.org that will
get the router config via SNMP. I believe they are ciscocfg and cswcmd."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2000 06:41 AM
тАО12-12-2000 06:41 AM
Re: PIPE something into TELNET on Linux
that sounds good, although I am no Perl expert. I'll delay this approach until the simple solution will not do it's job. But it might be a way....
May be I can use this diffrent telnet without Perl, as I have everything ready and working, except that Linux Telnet is flushing the input:-(
Thank's a lot.
Hello Albert,
I am on ciscos for quite a while now, and the only way I found out until now, is to login to the router (console or telnet), and issue the "copy config tftp" command, which prompts you for the target server and filename.
I found no way to login to the Router with a ftp client, as the Router provides no FTP daemon or service (that would be a nice thing).
Anyway, I have a working solution on HPUX, which does not work on Linux because of telnet's behavior. So my first approach is to make linux telnet work like the one on HPUX.
If this does not work, I would try to use a diffrent telnet, and if this does not work, i would consider a structural change.
BTW, unless the number of routers you have to work with is equal to one, and the frequency of changes to this router is one per quarter
-> Forget about this config tool.
Best regards
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2000 07:05 AM
тАО12-12-2000 07:05 AM
Re: PIPE something into TELNET on Linux
I never tried this SNMP stuff on this, but this sounds quite good. I'll wait with point assignments, until I know the value of this answer a little bit better :-)
Best Regards
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2000 11:00 AM
тАО12-19-2000 11:00 AM
Re: PIPE something into TELNET on Linux
although I am too weak on perl and snmp, I am pretty sure, that your solution will do it's job. I'll reconsider it at next years beginning, and I think i have to do some adjustments for native SNMP stuff to this OV tools.
Anyway, I'll assign points for tax reasons this year ;-)
Keep this message on notify, if you like to hear later, how it turned out.
Thanks again
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2001 06:27 AM
тАО05-29-2001 06:27 AM
Re: PIPE something into TELNET on Linux
I have a perl script on HP-UX 10.20,which is supposed to do the same job. but for some reason I am getting following error when running " copy run tftp" cmd.
TFTP:error code 2 received - Access violation.
%Error opening tftp://IPaddressof tftp_server/file name (undefined error).
What should I do to make sure tftp server is running properly. This script used to work fine.
I started getting this error after I rebooted my tftp server. I have tftpd running with tftp user defined in /etc/passwd. and home dir for the user.
I have attached my perl script here please help me.
Thanks
Ashish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2002 04:31 PM
тАО07-25-2002 04:31 PM
Re: PIPE something into TELNET on Linux
Simply put, if you throw a few 'sleep 3' (or whatever's) in the appropraite places, you should get it to work.
It isn't terribly stable, and using the TCL based 'expect' is probably better as a simple solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 09:44 AM
тАО07-26-2002 09:44 AM
Re: PIPE something into TELNET on Linux
Please take a look at the initial posting date!
Did not find or figured out a reasonable solution, but do not need any anymore.
But I am pretty sure that the given answers will lead to a solution.
No more points to win in this thread.
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2002 03:20 PM
тАО07-28-2002 03:20 PM
Re: PIPE something into TELNET on Linux
I was just trying to fill in a blank as to why what you were trying wasn't working for when someone else comes along and has the same query.