home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / lan / newnode / newnode.doc < prev   
Text File  |  1988-02-06  |  2KB  |  57 lines

  1. Name    NEWNODE.COM
  2.  
  3. Purpose Reports the node (physical) address of the network interface
  4.         card, as set when the Novell NetWare Shell was first run.  This
  5.         can be used to run a diskless workstation as a database server,
  6.         communication server, bridge or other non-operator controlled
  7.         function without logging into the network.
  8.  
  9. Format  NEWNODE <enter>
  10.  
  11. Remarks NEWNODE is a short command that when used alone will report
  12.         the node or physical address of the network interface card in
  13.         Hexidecimal, then convert the last two hex digits to decimal. 
  14.         This converted number can be used in the DOS Batch Command
  15.         IF ERRORLEVEL to cause the batch file to branch to a specific
  16.         function for that station.
  17.  
  18.         If the NetWare shell hasn't been loaded, or if the program is
  19.         run on a Non-dedicated File Server, the program will display an
  20.         error message, and will return a 1 to the IF ERRORLEVEL. 
  21.         Note that a physical address of 1 will also return a 1.
  22.  
  23.         For example:
  24.  
  25.               C>NEWNODE
  26.  
  27.               The node address of this station is
  28.               006B004C55A4 hexidecimal, or 164 decimal.
  29.  
  30.         or
  31.  
  32.               C>NEWNODE
  33.               The node address of this station is
  34.               OOPS! The NetWare shell returned a 0, So you either
  35.               don't have the shell loaded or you are at a non-dedicated
  36.               server, or you don't have a network card!
  37.  
  38.         This could be used in a batch file as follows:
  39.  
  40.               ECHO OFF
  41.               NEWNODE
  42.               IF ERRORLEVEL 165 GOTO OTHERS
  43.               IF ERRORLEVEL 164 GOTO COMMS
  44.               IF ERRORLEVEL 2 GOTO OTHERS
  45.               IF ERRORLEVEL 1 GOTO 1
  46.               :COMMS
  47.               ECHO THE COMMS ROUTINE STARTS A COMMSERVER
  48.               GOTO END
  49.               :OTHERS
  50.               ECHO ALL OTHER STATIONS GO HERE
  51.               GOTO END
  52.               :1
  53.               ECHO RETURNS 1, SO AN ERROR OCCURRED,
  54.               GOTO END
  55.               :END
  56.               ECHO ALL DONE
  57.