+ Post New Thread
Results 1 to 7 of 7
Coding Thread, Select a switch and open a telnet in a VB programme in Coding and Web Development; I would like to get a simple programme that would have a list of all our switches and be able ...
  1. #1
    HMCTech's Avatar
    Join Date
    Apr 2008
    Posts
    618
    Thank Post
    37
    Thanked 48 Times in 35 Posts
    Rep Power
    22

    Select a switch and open a telnet in a VB programme

    I would like to get a simple programme that would have a list of all our switches and be able to select a switch fromt he drop down box and click a button which will open up a telnet session to that switch. I can get my head around how I would link the IP addresses to the list of switches using variables but I am not sure how I would call up the command prompt and get it to start the session automaticly.

    Any suggestions?

  2. #2
    p858snake's Avatar
    Join Date
    Dec 2008
    Location
    Queensland
    Posts
    1,490
    Thank Post
    37
    Thanked 175 Times in 151 Posts
    Blog Entries
    2
    Rep Power
    51

  3. #3

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,529
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822
    You can either do it via launching an external application, or you could create your own telnet client such as this: Quick tool : A minimalistic Telnet library - CodeProject

  4. #4

    Join Date
    Dec 2007
    Posts
    863
    Thank Post
    90
    Thanked 164 Times in 139 Posts
    Rep Power
    49
    Could try SolarWinds IP Address Tracker, right click ip of switch then can select Ping, TraceRoute, Telnet, IP Network Tracker or Web Browse.

    Or just create a shortcut for each switch with the relevent command, or 'tart' it up using AutoIT
    Last edited by MYK-IT; 10th February 2010 at 11:01 AM.

  5. #5

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,154
    Thank Post
    114
    Thanked 527 Times in 450 Posts
    Blog Entries
    2
    Rep Power
    123
    Have you thought about using Putty?

    If you're reading all your switches from a database then it might not help but if you're going to have to type them in manually then you can just build a list of "saved sessions" which include a name/IP address and the fact that you want Telnet (or SSH, RAW etc)

    Putty can also be launched with the name of a session - eg:
    [code]
    putty -load switch01
    [/putty]

  6. #6
    HMCTech's Avatar
    Join Date
    Apr 2008
    Posts
    618
    Thank Post
    37
    Thanked 48 Times in 35 Posts
    Rep Power
    22
    Thanks for the tips on programmes that would do it but would rather write one myself just for the fun.

  7. #7

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    115
    Have you thought about using Putty?
    Couple of years ago I hacked the Putty code so a dotNet app could call it to make a SSH connection to a particular brand of firewall appliance, then automagically spit some commands at it to turn policies on and off, import AD OUs full of computer into groups of FQDN address objects for use as firewall policy targets etc. Ultimately it all worked fine but I thought the Putty (command line) code was **evil**. I actually like the GUI client though.

    but would rather write one myself just for the fun.
    Telnet itself? There's a VB Telnet library on CodePlex - I suppose you could read that code to find out how to do it and then write it all again from scratch...

SHARE:
+ Post New Thread

Similar Threads

  1. Install Telnet On a Large Group Of Vista Machines
    By FN-GM in forum Windows Vista
    Replies: 13
    Last Post: 20th March 2009, 11:00 AM
  2. Telnet not working (Port25)
    By ahuxham in forum Windows
    Replies: 10
    Last Post: 24th April 2008, 02:22 PM
  3. Telnet Scripting TFTP Updates
    By plexer in forum Wireless Networks
    Replies: 6
    Last Post: 3rd November 2006, 10:34 AM
  4. Windows Telnet
    By tickmike in forum Windows
    Replies: 8
    Last Post: 7th September 2006, 02:26 PM
  5. Telnet 2.0 ?
    By dagza in forum Jokes/Interweb Things
    Replies: 6
    Last Post: 12th July 2006, 10:08 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •