home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / MNET10.ZIP / MakeNet.txt < prev   
Text File  |  1992-12-11  |  4KB  |  114 lines

  1. MakeNet v1.01, Copyright 1992, Matthew J. Palcic
  2.  
  3. MakeNet is a REXX procedure to generate NET.CFG files for an OS/2
  4. workstation using the NetWare Requester.  This requires OS/2 with
  5. REXX installed.  This procedure can be run as part of a remote
  6. installation.
  7.  
  8. The MakeNet procedure was written to fill a need for a remote
  9. installation project.  This project included the ability to install
  10. OS/2 2.0 GA, the NetWare Requester, and the OS/2 Service Pack (06055)
  11. in approximately 30 minutes.
  12.  
  13. The need for a consistently generated NET.CFG for varying hardware
  14. configurations was present.  I created MakeNet to allow technicians
  15. to easily create a NET.CFG with the required information.  Some ODI
  16. drivers want only a port, while others want everything but a port.
  17. For example, the SMC driver needs to know only the I/O port that
  18. a card is using.  The Thomas Conrad Arcnet cards need to know only
  19. the memory address and the interrupt; specifying a port can cause
  20. the driver to give unpredictable results.
  21.  
  22. Out of these situations grew MakeNet.  It offers a simple driver
  23. definition system that allows all of your drivers to be defined in
  24. one or more files, while providing a couple of extra goodies.  You
  25. can create multiple definition files grouping your drivers by
  26. brand, department, type, etc.  (I.E. ETHERNET.NET, SMC.NET, etc.)
  27.  
  28. MakeNet scans the driver definition file for all driver names.  It
  29. then displays a list of those drivers with numbers next to them.
  30. You select the number of the driver you need to use.  MakeNet then
  31. prompts for the information required for that driver, or allows
  32. selection of the default value.  A simple test is performed to
  33. test the characters entered are valid hex digits.
  34.  
  35. The default drive for NET.CFG is C:.  MakeNet looks at the
  36. environemnt variable 'TargetDrive' which is used by the OS/2
  37. response file installation program.  If you need to use a
  38. different drive letter, set the TargetDrive variable or change
  39. the REXX script to your needed default.  This variable appears
  40. near the beginning of the procedure.
  41.  
  42. Syntax:
  43.   MakeNet driverfile
  44.  
  45. Example:
  46.   MakeNet drivers.net
  47.  
  48. The format of the driver file is:
  49. ---------------------------------
  50.  
  51. DRIVER drivername
  52.   MEM hexval
  53.   PORT hexval
  54.   INT default
  55.   SAY Something to say on the screen only for this driver
  56.   WARN Displayed in red only for this driver
  57.   PUT Text to pass to NET.CFG only for this driver
  58.   ;Comment
  59.  
  60. DRIVER ...
  61.    ...
  62.  
  63. ;Comment
  64. SAY Same as above but appears no matter which driver you select
  65. WARN Same as above but appears no matter which driver you select
  66. PUT Same as above but is put in NET.CFG regardless of selected driver
  67.  
  68.  
  69. Sample DRIVERS.NET:
  70. -------------------
  71.  
  72. ;Thomas Conrad Arcnet cards in Enhanced mode
  73. Driver TCCARC
  74.   warn Be sure you have selected a unique Arcnet node address.
  75.   Mem CC000
  76.   Int 3
  77.  
  78. ;Western Digital or SMC cards
  79. Driver SMCPLUS
  80.   say Be sure to run EZSETUP to properly set the port information.
  81.   Port 280
  82.  
  83. ;Additional information for NET.CFG
  84. put
  85. put NetWare Requester
  86. put   Preferred Server ADMINET2
  87.  
  88.  
  89. License Information
  90. -------------------
  91. This procedure is free.  Use it and modify it as needed.  Please give
  92. credit to the original author if you modify this procedure.  The code
  93. was developed in a manner that should allow new commands to be added
  94. to the driver definition system.  A knowledge of REXX is needed.
  95.  
  96. My hope in distributing this REXX script is to allow more people to
  97. use OS/2 and allow companies to install OS/2 in a more efficient
  98. manner.  Look for other useful scripts to appear, and hopefully a
  99. complete remote installation system if certain copyrighted elements
  100. are released for distribution.
  101.  
  102. Companies interested in my remote installation process can contact:
  103.  
  104.   Personal Computer Systems
  105.   5450 Olive Road
  106.   Dayton, Ohio  45426
  107.  
  108.   513-837-8486, Fax: 513-837-8286
  109.  
  110. History
  111. -------
  112. v1.01,  11 Dec 92 - Original release by Matthew Palcic
  113.  
  114.