home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
MNET10.ZIP
/
MakeNet.txt
< prev
Wrap
Text File
|
1992-12-11
|
4KB
|
114 lines
MakeNet v1.01, Copyright 1992, Matthew J. Palcic
MakeNet is a REXX procedure to generate NET.CFG files for an OS/2
workstation using the NetWare Requester. This requires OS/2 with
REXX installed. This procedure can be run as part of a remote
installation.
The MakeNet procedure was written to fill a need for a remote
installation project. This project included the ability to install
OS/2 2.0 GA, the NetWare Requester, and the OS/2 Service Pack (06055)
in approximately 30 minutes.
The need for a consistently generated NET.CFG for varying hardware
configurations was present. I created MakeNet to allow technicians
to easily create a NET.CFG with the required information. Some ODI
drivers want only a port, while others want everything but a port.
For example, the SMC driver needs to know only the I/O port that
a card is using. The Thomas Conrad Arcnet cards need to know only
the memory address and the interrupt; specifying a port can cause
the driver to give unpredictable results.
Out of these situations grew MakeNet. It offers a simple driver
definition system that allows all of your drivers to be defined in
one or more files, while providing a couple of extra goodies. You
can create multiple definition files grouping your drivers by
brand, department, type, etc. (I.E. ETHERNET.NET, SMC.NET, etc.)
MakeNet scans the driver definition file for all driver names. It
then displays a list of those drivers with numbers next to them.
You select the number of the driver you need to use. MakeNet then
prompts for the information required for that driver, or allows
selection of the default value. A simple test is performed to
test the characters entered are valid hex digits.
The default drive for NET.CFG is C:. MakeNet looks at the
environemnt variable 'TargetDrive' which is used by the OS/2
response file installation program. If you need to use a
different drive letter, set the TargetDrive variable or change
the REXX script to your needed default. This variable appears
near the beginning of the procedure.
Syntax:
MakeNet driverfile
Example:
MakeNet drivers.net
The format of the driver file is:
---------------------------------
DRIVER drivername
MEM hexval
PORT hexval
INT default
SAY Something to say on the screen only for this driver
WARN Displayed in red only for this driver
PUT Text to pass to NET.CFG only for this driver
;Comment
DRIVER ...
...
;Comment
SAY Same as above but appears no matter which driver you select
WARN Same as above but appears no matter which driver you select
PUT Same as above but is put in NET.CFG regardless of selected driver
Sample DRIVERS.NET:
-------------------
;Thomas Conrad Arcnet cards in Enhanced mode
Driver TCCARC
warn Be sure you have selected a unique Arcnet node address.
Mem CC000
Int 3
;Western Digital or SMC cards
Driver SMCPLUS
say Be sure to run EZSETUP to properly set the port information.
Port 280
;Additional information for NET.CFG
put
put NetWare Requester
put Preferred Server ADMINET2
License Information
-------------------
This procedure is free. Use it and modify it as needed. Please give
credit to the original author if you modify this procedure. The code
was developed in a manner that should allow new commands to be added
to the driver definition system. A knowledge of REXX is needed.
My hope in distributing this REXX script is to allow more people to
use OS/2 and allow companies to install OS/2 in a more efficient
manner. Look for other useful scripts to appear, and hopefully a
complete remote installation system if certain copyrighted elements
are released for distribution.
Companies interested in my remote installation process can contact:
Personal Computer Systems
5450 Olive Road
Dayton, Ohio 45426
513-837-8486, Fax: 513-837-8286
History
-------
v1.01, 11 Dec 92 - Original release by Matthew Palcic