Solved

Connecting to a remote Server via X.25 using DUN

Posted on 1999-01-26
7
139 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
  • 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
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

In this tutorial I will show you with short command examples how to obtain a packet footprint of all traffic flowing thru your Juniper device running ScreenOS. I do not know the exact firmware requirement, but I think the fprofile command is availab…
When posting a question about a Cisco ASA, Cisco Router or Cisco Switch, it can aid diagnosis if a suitably sanitised copy of the config is provided. It is much better to leave as much of the configuration as original as possible, as it could be tha…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 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