N N U U TTTT I L I TTTT I EEEE SSSS NN N U U T I L I T I E S N NN U U T I L I T I EE SSS N N UU T I LLLL I T I EEEE SSSS The N Utilities Novell Utilities for the Network Administrator To: All Network Administrators From: Darwin Collins, CNE 1216 Hilburn Ct Irving, TX 75060 Home (214) 438-2353 After 7pm CST Work (214) 573-8687 8am - 5pm CST Re: Utilities for Novell Networks! Here are some general but productive utilities for the Network Administrator. They are all designed for interactive/batch use and work with Netware 2.15 or later. (Latest being Netware 3.11). These utilities have been designed to help ease the network administrator in his tasks of maintaining the network. Please support the Shareware concept if these utilities save you measurable amounts of time. Details about registration are on the last page. There are at least 35 utilities documented in this printable text file. Most are written using Microsoft C 6.0 and Netware C Interface for DOS. Also, included are some sample batch/login scripts that illustrate some uses for the utilities. Utilities are described in the following documentation along with the exitlevel codes. Also, using ? as the first parameter when executing a utility will display the syntax options allowed. Utilities marked 'currently unavailable' may be deleted from this readme.txt if it is believed the utility will by difficult to finish or appears to be unneeded. If you do have a utility that you would like to see, then please send a suggestion with your registration fee. If it is feasible to create it, then I will. Caution: It is best that you verify that your source for this shareware (unregistered) package is a system that tries to verify that its downloadable files are unmodified and clean. It is possible that someone may infect these files and/or modify these programs and then redistribute them which then may cause you grieve. Please take adequate precautions. Page 1 NALLCARD NALLCARD This utility will poll all attached workstations for their diagnostic packets. It will display the Top 3 workstations with the most errors, and it will create a ascii data file that has the statistics from all polled workstations. The ascii data file can be imported by a spreadsheet program. Description of diagnostic codes are listed in Appendix A. Returned Exitlevels are: 9 - Syntax error. 8 - User must be logged in. 7 - Unable to access current working subdirectory. 4 - Unable to initialize IPX. 2 - Unable to open (output) report file. 0 - Normal Exit. Page 2 NCARD NCARD [UserName or Connection Number] ei. NCARD get stats of current workstation. NCARD BRENDA get stats at BRENDA's station, or NCARD 34 get stats at Connection # 34. (specify the Connection # if the user has not yet logged into the server.) This utility will display the results from the diagnostic statistics of the specified workstation. It will only display error statistics that are not equal to zero. Description of diagnostic codes are listed in Appendix A. Returned Exitlevels are: 9 - Syntax error. 8 - User must be logged in. 7 - Specified connection is not active. 6 - Unable to access info on specified connection. 0 - Normal Exit. Page 3 NCHGOWN (Supervisor-equilavent needed to run this utility) NCHGOWN Drive:\Subdirectory OldOwnerName NewOwnerName This utility will display/change the Directory/File ownership of the current working subdirectory and all of its subdirectories. Valid ownernames consist of UserNames, GroupNames and ServerNames. It will ask: OLD OWNER NAME to search or NA for deleted owners, or ALL for all owners found in the subdirectories NEW OWNER NAME that the specified Sample usages: Files owned by deleted owners may be re-owned by valid users; correctly document disk space usage by ownership; overcome accounting limitation dealing with deleted users; used with NRPTOWN, to produce an accurate disk space consumption report for administration / documentation purposes; Example: NCHGOWN \APPS\ACAD11 ALL AUTOCAD will change the ownership of all files/directories at \APP\ACAD11 and all its subdirectories to the group owner AUTOCAD. Returned Exitlevels are: 9 - Syntax error. 8 - User must be logged in. 7 - Unable to access current work subdirectory. 6 - Must be supervisor or equivalent. 5 - Operating error. 4 - Unable to access specified subdirectory / not a server subdirectory. 3 - Unable to access subdirectory. 0 - Normal Exit. Page 4 NCHKCSYS NCHKCSYS MinimumFiles MinimumBuffers MinimumEnvironment This utility will read the workstation's (C:\CONFIG.SYS) file and check if the file has the minimum count of items that you specify above. If COMMAND.COM does not exist on Drive C:, it will then attempt to read CONFIG.SYS on Drive A: Sample Usage: Modifying all workstations so that they will re- serve more environment space (needed if your users have alot of SET and/or PATH parameters); ensure that all workstations in the field have the needed minimum conditions to operate safely on the network; to overrule an individual 'fooling' with his workstation; Returned Exitlevels are: 9 - Syntax error. 7 - Error reading CONFIG.SYS 6 - Error writing CONFIG.SYS 5 - Wrote New CONFIG.SYS 4 - Files number increased. 3 - Buffers number increased. 2 - Environment Space number increased. 0 - No changes made to CONFIG.SYS Page 5 NCHKRPRN Brand New! NCHKRPRN PrintServerName ALL To display status of all printers on specified Print Server. NCHKRPRN PrintServerName Printer# To display status of specified printer and specified Print Server. NCHKRPRN CHECK Read the (\PUBLIC\NCHKRPRN.LST) file listing to check if the current workstation should be running RPRINTER. If it is, then report the status of the specified RPRINTER (Not Connected, Change Paper, Ready, ...). If a Print JobName exists in the \NCHKRPRN.LST file for the current station, then start a CAPTURE using the specified Print JobName. This utility will report the current status of the specified printer on the specified Print Server. Also, it can warn the enduser that his printer needs attention, and also return an exitlevel based upon the printer status. (Also, this exitlevel will enable the administrator to modify the flow on the batch file.) The following example will check to see if the current workstation should be running RPRINTER. If it should, then check the status. If RPRINTER is NOT CONNECTED (level: 2), then PAUSE the screen so that the enduser can see the message. Otherwise, if it is not that error, then skip to the rest of the batch file. NCHKRPRN CHECK IF EXITLEVEL 3 GOTO NOPROB IF NOT EXITLEVEL 2 GOTO NOPROB rem Not Connected PAUSE :NOPROB View the file NCHKRPRN.LST, for the correct data format of workstation RPRINTER information. Sample Usages; when setup, it will warn the enduser that he needs to take action (Turn ON Printer, Reboot, ...) for the printer that is directly attached to his station, while running with RPRINTER; Page 6 NCOPYIPX NCOPYIPX WorkStationDrive:\Path\IPX.COM This utility will read the WorkStation's IPX.COM version and configuration information. It will match this against the master on the server, and if the workstation doesn't match, it will copy IPX.COM from the server to the workstation. New on Sept. 19, 1991: This utility will read NCOPYIPX.LST in the current working subdirectory. This list file will contain workstation lan option names, and the pathname that the drivers will be found for the specified driver type. So, hence, you CAN separate drivers that are made by the same manufacturer and/or different driver types made for the same card type. Read NCOPYIPX.LST for syntax of readable text list file. This utility can run as a standalone without the workstation's network drivers loaded.(if needed) Sample usage: Easily! upgrade workstations to different IPX versions (IPX.COM); The current working subdirectory (that this program is called from) must have a structure that is in a PathName \ Interrupt# \ I/O Base \ IPX.COM order. For example: G_ETHERN\IRQ3 G_ETHERN\IRQ3\II G_ETHERN\IRQ5\220h G_ETHERN\IRQ5\240h G_ETHERN\IRQ15\240h G_ETHERN\IRQ15\240h\II NETWORTH\IRQ12\240h NETWORTH\IRQ15\240h NETWORTH\IRQ15\240h\II EtherNet II frame IPX files are in II subdirectory. This utility can read the difference between a normal 802.3 and an EtherNet II type frame. The Ethernet_II framed IPX.COM but be located in the II subdirectory of the interrupt or the IOBase subdirectory. If the driver (IPX.COM) does not exist in the I/O Address subdirectory, then it will look in the Interrupt subdirectory. (So, hence, it will get a Networth Irq=15 IOBase=340h 's IPX.COM from the NETWORTH\IRQ15 subdirectory if NETWORTH\IRQ15\340h does not exist.) This utility has been tested on drivers by: Page 7 3-COM Thin Wire NICs Networth 10BaseT NICs Gateway Thin Wire NICs Western Digital Thin Wire NICs Xircom 10BaseT Adapters What is wonderful about the 16bit cards, is that you set the cards for higher interrupts than 10 to help reduce the possibilities of conflict. Example Setup: in a batch file is: CD F:\SUPPORT\DRIVERS change to driver subdirectory NCOPYIPX C:\NET\IPX.COM execute this utility with it specifying that the workstation drivers are in C:\NET subdirectory. The program will first read the manufacturer, IRQ, and I/O Base from the IPX driver. It will display a message similar to: Workstation Lan Option: Networth ... Path: Networth Irq: IRQ15 Base: 340h so, the program will first look in the subdirectory NETWORTH\IRQ15\340H for the IPX.COM file, if it doesn't find it here then it go to the NETWORTH\IRQ15 subdirectory. These subdirectories (NETWORTH\IRQ15, ...) must be found under the current subdirectory (ei. F:\SUPPORT\DRIVERS in this example) or else a message will be returned that the driver was not found. Returned Error Codes are: 9 - Incorrect or Short Command Line parameter 8 - Workstation IPX.COM not found 7 - Could not read Workstation's temporary IPX 6 - Server IPX.COM not found 5 - Could not write workstation IPX.COM 4 - Could not read Server IPX.COM 3 - Error writing new IPX.COM file 1 - Workstation IPX.COM has been updated 0 - Date/Time stamp same between Server and Workstation Page 8 NCOPYNEW NCOPYNEW Drive:\Path\SourceFileName Drive:\Path\DestFileName This utility will copy contents of SourceFileName to DestFileName, if DestFileName is older than SourceFileName or if DestFileName does not exist. Presently wildcards are not supported. This utility is small enough that it may be called (Shelled) by another program. Sample usages: Distribute newer versions of software that is used on the workstation; distribute memos, files, and other mass distribution; Returned Error Codes are: 9 - Invalid syntax 8 - Could not find the 1st file 7 - Error occurred while accessing 2nd file 6 - Error occurred while writing to 2nd file 1 - 1st FileName copied over 2nd FileName 0 - Date/Time stamp same Page 9 NCOPYSCR NCOPYSCR Drive:\Path\ScriptFile This utility is similar to NCOPYNEW except that it reads a script file instead of the prompt line. A sample script file is provided. If the symbol ! is used before the source path\filename in the script file, then the utility will copy the file to the destination if the date/time stamp is not the same. If no beginning symbol is used, then the normal 'copy if outdated' rule applies. Sample usages: Distribute newer versions of software that is used on the workstation; distribute memos, files, and other mass distribution; Returned Error Codes are: 9 - Syntax Error. 8 - Unable to find Script File. 6 - Error writing destination file. 0 - Normal Exit. Page 10 NCPY2SUB NCPY2SUB Drive:\Path\FileName This utility will copy FileName to all existing subdirectories of the current default subdirectory. Example: current subdirectory: \GRP\DOC NCPY2SUB \USR\SMITH\BLANKMEM.DOC the result will be that BLANKMEM.DOC will be copied to all subdirectories of \GRP\DOC (like \GRP\DOC\AL, \GRP\DOC\BRENDA, \GRP\DOC\CARL, ...) Sample usages: distribution of configuration/document files to individual subdirectories that are below current working subdirectory; Note: This utility in the past was very useful for it was a quick way to copy the PRINTCON.DAT (Print Job Configuration file) to all users but now the utility NMANPCON does a much better job of this. Returned Error Codes are: 9 - Syntax Error. 8 - Unable to find specified file. 6 - Error writing destination file. 0 - Normal Exit. Page 11 NDATEDIR NDATEDIR Drive:\Subdirectory This utility will set all files in the current working subdirectory (or specified in the command line) to the current Date/Time stamp. Sample usages: Files that you want to always to be archived by the backup software; mark document subdirectories with all the same date/time stamp; (specially useful for those important databases that you want to ensure that they are completely backed up even during incremental backup sessions) Returned Error Codes are: 9 - Syntax Error. 8 - Error accessing home subdirectory. 7 - Error accessing specified subdirectory. 0 - Normal Exit. Page 12 NDELFILE NDELFILE Drive:\Path FileMask This utility will delete all files matching the specified FileMask starting at the specified Drive:Path subdirectory and all its nested subdirectories. The FileMask can be composed of Wildcard (?,*) characters. This utility can be used in a batchfile or interactively. If interactive, then typing NDELFILE, alone will display a prompt for the desired subdirectory structure and the specified filemask(filename). If batch, then you will need to type the specified Drive:\Path and FileMask in the command line when executing NDELFILE. Warning! This utility will not verify if the file should or should not be deleted. (It will simply do what you told it). Usages; Delete those .BAK and other backup files that are left by user programs, so to save diskspace; run this process after doing a full backup of the server; run this process if a maintenance robot (ei. NDISK.EXE) finds that diskspace is very low; Returned Error Codes are: 9 - Syntax Error. 7 - Unable to find specified subdirectory. 6 - Encountered error when changing subdirectories 1 - Found no files to delete. 0 - Normal Exit. Page 13 NDELPRNJ NDELPRNJ QueueName UserName This utility will delete all Print Jobs created by UserName. The user executing this utility must have sufficient rights to delete print jobs. If only the QueueName is specified, then all Print Jobs that the user has security rights can be deleted for the specified queue. If the QueueName and UserName is specified, then all Print Jobs for the specified Queue and UserName are deleted. Sample usages: Allow users delete their active print jobs by selecting an option in your menuing system; Delete all hung(Out of Paper, Printer OffLine, ...) PrintJobs so that the Backup Machine (usually after Midnight) may backup the File Server without waiting forever on the queue files to close (so this way, also backing up the queue directory structures); Returned Error Codes are: 9 - Syntax Error. 8 - Must be Logged In. 7 - Unable to find specified queue. 6 - Unable to find specified username. 5 - Insufficent Queue Rights. 4 - Unable to access PrintJob List. 2 - Specified Queue is empty. 1 - Deleted available PrintJobs. 0 - Normal Exit. Page 14 NDISK NDISK Drive: This utility will display the total capacity and available disk space of specified drive. The available disk space will also be returned as an errorlevel in increments of 1 Megabyte (1024 * 1024 bytes). The maximum exitlevel returned is 255. Sample usages: help alert the administrator to low disk space available; placed in a batch file will automatically delete redundant files if disk space is low; Page 15 NDOSVER NDOSVER If errorlevel 5 echo DOS 5 or later found If errorlevel 4 echo DOS 4 or later found if errorlevel 3 echo DOS 3 or later found if errorlevel 2 echo DOS 2 or later found This utility will return the major dos version as a errorlevel exit code. This is useful for batch files that need to call specific programs based on the DOS version. Sample Use: Load the correct version of NETx.COM, Page 16 NEMSMEM NEMSMEM This program will return the amount of Expanded Memory (EMS) available. It will return the amount 10K increments as an ExitLevel. For example, if NEMSMEM found 2304K available, then it will return with an exitlevel of 230. The maximum exitlevel that can be returned is 255. Sample Usages: Insert before a application call in a batch file, and if there isn't enough memory available, then goto the appropriate message in the batch file; Page 17 NEQUA NEQUA ObjectName This utility will return an errorlevel of 0, if the current user is a Security Equivalent of specified ObjectName. ExitLevel 1, if it is not equivalent. Sample Usage: batch files can be tuned to specific types of users; Sample: NEQUA SUPERVISOR IF ERRORLEVEL 1 THEN GOTO (normal user) super-batch-stuff Page 18 NGETTIME NGETTIME This utility will display the current date / time on all attached servers. This will help you decide if you need to run NSETTIME. Returned Error Codes are: 1 - User must be logged in. 0 - Normal Exit. Page 19 NGROUP NGROUP GroupName This utility will return an errorlevle of 0, if the current user is a member of specified GroupName. ExitLevel 1, if it is not a member. Sample Usage: batch files can be tuned to specific types of users; Sample: NGROUP BTRIEVE IF ERRORLEVEL 1 THEN GOTO (normal user) load Brequest other Btrieve specifics Sample: NGROUP ANTIVIRUS IF ERRORLEVEL 1 THEN GOTO (skip this section) run antivirus Page 20 NLIST NLIST /P /P is optional command, it will pause the screen every 25 lines so that you may 'page' thru the output text. The purpose of this utility so that you can get an overview of the status of the servers on your internetwork. It will display the names, netware version, and network address of all servers. It will also give a summary of the connections in use for those servers that you are logged in. This very useful if you have any Hewlett Packard Network Interface cards, or Castelle Print Server equipment, for it will display connections that have defined in PCONSOLE but are not OnLine. For Example, when the utility executes, it sees that you have defined 4 Print Servers on a (logged on) FileServer. It will check to see if those 4 Print Servers are attached to the File Server, and if they are not it will display the Print Server's name on the screen. Exit Codes: 9 - Network driver not loaded or too old. 2 - Could not attach to a File Server. 1 - One or more PrintServers are not attached. 0 - Success Page 21 NLOGADDR NLOGADDR Drive:Path\FileName /N /N is optional command, that will ask the user to type in a 30 character description of this workstation. This utility will get physical address of UserName and insert this information into the specified database FileName. Sample usages: Track login usage at the workstation level; trace program usage by physical station; trace previous logins at work station; track usage of work stations; track workstation conditions; allows the network administrator a quick way to find who had been lately accessing the event by a specific workstation; Example placed in a batch file: NDISK C: IF ERRORLEVEL 2 NLOGADDR F:\WARNINGS\LOWDISK.LST IF C:\WP\WP.EXE NLOGADDR F:\INVENT\WPUSER.TXT The database file is in a fixed format cr/lf text file, so hence the administrator can do searches/lookup using any text editor. DataFile Layout Field Name Length Physical Address 14 Notes 32 Last Login Date 9 Last Login Time 6 Last Login Name 16 Previous Login Date 9 Previous Login Time 6 Previous Login Name 16 2nd Previous Login Date 9 2nd Previous Login Time 6 2nd Previous Login Name 16 Blank Space (20h) 1 Carriage Return (0Dh) 1 Line Feed (0Ah) 1 ============ Total 140 Exit Codes: 9 - Syntax Error. 8 - Could not read/write to Datafile 7 - Could not get workstation physical address 2 - Added Login Time to existing record 1 - Added record for this Physical address Page 22 NLOGEVT NLOGEVT Command Drive:\Path\DataName Command choices: B Begin Date/Time Event for workstation (log to specified DataFile) E End Date/Time Event for current workstation (log to specified DataFile) R Create user (summary and sorted) usage report for specified DataFile. This utility will track usage of events. These events could range anywhere from keeping track of user login time to application utilization. The data will be kept in the specified datafile (random-access fixed-field text-file). This raw file can be view or printed by the network administrator. For example, you may want to keep track of who and how often endusers will execute a specific application. So, in this case you would begin the event (ei: NLOGEVT B APP1) before you execute the application. Then, in your batch file, you would end the event (ei: NLOGEVT E APP1) after you have finished the application. Later, when you view (or do a report) on the specified log file (ei: NLOGEVT R APP1), you would see some usage stats on the User, like: Address Physical Address that the enduser was at when the application was ran. LoginName LoginName of the enduser that accessed the specified event. StartDate Start date of the event for the displayed loginname and station. StartTime Start time of the event for the displayed loginname and station. EndDate End date of the event for the displayed loginname and station. EndTime End time of the event for the displayed loginname and station. Abends Number of times that the enduser rebooted or otherwise did not EndEvent (ei:NLOG E APPNAME) after running the application. Or, another words, the number of times that the utility was told to Begin an event that already had started. Event Count Number of times that an event occurred, hence, the number of times that an enduser had accessed the specified event. Event Amount Total number of hours that the specified event has accumulated. Page 23 NMANPCON Note: Probably you are using that SMODE trick so that you can use a master printcon.dat, but since it different then the standard operating environment, you may already been bit by the weaknesses of the system. Well, this utility allows you to keep using a master file, without applications flaking out on you. Also, this approach allows smart applications using the standard operating environment to capitalize on the individual print job configurations. I mean like why display a PrintJob Names to users that don't have the access to use them, huh? Well, anyone way, this utility is to help big shops standardize. NMANPCON [UserName or GroupName] This is Great ! NMANPCON BRENDA Create new printer configuration file for User BRENDA. NMANPCON EVERYONE Create a new printer configuration file for all users that are a member of group EVERYONE. This utility will first copy the Supervisor's PRINTCON.DAT to specified users, and then for each user, it will remove job configurations that the individual user does not have sufficient security access. (not a member of Queue User). So, hence, if you are using this with the utility NSELPRNJ, you never have to explain about JobNames that the users don't have access to, because they simply aren't displayed. Also, this will enable you to not worry about going through the PRINTCON routine for all your users whenever a new jobname, printer, or other changes are required. Now, just set up the supervisor's (or supervisor equivalent) printcon configuration the way you like it, and then run this utility. All users will then have a correct printcon file. You would need to only run this utility if: . Modified the supervisor's PRINTCON.DAT file and want it to effect other users. If it only effects a specific group, do: NMANPCON GroupName else, if it effects everyone, then do: NMANPCON EVERYONE . Added a new user, and so you want to create the user's PRINTCON.DAT configuration from the master copy. Do: NMANPCON NewUserName and thats it! Page 24 Sample Usages: Make maintaining printcon.dat files a breeze, for you only have to maintain on master copy; used in conjunction with NSELPRNJ makes an easier to use turn-key system; run this utility after creating new users will then result in a printcon.dat file correctly configured for those users; Returned Error Codes are: 9 - Syntax Error. 8 - Must be Logged In. 7 - Unable to access current subdirectory. 6 - Unable to find specified User or Group. 5 - Unable to access server's MAIL subdirectory. 4 - Unable to access supervisor's PRINTCON.DAT file. 3 - Error in Supervisor's PRINTCON.DAT file structure. 0 - Normal Exit. Page 25 NMEM NMEM This small utility will report amount of conventional memory available to programs. It will return an exitlevel by 10K increments. For example, if NMEM says that 250K is available then it will return an exitlevel of 25. Sample Usages: Insert before a application call in a batch file, and if there isn't enough memory available, then goto the appropriate message in the batch file; Page 26 NOPNFILE (Only the Netware 2.x version is working) NOPNFILE [UserName or Connection Number] ei. NOPNFILE BRENDA get stats at BRENDA's station, or NOPNFILE 34 get stats at Connection # 34. NOPNFILE will search the current directory for any open files. This utility will display the files that are open and current access levels. Returned Error Codes are: 9 - Syntax Error. 8 - Must be Logged In. 7 - Must have Console Operator rights. 6 - Specified User not found. 5 - Specified user is not logged in. 4 - Unable to use this utility with Netware 386. 1 - Opened files found. 0 - No Open Files found. Page 27 NRPTBIND NRPTBIND ObjectName Answer if ObjectName is a User, then a User Report is created. Answer Parameter is ignored. ei. NRPTBIND BONNIE for a User Report on user BONNIE if ObjectName is a Group, then a Group Report is created. Answer Parameter is used for question: "Create a UserReport for every member in this Group (Y/N) ?". ei. NRPTBIND AUTOCAD N for a Group Report on group AUTOCAD ei. NRPTBIND AUTOCAD Y for an individual user report for every user that is a member of group AUTOCAD. if ObjectName is a Queue, then a Queue Report is created. Answer Parameter is ignored. ei. NRPTBIND DOC-HPIII for a Queue Report on queue DOC-HPIII if ObjectName is a PrintServer, then a PrintServer Report is created. Answer Parameter is ignored. ei. NRPTBIND TRITON-P for a PrintServer Report about PrintServer named TRITON-P This utility will create a report for individual users, groups, print queues, and print servers depending on the specified command. If it is a User Report, then it will contain Account Information, Direct Trustee Assignments, Group Members, Security Equivalences, and Queue Membership. If it is a Group Report, then it will only contain Direct Trustee Assignments, Group Members and Queue Membership. If it is a Queue Report, then it will contain a Queue Subdirectory, Queue Servers, Queue Operators and Queue Users. If it is a PrintServer Report, then it will contain a list of the PrintServer's operators and users. Configurations for all configured printers, with its defined queue and notify settings. Note: You must a supervisor equivalent to run this report, or else it will only let you run a report on yourself. Sample Usages: Document newly created users/groups/queues; Check status on User access status; Document your LAN; Avoid the trouble of needing to print-screen your settings; Page 28 Returned Error Codes are: 9 - Syntax Error. 8 - Must be Logged In. 7 - Unable to access current subdirectory. 5 - Unable to find specified User / Group. 2 - Error writing Report File. 0 - Normal Exit. Page 29 NRPTCONN (Only the Netware 2.x version is working) NTRPTCONN This utility will display the top 10 workstations with the greatest amount of Total Packet Requests, KBytes Read, and KBytes Written. (1 KBytes = 1024 Bytes). A spreadsheet importable datafile will be written with all workstation info. Then sampling will be taken every 10 seconds, with the top 5 workstations displayed. Press any key to exit utility. User must have Console Operator rights. Usages: Find the workstation(s) that is hogging down server resources; Returned Error Codes are: 9 - Syntax Error. 8 - Must be Logged In. 7 - Unable to access current subdirectory. 6 - Must be a Console Operator. 5 - Error writing Report File. 4 - Can use with Netware 386. 0 - Normal Exit. Page 30 NRPTEQUA (Supervisor-equilavent needed to run this utility) This will create a printable report text file that will list all Users in alphabetical order that have security equivalences to another User. Returned Error Codes are: 9 - Syntax Error. 8 - Must be Logged In. 7 - Unable to access current subdirectory. 6 - Must be a Supervisor-Equivalent. 5 - Error writing Report File. 0 - Normal Exit. Page 31 NRPTIPX (Still working on this) NRPTIPX This utility will listen and display all incoming IPX packets. The source physical, destination physical, and other data is displayed for all packets. 100 samples are accepted before exiting program. ESC will exit program. Usages: Verifying that packets are getting to the workstation; trying to trace babbling workstations; find bad wiring; Page 32 NRPTMHSU NRPTMHSU Drive:\SubDirectory Drive:\Subdirectory would most likely be F:\MHS\MAIL\USERS or similar that points to MHS's mail subdirectories. This utility was created so that the Network Administrator can keep track of message traffic and disk space consumption of MHS mail messages. Especially, since a message can take 4K bytes of disk space, it doesn't take many to result in a diskspace full message. Sample usage is NRPTMHSU H:\MHS\MAIL\USERS Output will consist of: Sent Yesterday Files that have been created in the user's MHS mail directory on the previous date of this utility execution. This utility will also count deleted (but still salvagable files) that existed in this directory. So, hence, the count may be below actual value. Sent Today Files that have been created in the user's MHS mail directory on the same date of this utility execution. This utility will also count deleted (but still salvagable files) that existed in this directory. So, hence, the count may be below actual value. Active Msgs Files that are in the user's MHS mail subdirectory. Filed Msgs Files that are in subdirectories further than the user's MHS mail subdirectory. (For example, additional storage mailboxs created (ei. Futuris RightHandMan) would be counted.) Parcel Files Count of files that are located in the user's MHS parcel (IPARCEL) subdirectory. Deleted files are not counted. DiskSpace K Diskspace consumed in Kilobytes of all counted message and parcel files. Page 33 NRPTPCON NRPTPCON ObjectName if ObjectName is a User, then create a report on the specified user. if ObjectName is a Group, then create a report on all users that are a member of specified Group. ei. NRPTPCON Brenda create a report on Brenda, NRPTPCON MIS create a report for every user in the group MIS. This utility will read the specified User's PRINTCON.DAT and create a printable text file of all printer configuration parameters. Sample usages: Document a User's printer configuration setting; find dissimilar settings among users or groups; Returned Error Codes are: 9 - Syntax Error. 8 - Must be Logged In. 7 - Unable to access current subdirectory. 6 - Specified User / Group does not exist. 5 - Unable to Access \MAIL subdirectory. 4 - User's PRINTCON.DAT file structure is corrupt. 2 - Error writing report file. 0 - Normal Exit. Page 34 NRPTSCRP NRPTSCRP ObjectName if ObjectName is a User, then create a report on the specified user's login script file. if ObjectName is a Group, then create a report on all users that are a member of specified group. if ObjectName is SYSTEM, then create a report on the current server's system login script, and the AUTOEXEC.NCF file. (Current user must be Supervisor-equivalent) ei. NRPTSCRP Brenda create a report on Brenda's personal login script. NRPTSCRP MIS create a login report for every user in the group called MIS. NRPTSCRP SYSTEM create a system report that will document the system login script and also the server's autoexec.ncf batch file. This utility will help you document the system and personal login scripts for your server. Sample Usages: documenting your lan; Returned Error Codes are: 9 - Syntax Error. 8 - Must be Logged In. 7 - Unable to access current subdirectory. 6 - Specified User / Group does not exist. 0 - Normal Exit. Page 35 NRPTOWN NRPTOWN Drive:\Subdirectory This utility will create a report of Disk Consumption sorted by Owner. The report will consist of Disk consumption of the cur- rent working subdirectory (or specified on command line) and all of its subdirectories. Sample Usages: management reports; statistical analysis; tracking causes of low disk space available; notifying groups that their disk usage is too low/high. Returned Error Codes are: 9 - Syntax Error. 8 - Must be Logged In. 7 - Unable to access current subdirectory. 6 - Unable to access specified subdirectory. 5 - Working subdirectory does not exist on Server. 4 - Error while accessing subdirectories. 2 - Error writing report file. 0 - Normal Exit. Page 36 NSELPRNJ NSELPRNJ ei. NSELPRNJ inquire from enduser the desired job configurations for each of the printer ports, ask-to-activate, and ask-to-save to a personal routing 'database' file. NSELPRNJ SET read the enduser's personal routing 'database' file, and activate those print jobname settings. This utility will display a menu for the enduser to select the default print jobname for each of the three printer ports. Setup instructions: . Add the 'Default Printer Routing' in a menu item, with the batch NSELPRNJ. . Add NSELPRNJ SET to your system login script. . Inform users that they can setup their default printer routing by choosing this utility in your menu program. (Also, remind them that they can change these options at anytime.) Installation complete. From now on, when a user logs into the File Server, his choosen printer routings are automatically activated. Sample Usages: administrator no longer has to maintain a personal login script or other manual settings for the enduser; with this, if the enduser is smart enough to pick from a menu, then he can maintain his own printer routing needs!; free administrator from maintaining the endusers' printer routing thru personal login scripts; Returned Error Codes are: 9 - Syntax Error. 8 - Must be Logged In. 7 - Unable to access current subdirectory. 6 - Abnormal User identity. 5 - Insufficent rights or unable to find PRINTCON.DAT in current user's MAIL subdirectory. 4 - User's PRINTCON.DAT file is corrupt. 0 - Normal Exit. Page 37 NSETTIME NSETTIME Note: You must be a Console Operator on the File Server in order to change the Date/Time of the File Servers. This utility will set all attached servers to the same Date / Time as the workstation running this utility. The workstation must be first set to the exact time that you want the servers synchronized for. Returned Error Codes are: 8 - Must be Logged In. 1 - Unable to set the Date/Time on all Servers. 0 - Normal Exit. Page 38 NSUBOWN (Supervisor-equilavent needed to run this utility) NSUBOWN Drive:\PathName This utility will display/change the File owner of all subdirectories below it using the directly below directories name. For instance: Currently at H:\USR, and when using DIR, it will display: ALVIN BETTY CALVIN DENNIS MiscFile Execute this utility by NSUBOWN [return] The utility check if ALVIN is a valid owner name, if it is then it will set ALVIN's subdirectory (and all further be- low) to the owner set to ALVIN. Then, it will check if BETTY is a valid owner name, if it is then it will set BETTY has being the owner of BETTY subdirectory (and all further below). It will do this to DENNIS also. But, if DENNIS does not exist as an Owner, then it will display Does Not Exist, and skip to the next subdirectory. Sample usages: If this is done to the personal subdirectories then it will give a more accurate consumption of disk space when using the NRPTOWN utility; setting files to their correct owner(LoginName, Group, Server) will make them easier to administer. Returned Error Codes are: 9 - Syntax Error. 8 - Must be Logged In. 7 - Unable to access current subdirectory. 6 - Must be a supervisor or equivalent. 5 - Unable to access specified subdirectory. 4 - Subdirectory must exist on Server. 3 - Error accessing subdirectories. 0 - Normal Exit. Page 39 NTRAFFIC NTRAFFIC (This works on Netware 2.x and 3.x !) This utility will first display the Top 10 workstations with the most packets sent/received and error stats, then display the Top 5 most active workstations every 10 seconds. The Top 5 most active list will cycle for 5 minutes or until a keystroke is pressed. Sample Usages: Find the most active workstations; find a workstation that an application babbling on the wire; Returned Error Codes are: 9 - Syntax Error. 8 - Must be Logged In. 7 - Unable to access current subdirectory. 6 - Specified group does not exist. 2 - Error writing report file. 0 - Normal Exit. Page 40 NXMSMEM NXMSMEM This program will return the amount of XMS memory available. (Microsoft's HIMEM.SYS is a XMS memory driver). It will return the amount 10K increments as an ExitLevel. For example, if NXMSMEM found 2304K available, then it will return with an exitlevel of 230. The maximum exitlevel returned is 255. Sample Usages: Insert before a application call in a batch file, and if there isn't enough memory available, then goto the appropriate message in the batch file; if there is enough XMS memory then load the protected version of the application instead of the real mode version; avoid the maintenance headache of keeping multiple AUTOEXEC.BAT and CONFIG.SYS files for different machines; For example: Use it to load the XMSNETx instead of the NETx shell. NXMSMEM if errorlevel 7 XMSNETX NETX Use it load the appropiate version of Informix SmartWare. NXMSMEM if errorlevel 96 goto ProtMode SMART %1%2 goto Next echo Loading in Protected Mode :ProtMode SMARTP %1%2 :Next Page 41 TABLE A: Diagnostic stats include: (NCARD also uses the list below) # stands for 'Number of times that' IPX Total Send Packets # applications called IPX to send a packet. IPX Err Malformed Packets # applications gave IPX a malformed packet. IPX Get ECB Requests # IPX created a Receive ECB for a incoming packet. IPX Err Get ECB Failures # IPX was unable to supply a ECB for an incoming . IPX ECB Listen Count # applications gave IPX a Listen ECB. IPX Err ECB Cancel Failures # IPX was unable to cancel an ECB. IPX AES Events # IPX used AES to schedule an event. IPX Err AES postponed Events # IPX was unable to service an AES event when scheduled. IPX Max Configured Sockets Number of Sockets available as set in configuration. IPX Max Open Sockets Maximum number of concurrently Open Sockets. IPX Err Open Socket Failures # an Open Socket Failure due to either all sockets used or socket was already open. IPX Err Find Route Failures # IPX was not able to find a route to the server. SPX Max Configured Connections Maximum number of Connections available as set in configuration parameters. SPX Max Used Connections Maximum number of concurrently used Connections. SPX Estab Connect Requests # applications have called SPX to establish a Connection. SPX Estab Connect Failures # a connection request failed. SPX Err Listen Connect Failures # applications called SPX to listen for connection requests. SPX Send Sequenced Packets # applications called SPX to send a sequenced packet. SPX Err Windows Chokes # a Send Request failed because the destination station did not allocate a receive buffer. SPX Err Send Failures # applications gave SPX a bad send packet. SPX Err Abort Connections # an application aborted a SPX connection. This is not Page 42 nice for an application to do. SPX ECB Listen Packets # applications gave SPX a Listen ECB. SPX Err ECB Bad Listen Packet # applications gave SPX a malformed packet. SPX Err Receive Duplicate Packets # SPX has discarded a duplicate of a previously received packet. SPX Incoming Packets # the driver gave SPX an incoming packet. SPX Err Bad Incoming Packets # SPX received a packet with an incorrect connection ID. SPX Err No Session Listen ECB # SPX did not have a Connection Listen ECB to accept an incoming Connection Request packet. SPX Err Watchdog Destroy Sessions # the Watchdog process destroyed an invalid connection. Shl Total Shell Requests # the shell sent requests to a File Server. Shl Err Operator Aborts # the User told the shell to 'A'bort the connection when it encountered a network error. Shl Err Operator Retries # the User told the shell to 'R'etry the connection when it encountered a Network error. Shl Err Time Outs (Server TimedOut) # the shell did not a receive a reply from the server. Shl Err Write Error # the driver was unable to send a request (even after several attempts). Shl Err Invalid Reply Header # an unexpected packet was received. Shl Err Invalid Slot # a received packet specified an incorrect connection ID. Shl Err Invalid Sequence # # a received packet specified an incorrect sequence number. Shl Err Receive OverRun # a packet was received before the driver could process it. Shl Err No Router Found # the shell could not find an alternate route to the destination address. Shl Err Being Processed (Server Busy) # the Server replied that it was still processing the previous packet. Shl Err Unknown Error # an unknown error occurred with a received packet. Shl Err Invalid Server Slot # the shell used an invalid connection number according to the server. Shl Err Alloc No Slots Avail # the server replied that it did not have any available connection slots. Page 43 Shl Err Alloc Server is Down # applications specified a file server that is down. Drv Total Tx Packets Number of successfully transmitted packets. Drv Total Rx Packets Number of successfully received packets. Drv Err Tx Retry Count # a packet was resent. (like when a collision occurs) Page 44 [Limited License] This software is copyrighted but a limited license is granted and you are free to use and share it under the following conditions: 1. These programs are not distributed in modified form. 2. Reference to the copyright and author is retained. 3. I do request that if these programs help you in network administration/maintenance, and so hence you monetarily benefit, then send $25 (minimum) to the author. [Registration] A minimum registration fee of $25 (US currency) is: good for all enclosed utilities and additional utilities provided in future. Also, you have permission that all enclosed programs can be used on all legal network servers and workstations at your company, and any legal networks that you have personally installed. One current disk version will be sent to you. Two upgrade disk versions will be sent to you. Note: For each additional $10, two additional upgrade mailings will be sent to you. Note: If you send a detailed map(chart) of your network setup, then you will receive one additional upgrade cycle. Payment Procedure: . Send your business card with current shipping address. . Money Order, Check and Company check are the only forms of accepted registration payment. Cash is okay, but not preferable if you use normal postal methods. If Outside of US, then please send only US Postal Money Orders or cash (securely mailed). . Send above items to : Darwin Collins 1216 Hilburn Ct Irving, Texas 75060 [Warranty] These programs are provided "AS IS" without warranty of any kind, either expressed or implied, including, but not limited to the implied warranties of merchantability and fitness for any purpose. The entire risk as to the quality and performance of this program is with the user and should the program prove defective, the user and not the author will assume all responsibility with correcting all information. The author does not warrant that this program will function in the desired mode or will meet any users requirements or that the operation of the program will be error free. But, You are certainly entitled to complain about Bugs you find in these programs. Page 45