Help with dos script please.

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
totalnoob123
Posts: 2
Joined: 16 Feb 2017 05:14

Help with dos script please.

#1 Post by totalnoob123 » 16 Feb 2017 08:01

Good day Everyone

I am so happy to came across this forum. I am electronic techie learning this IT game so my experience is not that huge in this field.

I have field devices or small pc's on mobile devices in the field that make use of the Wireless radio network.
On a daily basis I need to telnet into these devices to do health checks.
so for example
telnet 10.97.2.178 9998 // (9998 is the port I am accessing)
pin 123 // (I actually type pin 123 in to access)
exec showdriverhealth // (the command I then type to get the driverhealth)

So imagine I have 150 mobile devices in the field so for each one I have to run this sequence in dos.
Please assist me to find a solution. Even I have to run one batch file for each ip it will be fine.
Thank you in advance.

Squashman
Expert
Posts: 4465
Joined: 23 Dec 2011 13:59

Re: Help with dos script please.

#2 Post by Squashman » 16 Feb 2017 08:23

You will want to use Albert Yale's Telnet Scripting Tool.
http://support.moonpoint.com/downloads/ ... /tst10.php

totalnoob123
Posts: 2
Joined: 16 Feb 2017 05:14

Re: Help with dos script please.

#3 Post by totalnoob123 » 17 Feb 2017 01:18

Squashman wrote:You will want to use Albert Yale's Telnet Scripting Tool.
http://support.moonpoint.com/downloads/ ... /tst10.php


Thank you squashman. I use telnet in a windows environment from DOS.
I extracted the file but it does not come with the instructions.Can someone please push me
in the right direction please.
How do I start?

Squashman
Expert
Posts: 4465
Joined: 23 Dec 2011 13:59

Re: Help with dos script please.

#4 Post by Squashman » 17 Feb 2017 07:30

I see you didn't read the entire link I posted because in that link is a link to the help file.
http://support.moonpoint.com/blog/blosx ... pting_tool

You also failed to read the included text file that came with the download which clearly states.

Code: Select all

Usage
-----

    execute with no arguments and you will get a help window that
    explains everything


Or you could get the Help for the program like every other console utility that has been made for DOS and Windows cmd prompt for the last 30+ years by also typing the program named followed by a forward slash and a question mark.

pcjunki
Posts: 2
Joined: 30 Dec 2016 13:26

Re: Help with dos script please.

#5 Post by pcjunki » 17 Feb 2017 16:24

have you looked into putty to manage all your devices?

Post Reply