[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference decwet::windows-nt

Title:Windows NT
Notice:See note 15.0 for HCL location
Moderator:TARKIN::LIN.com::FOLEY
Created:Thu Oct 31 1991
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6086
Total number of notes:31449

5826.0. "Automating using switch.inf for a PPP session" by QCAV01::AKILA () Fri Mar 21 1997 00:08

Hi:

	We are able to successfully establish a PPP session
between Windows NT 3.51 and a dec server 900 tm using RAS.
Once dialup is done it brings up a terminal with a local prompt 
and we would have to type in 
Local > c PPP 
to establish a datalink session	.After this we get some junk characters 
and we click on done command button to close the Terminal Window.
To Automate this we changed the  dial script to generic Logon instead of
Terminal,restarted the RAS.
RAS says Postconnecting through Generic Logon but waits indefnitely in 
verifying username and password.
In the switch.inf ,we have the following under generic logon
COMMAND=
OK<Match>="Local>"
loop<ignore>
COMMAND=c PPP<cr>

In the security settings we have 
    Accept any authentication including clear text.
When we change it to Clear Test Terminal Login only ,it
waits after bringing up the Terminal.

Can we do this without bringing up the terminal Window at all?
How do we automate this using switch.inf ?

Pointers are Welcome!
Akila@qca
                                                              



T.RTitleUserPersonal
Name
DateLines
5826.1Try thisGIDDAY::cscds704.stl.dec.com::HarknessMon Mar 24 1997 04:0038
Akila,

Sure is possible, you are 95% there... look at scripts.

Create a script like the one below, and modify the  phone book entry, 
(Script tab, run this script) to point to the newly created file
(fred.scp), this seems to work well...

Just modify this to suit, ie getting passwords interactively or from
the login passwords etc.

Greg Harkness
Sydney CSC.


*************************************************************
proc main
   
   transmit "^M"
   delay 1
   waitfor "#"
   transmit "first_pass"
   transmit "^M"
   waitfor "Username> "
   transmit "Username"
   transmit "^M"
   waitfor "Password> "
   transmit "password"
   transmit "^M"
   waitfor "Local>"
   delay 1
   transmit "c ppp"
   transmit "^M"
   delay 2
   transmit "^M"

endproc
******************************************************