Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Procomm - Iterate through telnet directory

Status
Not open for further replies.

joeb5110

Technical User
May 8, 2009
42
US
I'm trying to set up a script to connect to each of my telnet entries. The manual shows describes a script beginning with TELNET GROUP [GROUP NAME] iEntries. However, this always iterates through the entire directory, not just the group name I specify.
On a forum I found a script that connects to entries from a text file. However, it doesn't give an example of the text file to show how to format the entries (it's an old forum, not supported any more). I've tried 11.123.123.123:2001 where 2001 is the port. I can't think of any other way to try it..dashes, spaces, parentheses.. Any suggestions?
Thanks.
 
I have a telnet script or two on my website that show both how to access the Connection Directory and lists of IP addresses/fully-qualified domain names in a text file if you are still needing assistance with this script.

 
Are you referring to "diallist.was"? Is there a sample of the text file it references?
 
Knob:

There's also this script on your site. My dilemma is I need to isolate groups, not iterate
through all entries in my telnet directory.

=========================================================
proc main
integer iEntries ;Number of entries in dialing class
integer iCount ;Loop variable
string sName ;Name of Connection Directory entry

dialcount TELNET iEntries ;Get number of entries in specified dialclass
for iCount = 0 upto (iEntries - 1)
dialname TELNET iCount sName ;Get entry name corresponding to index number
statmsg sName
dial TELNET sName ;Make telnet connection
while $DIALING ;Loop while making connection
yield
endwhile
pause 1
if $CARRIER == 1 ;If connected
;do commands here
endif
endfor
endproc

======================

Thanks.
 
Sorry to not get back to this thread sooner. The script references a file that I thought was a default file from the Procomm installation, but it appears not to be the case. My guess is this may have been a file I exported from the Connection Directory a long time ago. However, based on the script, it looks to be a text file with just a data number on each line of the file so that is all yours would need to contain (or fully-qualified domain names or IP addresses if you wish to use telnet).

When you say you need to isolate groups, what tasks do you need to perform? Enumerate all groups, all entries within a particular group, etc.?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top