home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / k95 / ras / nt-ras-notes.txt.~1~ < prev    next >
Text File  |  2020-01-01  |  3KB  |  115 lines

  1. These notes apply only to RAS on NT.  
  2.  
  3. [d:\kermit\src]at /?
  4. The AT command schedules commands and programs to run on a computer at
  5. a specified time and date. The Schedule service must be running to use
  6. the AT command.
  7.  
  8. AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]]
  9. AT [\\computername] time [/INTERACTIVE]
  10.     [ /EVERY:date[,...] | /NEXT:date[,...]] "command"
  11.  
  12. \\computername     Specifies a remote computer. Commands are scheduled
  13.                    on the
  14.                    local computer if this parameter is omitted.
  15. id                 Is an identification number assigned to a scheduled
  16.                    command.
  17. /delete            Cancels a scheduled command. If id is omitted, all
  18.                    the
  19.                    scheduled commands on the computer are canceled.
  20. /yes               Used with cancel all jobs command when no further
  21.                    confirmation is desired.
  22. time               Specifies the time when command is to run.
  23. /interactive       Allows the job to interact with the desktop of the
  24.                    user
  25.                    who is logged on at the time the job runs.
  26. /every:date[,...]  Runs the command on each specified day(s) of the
  27.                    week or
  28.                    month. If date is omitted, the current day of the
  29.                    month
  30.                    is assumed.
  31. /next:date[,...]   Runs the specified command on the next occurrence
  32.                    of the
  33.                    day (for example, next Thursday).  If date is
  34.                    omitted, the
  35.                    current day of the month is assumed.
  36. "command"          Is the Windows NT command, or batch program to be
  37.                    run.
  38.  
  39. [d:\kermit\src]rasdial /?
  40. USAGE:
  41.         rasdial entryname [username [password|*]] [/DOMAIN:domain]
  42.                 [/PHONE:phonenumber] [/CALLBACK:callbacknumber]
  43.                 [/PHONEBOOK:phonebookfile] [/PREFIXSUFFIX]
  44.  
  45.         rasdial [entryname] /DISCONNECT
  46.  
  47.         rasdial
  48.  
  49. Command completed successfully.
  50.  
  51. -----
  52.  
  53. These commands are the basis for making automated connections.
  54.  
  55. Unfortunately, there is no good way to ask "do I have a valid
  56. connection?" or "am I already connected to <entryname>?".
  57.  
  58. The tools we do have are:
  59.  
  60.  . ask K95 to SET HOST and check the for success or failure
  61.  
  62.  . RASDIAL <entryname> - if already connected, the port will be in use
  63.    and the command will fail with Error 633.  However, the port could
  64.    be in use for any reason and it will also fail with Error 633.
  65.  
  66.    [d:\kermit\src]rasdial powerpc1
  67.    Connecting to POWERPC1...
  68.  
  69.    Remote Access error 633 - The port is already in use or is not
  70.    configured for Remote Access dial out.
  71.  
  72.    For more help on this error:
  73.         Type 'winhlp32 rasphone.hlp'
  74.         In help, choose Index page and type 'Error 633'
  75.  
  76.  . RASDIAL by itself.  Will report to the screen the current
  77.    connection status.
  78.  
  79.    [d:\kermit\src]rasdial
  80.    Connected to
  81.    PowerPC1
  82.    Command completed successfully.
  83.  
  84.    [d:\kermit\src\]rasdial
  85.    No connections
  86.    Command completed successfully.
  87.  
  88.    However, it does not indicate it at all by the exit status.
  89.  
  90. ---
  91.  
  92. So the best we can do is the following:
  93.  
  94. SET HOST <host>
  95. XIF FAILURE {
  96. RUN RASDIAL <entryname>
  97. XIF SUCCESS {
  98. DEFINE RASCONNECT YES
  99. SET HOST <host>
  100. }
  101. }
  102.  
  103. ... do various things ...
  104.  
  105. SET HOST
  106. XIF DEF RASCONNECT {
  107. RASDIAL <entryname> /DISCONNECT
  108. UDEFINE RASCONNECT
  109. }
  110.  
  111. Unfortunately, it is not possible for us to automate the dialing
  112. process or the creation of the RAS phone book entries.
  113.  
  114.  
  115.