Blue Theme Orange Theme Green Theme Red Theme
 
Discover the top 5 tips for understanding .NET Interop
Home | Forums | Videos | Advertise | Certifications | Downloads | Blogs | Interviews | Jobs | Beginners | Training
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
DevExpress UI Controls
Search :       Advanced Search »
Home » Networking » Telnet Scripting in C#

Telnet Scripting in C#

This library, written in C#, expands on some telnet code from various other sources, presenting the caller with a number of functions handy for scripting telnet sessions (i.e. SendMessage, SendAndWait, WaitAndSend, WaitFor).

Page Views : 126311
Downloads : 9028
Rating :
 Rate it
Level : Beginner
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
Download Files:
ScriptingTelnet.zip
 
 
DevExpress Free UI Controls
Become a Sponsor
Nevron Chart
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

This library, written in C#, expands on some telnet code from various other sources, presenting the caller with a number of functions handy for scripting telnet sessions (i.e. SendMessage, SendAndWait, WaitAndSend, WaitFor).

Many of these functions also accept multiple prompts to wait for, returning the index of the prompt that was actually found. This provides great flexibility when scripting for optional prompts and the like.

This code was written specifically to handle a telnet session to an OpenVMS box, but I'm certain that it can easily be modified to handle any telnet session.

Please feel free to contact me with any questions or comments on the code

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 [Top] Rate this article
 
 About the author
 
tylerkline
Tyler Kline is Programmer/analyst.
Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Discover the top 5 tips for understanding .NET
Ricky Leeks presents the top 5 tips for understanding .NET Interoperability. Learn more.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
DevExpress Free UI Controls
Become a Sponsor
 Comments
Queries regarding telnet by Vinod On February 22, 2007
Hello, I am new to socket programming. I have no idea how to do this I need to make a web based utility for Telnet. Can you please send some description for the code.
Reply | Email | Modify 
Windows to Sun Solaris telnet by jenny On March 21, 2007
Hi Tyler, Is it very different to modify the telnet from OpenVMS to Sun Solaris? Jenny
Reply | Email | Modify 
Unix based by Nagarajan On May 18, 2007
hi, your code working fine with windows based application.but i want connact to the Unix area,at that time it shows error?how do i cannect to Unix area?please help me?
Reply | Email | Modify 
Nice piece of code by Joe On January 16, 2008
Tyler, this is a nice piece of code I've implemented portions of it in a project I'm doing. Have you worked on this recently? I made some changes for my own purposes.
Reply | Email | Modify 
Me too :) by Allen On March 24, 2008
I am also needing to telnet to an OpenVMS system. Has anyone had success using this to communicate to an OpenVMS machine? Please share :) Thanks,
Reply | Email | Modify 
TELNET CONNECTION by satish On September 26, 2008
hi, I need to code for the telnet connection using vb.net. kindly help me for the same. thanks, satish.thiruvaipati
Reply | Email | Modify 
Example by STeve On October 1, 2008
Does anyone have an example of this library being used?
Reply | Email | Modify 
Getting Started by Joe On June 20, 2009
I'm very new to this. can some one tell me how to get started. I know how to add this library to a project. But then what. There's no doc's for this to tell me how to start.

Reply | Email | Modify 
Best Simple C# Library...Minimalistic Telnet by Michael On October 8, 2009
Best C# Telnet Lib I've found is called Minimalistic Telnet.  Very easy to understand, use and modify.  It works great for the Cisco routers I need to configure.

http://www.codeproject.com/KB/IP/MinimalisticTelnet.aspx

Reply | Email | Modify 
Re: Best Simple C# Library...Minimalistic Telnet by venkat On January 6, 2011
Thanks for your post Minimalistic Telnet is working fine for me
Reply | Email | Modify 
how to use it? by Achmad On November 16, 2009
can you help me how to use it? :-(

thanks
Reply | Email | Modify 
Example by Steve On April 12, 2010
Can someone send me an example on how to declare, initialize, and connect this class?  I don't understand how data is received and displayed.

Thanks.
Reply | Email | Modify 
Thank you by Lachlan On July 20, 2010
Thank you for this, it looks like it could be exactly what I am after.
All I have to do is modify it to work with windows(and this custom telnet server) :)
Reply | Email | Modify 
question by mahdi On April 5, 2011
bonjour, je suis entrain de travailler sur vb.net et j'ai besoin d'un script qui permet d'ouvrir une sessions en SSh et puis d'échanger des information à basse du protocole telnet. est t'il possible de convertir ce script en vb.net et qu'elle sont les modifications que je doit apporté à ce code merci bien pour votre aide ScriptingTelnet.zip
Reply | Email | Modify 
question by fares On May 22, 2011
thanks very much for source code i used it and tried it on my router d-link 2540 u but it's not workin and tried it on another router it's work (tp-link) please help me
Reply | Email | Modify 
:) by Phoebe On August 10, 2011
hi ive downloaded your project .. hmm .. what specific library did yu use? :)
Reply | Email | Modify 
DevExpress Free UI Controls
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.