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
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
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
06-04-2007 02:16 PM
06-04-2007 02:16 PM
telnet
DES-3326SR Fast Ethernet Switch Command Line Interface
Firmware: Build 4.03-B01
Copyright(C) 2000-2005 D-Link Corporation. All rights reserved.
UserName:fazly
PassWord:*******
Fail!
UserName:Connection closed by foreign host.
what shoul i do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2007 02:21 PM
06-04-2007 02:21 PM
Re: telnet
what you mean "run my switch on bash script"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2007 03:18 PM
06-04-2007 03:18 PM
Re: telnet
DES-3326SR Fast Ethernet SwitCommand Line Interface
Copyright(C) 2000-2005 D-Link Corporation. All rights reserved.
UserName:fazly
PassWord:*******
DES-3326SR:4#
in my terminal it success but in shell script it fail. Why? so here this is my coding in shell script.
host=10.90.90.90
port=23
UserName=fazly
PassWord=cat
(echo open ${host} ${port}
sleep 1
echo ${UserName}
sleep 1
echo ${PassWord}
sleep 1
echo exit) | telnet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2007 04:07 PM
06-04-2007 04:07 PM
Re: telnet
Typically you use expect to script this.
Or for ftp, you put the user and password on the same line, and use -n.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2007 10:01 PM
06-09-2007 10:01 PM
Re: telnet
Try increasing your sleep time more. Especially the first sleep.
From sleep 1 to sleep 3 , etc. If it is a slow connection you will have to increase accordingly. Play with the sleep then might be ok if you do not want to use expect script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2007 01:08 AM
06-10-2007 01:08 AM
Re: telnet
Or Kermit, which has nice scripting features.
http://www.columbia.edu/kermit/
http://www.columbia.edu/kermit/scriptlib.html
http://www.columbia.edu/kermit/ckscripts.html