Solved

Connecting to a remote Server via X.25 using DUN

Posted on 1999-01-26
7
140 Views
Last Modified: 2013-12-27
Can anybody give me a sample script for connecting to X25 through Dial Up Networking or point out what needs to be included (I realise X25 will lokk for a Username & Password) but need to know where to put them in a script.
0
Comment
Question by:Penfold
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 12

Expert Comment

by:Otta
ID: 1147758
Use something as simple as MS Kermit (ftp://KERMIT.COLUMBIA.EDU)
and one of its scripts to make the modem "dial" the X.25 access-number,
wait for the 'CONNECT' message, and then wait for the appropriate "prompts", and to supply the responses to the prompts.
0
 

Author Comment

by:Penfold
ID: 1147759
Thanks for the answer Otta, but I'm looking for a bit more info than just the file, such as a walkthrough of a sample script.
0
 
LVL 12

Expert Comment

by:Otta
ID: 1147760
The KERMIT script could be as simple as:

output 'ATDTnnn-nnnn'
input 30 'CONNECT'
input 10 'Login:'
output 'Penfold'
input 5 'Password:'
output 'rumpelstiltskin'

The numbers, e.g., '30', tell KERMIT to wait for '30' seconds
for the string, e.g., 'CONNECT'.

0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:Penfold
ID: 1147761
Otta,
As I said in the Question, I have to use DUN. What is this MSKermit ?
I will give your points for your input so far, but need more information. The type of script I was given is like this
send "\(Hayes)\n"
read 5 "OK"
send "atdt\(Phone)\n"
read 30 "CONNECT"
read 5 "\n"
read 5 "\n"
send "NUI \(X_USER_ID)\n"
read 5 "word"
send "\(X_USER_PASSWORD)\n"
read 5 "tive"
wait 1
send "\016set?2:0,3:0,4:1,12:0,13:0,6:0,1:0\n"
wait 1
send "\(X_ADDRESS)\n"
wait 1

but this scripts seems to stop just after it gets through the X.25 handshake. Any Ideas why ?
0
 
LVL 12

Expert Comment

by:Otta
ID: 1147762
> What is this MSKermit ?

According to: http://www.columbia.edu/kermit/

Kermit software offers a consistent approach to file transfer,
terminal emulation, script programming, and character-set
conversion on hundreds of different hardware and operating-system
platforms, using diverse communication methods.
----------

Since X.25 requires an ASCII terminal, or "terminal-emulation" thereof, KERMIT is the answer.
---------------

The following seems to be a "skeleton" of a script,
needing customization in several places.

> send "\(Hayes)\n"

I think that '(Hayes)' should be replaced by 'AT&F' or by 'AT&F1',
depending on your modem (Rockwell-based or US Robotics).

> read 5 "OK"
> send "atdt\(Phone)\n"

I think that '(Phone)' should be replaced by a 7-digit telephone-number -- the local X.25 dial-up number.

> read 30 "CONNECT"
> read 5 "\n"
> read 5 "\n"
> send "NUI \(X_USER_ID)\n"

The 'NUI' ("Network User ID") command is the X.25-equivalent
of using a credit-card to charge a call.
Replace '(X_USER_ID)' by the value of your NUI.

> read 5 "assword"
> send "\(X_USER_PASSWORD)\n"

Each NUI has an associated "password".

> read 5 "tive"
> wait 1
> send "\016set?2:0,3:0,4:1,12:0,13:0,6:0,1:0\n"

Set various X.25 parameters to some values.

> wait 1
> send "\(X_ADDRESS)\n"

Open an X.25 connection to the host at '(X_ADDRESS)'.

> wait 1



> but this scripts seems to stop just after it gets
> through the X.25 handshake. Any Ideas why?

The script runs out of things to do "automatically".

At this point, your ASCII terminal is "connected", via X.25,
to the remote host, and you need to do whatever that host
wants you to do, i.e., login.

0
 
LVL 12

Accepted Solution

by:
Otta earned 80 total points
ID: 1147763
Please comment as to why you "rejected" my answer.
I'd like to help, but I need more information from you.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6875482
GREETINGS!

This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.  Also in the Community Support link is a question on how experts can help, if they wish, on the cleaning of old and abandoned questions.

http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
http://www.experts-exchange.com/jsp/zonesAll.jsp
 
Thank you,
Moondancer
Moderator @ Experts Exchange
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a how to to configure a UCS Ethernet-uplink portchannel via the console. It is easy to do and can be done quite quickly. In certain versions of the UCS manager the portchannel has issues coming up and this is a workaround. I am…
Hi there, This article summarizes what you need if you are going to set up your home or small business Network Attached Storage (NAS) to be accessible from the internet. Of course there are configuration differences based on your NAS or router ma…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question