home *** CD-ROM | disk | FTP | other *** search
/ Chip Special: Netware / Chip-Special_1996-08_NetWare_cd2.bin / content / support / token / 3 / tedetect.exe / TEDETECT.TXT < prev   
Encoding:
Text File  |  1995-10-24  |  8.6 KB  |  212 lines

  1.  
  2.      
  3.      
  4.       IF_INTEL.COM, ELSE_INT.COM and END_INT.COM utility programs.
  5.      
  6.      
  7.      
  8.    In PC environments where network adapters from several different vendors 
  9.    are used in DOS workstations, it is possible to use three special utility 
  10.    programs, IF_INTEL.COM, ELSE_INT.COM, and END_INT.COM, to create common 
  11.    CONFIG.SYS and/or AUTOEXEC.BAT files ensuring that the network drivers 
  12.    loaded are appropriate for the adapter in a given PC.  That is, the same 
  13.    CONFIG.SYS and AUTOEXEC.BAT files can be used on machines with different 
  14.    network adapter configurations.
  15.      
  16.    The utility programs check for the presence of a TokenExpress(TM) adapter 
  17.    in a machine.  The three programs work together to form conditional 
  18.    statements of the form "IF a TokenExpress adapter is found, do X, ELSE
  19.    do Y."
  20.      
  21.    Depending on whether you want this type of context-dependent configuration 
  22.    in your CONFIG.SYS or AUTOEXEC.BAT, you should read the corresponding 
  23.    subsection below.  Note that you can use both sections if this matches 
  24.    your needs.
  25.      
  26.    NOTE: In the examples below, comments have been added and should
  27.    not be entered as part of a config.sys file. The comments are prefixed 
  28.    with "--" (quotes not included).
  29.       
  30.    IF_INTEL.COM will not be able to detect the TokenExpress ISA 16/S Plug and 
  31.    Play adapter if Plug and Play is enabled. Plug and Play must be disabled
  32.    on the TokenExpress adapter for IF_INTEL to detect the TokenExpress 
  33.    adapter reliably. Plug and Play support can be disabled on the TokenExpress 
  34.    with TokenSet.
  35.   
  36.    CONFIG.SYS
  37.    ----------
  38.      
  39.    To add a context-dependent configuration to your CONFIG.SYS file, use the 
  40.    "device=" statement to load the IF_INTEL.COM, ELSE_INT.COM, and 
  41.    END_INT.COM files as device drivers.  These files do not take up any 
  42.    memory once the configuration process is complete.
  43.      
  44.    The use of these files is illustrated through the following example, where 
  45.    either a TokenExpress or IBM driver is installed, depending on which 
  46.    adapter card is present in the machine:
  47.      
  48.    device=\if_intel.com         -- Is there a TokenExpress adapter in the PC? 
  49.    device=\olitok16.dos         -- Yes, load the TokenExpress NDIS driver. 
  50.    device=\else_int.com         -- If not, do the following: 
  51.    device=\ibmtok.dos           -- Load IBM's NDIS driver instead. 
  52.    device=\end_int.com          -- End of context-dependent section.
  53.      
  54.      
  55.    Using the ELSE_INT.COM program is optional.  Thus, the following 
  56.    example simply checks if a network adapter is present, and installs the 
  57.    network device drivers only if the adapter is there:
  58.      
  59.    device=\if_intel.com         -- Is there a TokenExpress adapter in the PC? 
  60.    device=\protman.dos /I:\     -- Yes, load the MS Protocol Manager 
  61.    device=\olitok16.dos         -- and the TokenExpress NDIS driver. 
  62.    device=\end_int.com          -- End of context-dependent section.
  63.      
  64.      
  65.      
  66.      
  67.    AUTOEXEC.BAT
  68.    ------------
  69.    To add a context-dependent configuration to your AUTOEXEC.BAT file, use the 
  70.    IF_INTEL.COM program in conjunction with the built-in DOS "IF ERRORLEVEL" 
  71.    conditional.  The IF_INTEL.COM program sets the ERRORLEVEL variable to 
  72.    one if NO TokenExpress adapter is present and to greater than or equal to
  73.    10 if a TokenExpress adapter is found. If a TokenExpress adapter is found, 
  74.    the actual value of ERRORLEVEL is dependent on the adapter type.  In the 
  75.    table below you will find a list of these actual values:
  76.      
  77.      
  78.      
  79.      
  80.     ----------------------------------------------------------
  81.    |                                                          | 
  82.    |  TokenExpress adapter     Type      Value of ERRORLEVEL  | 
  83.    |                                                          |
  84.     ==========================================================
  85.    |                                                          | 
  86.    |      BAD USAGE (accepts no arguments)       0            | 
  87.    |                                                          | 
  88.    |      NONE           -                       1            | 
  89.    |                                                          | 
  90.    |     16/4 Mbps adapters                                   | 
  91.    |                                                          | 
  92.    |     MCLA8330        MCA                     12           | 
  93.    |     EILA8235        EISA 16/4               13           | 
  94.    |     PLCA8130A       ISA 16/s (non Pnp)      15           | 
  95.    |     PCLA8130A       ISA 16/S  (PnP)         16           | 
  96.    |     EILA8245        EISA 32                 30           | 
  97.    |     PLCA8155        TokenExpress PRO        50           | 
  98.    |                                                          | 
  99.    |                                                          |
  100.     ----------------------------------------------------------
  101.      
  102.      
  103.    If you need to distinguish among different TokenExpress adapters use the 
  104.    different values of the ERRORLEVEL variable in conjunction with the 
  105.    built-in DOS "IF ERRORLEVEL" conditional. Please note that the order
  106.    of the "IF ERRORLEVEL" statements is significant as the statement 
  107.    actually tests if ERRORLEVEL is greater than or equal to the specified 
  108.    value.
  109.      
  110.    It is thus important to arrange the test for the various ERRORLEVEL 
  111.    values in descending order.
  112.      
  113.    Please consult the following examples for guidance.
  114.      
  115.      
  116.    Load either IBM or TokenExpress Novell ODI driver 
  117.    ------------------------------------------------------------------------
  118.      
  119.    lsl.com                            -- Novell's Link Support program. 
  120.    IF_INTEL.COM                       -- Check for TokenExpress adapter
  121.                       presence
  122.    if ERRORLEVEL 10 goto is_TE
  123.    if ERRORLEVEL 1 goto is_other
  124.    echo Bad usage.                    -- a help message has been written 
  125.    goto common
  126.      
  127.    :is_TE                            -- Found a TokenExpress adapter! 
  128.    rem Found TokenExpress adapter as expected.
  129.    OCTOK16.COM                        -- Load TokenExpress ODI driver 
  130.    goto common
  131.      
  132.    :is_other                          -- No TokenExpress adapter found! 
  133.    rem NO TokenExpress adapter installed.
  134.    TOKEN.COM                          -- Load IBM ODI driver.
  135.      
  136.    :common
  137.    rem only the MAC driver is hardware dependent
  138.    ipxodi.com                         -- Load the IPX protocol. 
  139.    netx.exe                           -- Load the NetWare DOS shell.
  140.      
  141.      
  142.      
  143.    Loading the optimal DOS ODI driver for a TokenExpress 16/4 adapter: 
  144.    ------------------------------------------------------------------------
  145.      
  146.    lsl.com                               -- Novell's Link Support program. 
  147.    IF_INTEL.COM
  148.    if ERRORLEVEL 10 goto intel
  149.    if ERRORLEVEL 1 goto common
  150.    echo BAD USAGE.                       -- a help message has been written 
  151.    goto common
  152.      
  153.    :intel
  154.    if ERRORLEVEL 41 goto common          -- no ODI driver for 4Mbps adapters 
  155.    if ERRORLEVEL 30 goto oc3135
  156.    \TokenExpress\OCTOK16.COM             -- Load default ODI driver 
  157.    goto common
  158.      
  159.    :oc3135                               -- Load default ODI driver 
  160.    \TokenExpress\OCTOK16.COM
  161.      
  162.    :common
  163.    ipxodi.com                            -- Load the IPX protocol. 
  164.    netx.exe                              -- Load the NetWare DOS shell.
  165.      
  166.      
  167.    Distinguishing all TokenExpress adapters: 
  168.    ------------------------------------------------------------------------
  169.      
  170.    @echo off
  171.    if_intel.com
  172.    if ERRORLEVEL 50 goto tx_tpro    
  173.    if ERRORLEVEL 30 goto tx_3135        -- remember to test for greatest 
  174.    if ERRORLEVEL 16 goto tx_3118    
  175.    if ERRORLEVEL 15 goto tx_3117        -- value first as explained above. 
  176.    if ERRORLEVEL 13 goto tx_3133
  177.    if ERRORLEVEL 12 goto tx_3129
  178.    if ERRORLEVEL 1 goto no_TE
  179.    echo Bad usage.                       -- a help message has been written 
  180.    goto common
  181.      
  182.    :no_TE
  183.    echo NO TokenExpress adapter installed. 
  184.    goto common
  185.      
  186.    :tx_3129
  187.    echo Found TokenExpress MCLA8330 MCA adapter. 
  188.    goto common
  189.      
  190.    :tx_3133
  191.    echo Found TokenExpress EILA8235 EISA adapter. 
  192.    goto common
  193.      
  194.    :tx_3118
  195.    echo Found TokenExpress PCLA8130A ISA PnP adapter. 
  196.    goto common
  197.  
  198.    :tx_3117
  199.    echo Found TokenExpress PCLA8130A ISA adapter. 
  200.    goto common
  201.      
  202.    :tx_3135
  203.    echo Found TokenExpress EILA8245 Server EISA adapter. 
  204.    goto common
  205.      
  206.    :tx_tpro
  207.    echo Found TokenExpress MCLA8330 MCA adapter. 
  208.    goto common
  209.    :common
  210.      
  211.      
  212.