Page 1 of 1 1
Topic Options
#175842 - 2007-05-01 10:48 AM Telnet Login D-link Script
Kerkhoff Offline
Fresh Scripter

Registered: 2005-07-22
Posts: 9
I have to check 10 different D-link switches (DGS-3324SR and DES-3526).

Is it possible to make a Kixtart script to logon a switch (with Username/Password) and execute a commandline, such as "SHOW ERROR PORTS 1,2,3". Eventually return the result in a txt-file and logout from the switch?

Top
#175845 - 2007-05-01 11:25 AM Re: Telnet Login D-link Script [Re: Kerkhoff]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
As this is the advanced scripting forum, do you have some script to show?
Do the switches support a telnet session? If yes, maybe with PuTTY: A Free Telnet/SSH Client or TeraTerm Pro Web 3.1.3 - Enhanced Telnet/SSH2 Client

Top
#175846 - 2007-05-01 11:36 AM Re: Telnet Login D-link Script [Re: Kerkhoff]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
Unfortunately telnet.exe is not scriptable, you'd have to look into other programs such as SecureCRT or putty.
Top
#175852 - 2007-05-01 02:10 PM Re: Telnet Login D-link Script [Re: Arend_]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Although it can be done via SENDKEYS(). Just not a very elegant solution. I currently use SecureCRT and run their scripting engine inside a KiX script.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#175853 - 2007-05-01 02:44 PM Re: Telnet Login D-link Script [Re: Gargoyle]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
SendKeys() and telnet are a really bad combination. You will have better but not perfect results by upgrading to HyperTerm and AutoIT. Better still, get a telnet client that supports scripting intrinsically.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#175854 - 2007-05-01 02:50 PM Re: Telnet Login D-link Script [Re: Les]
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
i thought that kixforms had a basic telnet support...?
Top
#175869 - 2007-05-01 10:52 PM Re: Telnet Login D-link Script [Re: Bryce]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yup.
with kixforms one should be able to accomplish this.
_________________________
!

download KiXnet

Top
#175897 - 2007-05-02 04:05 PM Re: Telnet Login D-link Script [Re: Lonkero]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Jooel,
Care to elobarate some more? Can it support SSH as well
_________________________
Today is the tomorrow you worried about yesterday.

Top
#175902 - 2007-05-02 04:34 PM Re: Telnet Login D-link Script [Re: Gargoyle]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
no, encryption stuff is not inbuilt and ssh probably will never be.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1114 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.2 seconds in which 0.101 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org