NetWare Command Line Utilities

Command line utilities (commands) that are of greatest use to the average user are ATTACH, CAPTURE, ENDCAP, GRANT, MAP, NPRINT, RENDIR, REVOKE, RIGHTS, SEND, SETPASS, and WHOAMI. For a complete description of these and other NetWare commands, users should consult the "Utilities Reference" NetWare manual.

The following is excerpted from the Utilities Reference manual with some modifications. Commands are ordered alphabetically. Text in italics indicates variables. Square braces ([ ]) around a variable indicates that it is optional. For example:
NPRINT filename [flags]

means that the user should substitute a valid filename for the italicized "filename" when typing in the command. Optional flags, such as NB which means no banner, can also be typed in.


ATTACH

Purpose:
login to additional NetWare file servers after logging into the network. You must have an account on the file server you attempt to attach to or you will be denied access.

Explanation:
NetWare networks can have one or many file servers. The login process typically gives a user access to one file server on the network. To gain access to other file servers, the attach command is used.

Common Usage:
ATTACH fileserver

Example:
Suppose you are logged in to file server TSUGA. Typing in the command:

ATTACH FSDB

will cause the computer to prompt:

Enter Username:


After typing in your username (or GUEST), you will be logged into FSDB if no password is required. If a password is required, you will be prompted for it.


CAPTURE

Purpose:
Redirects printing output from single-user application programs (those not designed to run on a network) away from local printers (ports LPT1 through LPT3) to a shared network printer.

Explanation:
Applications software, such as wordprocessors and spreadsheets, that is written for standalone (single-user) IBM PC's typically send printing output to one of DOS's predefined parallel printing ports, LPT1, LPT2 or LPT3. To get these programs to send their output to network shared printers, the NetWare shell program has to intercept the output and reroute it. The CAPTURE command tells the shell to intercept and reroute output from a particular LPT port until an ENDCAP command is issued.

Common Usage:
CAPTURE [option ...]

Options

CReate=file Capture output to a file. NoBanner Don't print banner page with username. NoFormFeed Disable form feeds at the printer. NoTabs Don't expand tabs (necessary for softfonts) Queue=queuename Queue name for output . Server=server The file server to which output is to be routed. TImeout=n Delay "n" seconds before queing output. Most programs require some delay (eg. n=15) to prevent output from being fragmented by short pauses in output. See the NetWare Command Line Utility Manual for complete list of available options.

Example:
CAPTURE S=TSUGA Q=FSL217C TI=15 NB NT

will cause all printing directed to LPT1 on your workstation to be rerouted to print queue "fsl217c" (the Citoh) on file server TSUGA. Each file will be routed 15 seconds after the last character is received by server TSUGA. The NB option means no banner page will be printed. The NT option indicates no tab expansion is desired (required to use softfonts).



ENDCAP

Purpose:
turn off print redirection set up by the CAPTURE command.

Explanation:
see the CAPTURE command above.

Common Usage:
ENDCAP


GRANT

Purpose:
grant trustee rights to users or groups in a given directory. You must have the Parental trustee right in a directory in order to use GRANT to assign other users trustee rights.

Explanation:
  1. Trustee rights are a security feature of NetWare that permit differing levels of file access to be established for different users on the network. The network supervisor typically sets trustee rights for most of the directories on NetWare file servers but users can also set trustee rights for other users in a given directory as long as they have parental rights in that directory.

Common Usage:
GRANT right TO user or group

Example:
GRANT R F C TO FRED


will give (R)ead, (F)filescan (directory search) and (C)reate rights to user FRED in the current working directory.


MAP

PURPOSE:

Assigns network drive letters to directories, can modify path.

Common Usage:
MAP [drive:=directory]

Explanation:
Letters G through Z can be used in NetWare as shorthand substitutions for directories located on file server disk (network) drives. The MAP command is used to make the substitution assignments.

Examples:
1) Typing in:

MAP

will display all NetWare drive mappings currently established for your workstation.

2) Typing in:

MAP k:=quercus/sys:fred

will "map" the drive letter k: to the NetWare directory SYS:FRED on server Quercus. The drive reference "k:" can be used in place of SYS:FRED within NetWare and some DOS commands.

3) Typing in:

