lotus



previous page: 4B-3: Example login scripts for various Internet providers
  
page up: Windows NT Internet FAQ
  
next page: 4B-5: How do I avoid having to click on the DONE button to complete theslip/ppp connect when using rasphone?

4B-4: How do I automate my slip/ppp login using the switch.infscript language?




Description

This article is from the Windows NT Internet FAQ, by sscoggin@enet.net (Steve Scoggins) with numerous contributions by others.

4B-4: How do I automate my slip/ppp login using the switch.infscript language?

You will need to edit the switch.inf file in winnt35/system32/ras
and add an entry for your slip/ppp login script. The section you
add must have a label followed by your actual script commands.
Reference the rasphone.hlp help file and the pad.inf file in
winnt35/system32/ras for additional information.
The Microsoft NT V3.5 resource kit (when it is released) will
have additional documentation on the switch.inf file and the
script language.

The switch.inf script is as follows:

Substitute your USERNAME, PASSWORD, and IP Address

Note, this script will need to be modified to match your slip
providers login sequence.
;

[Evergreen]
;
; Wait until we get the "username:" prompt
COMMAND=
ERROR_NO_CARRIER=<match>"NO CARRIER"
OK=<match>"ame:"
;
; Give the username and wait for "password:" prompt
COMMAND=username<cr>
ERROR_NO_CARRIER=<match>"NO CARRIER"
OK=<match>"ord:"
;
; Give the password and ignore response (we're done)
COMMAND=password<cr>
ERROR_NO_CARRIER=<match>"NO CARRIER"
; Wait for "Alpine>" send the SLIP command
OK=<match>"ine>"
COMMAND=slip<cr>
ERROR_NO_CARRIER=<match>"NO CARRIER"
; Wait for my IP address
CONNECT=<match>"NNN.NNN.NNN.NNN"
ERROR_DIAGNOSTICS=<cr><lf><Diagnostics>
ERROR_DIAGNOSTICS=<lf><cr><lf><Diagnostics>
;
; CONNECT response means that the connection completed fine.
; ERROR_DIAGNOISTICS response means connection attempt failed
; - the DIAGNOSTIC information will be extracted from the
; response and sent to the user.
;
; ERROR_NO_CARRIER means that the remote modem hung up.
; ERROR responses are for generic failures.
;

RAS PHONEBOOK SETTINGS for a SLIP connection to Evergreen
using Windows NT

	Entryname:			Evergreen
 
	Modem Settings:	
 
	Modem type 			Microcom Deskporte FAST 28.8K
	UART type:			16550 on Com2
	Enable hardware flow control	yes
	Enable modem error control	yes
	Enable modem compression	yes
	Baud rate 			57600
	(use 19200 baud if you do not have a 16550 UART chip for
         your selected COM port)
 
	Network Settings:  SLIP
	Force header compression	yes
	Use default gateway		yes
	Frame Size = 1006 
 
	Security Settings:
	Accept any authentication including clear text	yes
 
	Terminal or Script
	Before Dialing			none
	After Dialing   		Evergreen



 

Continue to:















TOP
previous page: 4B-3: Example login scripts for various Internet providers
  
page up: Windows NT Internet FAQ
  
next page: 4B-5: How do I avoid having to click on the DONE button to complete theslip/ppp connect when using rasphone?