Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 144
  • Last Modified:

Connecting to a remote Server via X.25 using DUN

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
Penfold
Asked:
Penfold
  • 4
  • 2
1 Solution
 
OttaCommented:
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
 
PenfoldAuthor Commented:
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
 
OttaCommented:
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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
PenfoldAuthor Commented:
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
 
OttaCommented:
> 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
 
OttaCommented:
Please comment as to why you "rejected" my answer.
I'd like to help, but I need more information from you.
0
 
MoondancerCommented:
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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now