MAP s3:=quercus/user:fred\bin
MAP INS s3:=quercus/user:fred\bin
MAP DEL s3:

allows you to modify your search path. The first example replaces the third element of the path with QUERCUS/USER:FRED\BIN. The second inserts the directory into the third position in the search path (moving all the rest down one). The third example deletes the third element of the search path.


NCOPY

Purpose:
copy one or more files from one network directory to another.

Explanation:
In the words of the NetWare manual, "NCOPY is nearly identical to the DOS COPY command, except that it is considerably faster when copying files between network directories on the same file server." It is also capable of dealing with file server and volume references in source and target names which COPY can not deal with.

Common Usage:
NCOPY source-filename target-filename

Examples:
NCOPY FRED FRED2

will copy the contents of the file FRED into FRED2 in your current working directory.

NCOPY TSUGA/USER:GEORGE\PAM FSDB/USER:PETE\SAM\PAM

will copy the contents of file PAM in directory GEORGE on file server TSUGA volume USER to file PAM in the directory PETE\SAM on file server FSDB volume USER. Note that you must be logged in to both servers for this to work.


NPRINT

Purpose:
print a file on a shared network printer.

Common Usage:
NPRINT file [option ...]

The options for NPRINT are nearly identical to CAPTURE.

Example:
NPRINT memo.txt S=TSUGA Q=fsl217 NB NT


will send the text file memo.txt to the printer attached to print queue "fsl217" on file server TSUGA for printing. The option NB means no banner. The option NT indicates no tab expansion.


RENDIR

Purpose:
rename a directory.

Common Usage:
RENDIR path directory

Example:
RENDIR USER/TEST JUNK


will rename the subdirectory TEST in directory USER to JUNK.


REVOKE

Purpose:
remove trustee rights from users or groups in a given directory. You must have the Parental trustee right in a directory to use REVOKE to remove trustee rights from other users.

Explanation:
see GRANT above.

Common Usage:
REVOKE rights FROM user or group

Example:
REVOKE W FROM SAM


will revoke the write trustee right from user SAM in the current working directory.


RIGHTS

Purpose:
view your effective rights in a given directory.

Explanation:
effective rights are the file access rights you have in a given directory when your individual trustee rights and the directory's access rights are combined. See the "NetWare Concepts" section and the NetWare manual "Getting Started: User's Guide" for a complete description of effective rights.
Common Usage:
RIGHTS
Example:
RIGHTS
will cause the computer to display something similar to:
Your Effective Rights for this directory are [SRWCEMFA]
You have Supervisor Rights to Directory. (S)
May Read from File. (R)
May Write to File. (W)
May Create Subdirectories and Files. (C)
May Erase Directory. (E)
May Modify Directory. (M)
May Scan for Files. (F)
May Change Access Control. (A)


SEND

Purpose:
send a short message to one or more users on the network.

Common Usage:
SEND "message" [TO] user or group

Example:
SEND "hello there" TO nicole


will cause the message "hello there" to display on the 25th line of the workstation user NICOLE is currently logged into. The message stays on the screen until NICOLE clears it with a specified key stroke combination (<ctrl><enter>).


SETPASS

Purpose:
set or change your password on a given file server.

Explanation:
User accounts are usually protected by a password which must be typed in when logging in. It is a good practice to change an account's password from time to time for security reasons. SETPASS lets you quickly change your password from the command line. (The menu utility SYSCON can also be used to change your password.)

Common Usage:
SETPASS [file server name]

Example:
SETPASS


will cause the computer to prompt you for your old password, then the new password you want to change to. The new password must be entered twice for confirmation. At the prompt "Synchronize passwords on these file servers? (Y/N)" choose "Y".


USERLIST

Purpose:
display users currently logged into the network.

Common Usage:
USERLIST

Example:
USERLIST


will cause the computer to display something similar to: Connection User Name Login Time 1 MARK 5-20-88 8:10 am 2 PAM 5-20-88 10:45 am 3 *CAROL 5-20-88 11:30 am the connection with an asterisk is you.


WHOAMI

Purpose:
display information about your network connection.

Common Usage:
WHOAMI

Example:
WHOAMI


will cause the computer to display something like: You are user GAIL attached to server TSUGA connection 2 Login Time: Wednesday June 20, 1988 8:10 am