Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Microsoft Network Client Version 2.2: User's Guide for MS-DOS Clients > Chapter 5 Enhanced Reference

Command and Utility Summary

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

The following lists describe the LAN Manager Enhanced commands and utilities.

Using the Network

To

Use this command

Log on

net logon

Log off

net logoff

Change your password

net password

Start the LAN Manager screen

net

Assign a drive letter to your home directory on a server

net use

Connect to a shared resource

net use

Disconnect from a shared resource

net use

Copy files from a source to a destination

net copy

Move files from a source to a destination

net move

Run a program or command on a LAN Manager OS/2 or UNIX system server

netrun

Send a message or short file to other users on the network

net send

Control print jobs

net print

Synchronize your workstation clock with the server or domain clock

net time

Load a different network protocol

load*

Bind a protocol that has been loaded statically

net bind*

Unload a network protocol (breaking any connections that use it)

unload*

Enable a workstation to emulate a terminal

kermit**

Access resources across a gateway (TCP/IP to TCP/ IP)

addname*

Print jobs on a shared printer using LaserTools PrintCache software

clipcach**

Print jobs on a shared printer using the MS-DOS print command

clispool**

Print jobs on a shared printer without using a server to spool the jobs

printsta

Flush the print spooler, releasing a print job that has no end-of-job signal

prtsc*

Start NetWare using LAN Manager NetWare Connectivity

nwload*

Stop NetWare using LAN Manager NetWare Connectivity

nwunload**

*This is a utility.

**These commands are only available when you have a LAN Manager for UNIX Systems server on your network.

Getting Information

To

Use this command

Get general Help

net help

Get Help for a specific command

net help command

See an explanation of an error message

net helpmsg

See the time and date (on the server or domain)

net time

Learn what servers are available

net view

Learn what resources are shared on a server

net view

Learn who is logged on a LAN Manager network

net who

Get information about a user on a LAN Manager network

net who

Learn about a shared printer queue

net print

Learn what settings are in effect for the Workstation service

net config workstation

Get Help with message logging

net log

See which version of LAN Manager is running

net version

Learn what workstation connections are in effect

net use

Learn which services are currently running on the workstation

net start

Get a list of the workstation's aliases

net name

Working with Services

To

Use this command

Start a service

net start service

Pause a service

net pause

Continue a service

net continue

Stop a service

net stop

Change settings for a service

net config workstation

Other

To

Use this command

Change a user's permissions for a directory or file on a LAN Manager server

net access

Add or delete aliases on a workstation

net name

Control message logging

net log

Check physical network connections (TCP/IP)

ping**

*This is a utility.

Using UNIX System Commands

Table 5-1 Title not available (Command and Utility Summary)

To

Use this command

Change a user's permissions for a directory or file

uchmod*

Convert a UNIX System text file to MS-DOS

ud*

List files or directories, and display UNIX System access permissions

udir*

Rename or move a file using the UNIX operating system

uren*

Run a command or program on a LAN Manager server

netrun

 

*These commands are only available when you have a LAN Manager for UNIX Systems server on your network.

Getting Help from the Command Line

Several types of Help are available:

To get a list of commands and topics for which Help is available

  • Type net help.

To display detailed information about a command

  • Type net help command.

To display a command's options

  • Type net help command /options.

To display a command's syntax

  • Type net command /?.

For more information about getting Help with commands, see "Net Help," later in this chapter.

Getting Help with Error Messages

When an error occurs while you are using LAN Manager Enhanced, a message box appears that describes the error. To get Help with an error that is displayed while you are using the LAN Manager screen, press F1 while the message box is displayed. To get Help with an error from the command line, type net helpmsg and the number of the message you see in the message box.

To get Help with an error message

  • Type net helpmsg message#, where message# is the number associated with the error message.

For more information about getting Help with an error, see "Net Helpmsg," later in this chapter.

Addname

Purpose

The addname utility lets TCP/IP users access resources of a server on a different TCP/IP network, using a network gateway.

Syntax

addname computername
ipaddressaddname computername/deleteaddname /load | /save [filename]

where

computername

Is the name of the remote server whose entry you want to add or delete. Computernames can have as many as 8 characters (plus the .SERVE extension for LAN Manager for UNIX Systems servers). These computernames do not affect the assignment of any local computername or username.

ipaddress

Is the IP address that corresponds to computername. If the computername is stored in the LMHOSTS file, the new IP address temporarily replaces the existing IP address.

/delete

Deletes the specified computername from the workstation's list of current entries but not from the LMHOSTS file.

/load

Loads a set of entries from the specified file. All current entries are deleted, and all entries in the specified file are added. If there is not enough room for all new entries in the file, an error is reported, and no changes are made to the list of current entries. If you don't specify a filename, the default LMHOSTS file is used.

/save

Stores the list of current entries in the specified file. All entries in the file are overwritten by the current entries. If you don't specify a filename, the default LMHOSTS file is used. To delete an entry from the default addname configuration file, use addname /save after deleting the entry.

filename

Specifies the name of the file to load or save.

When you type addname with no options, the list of current addname entries is displayed.

Comments

When your computer is configured as a LAN Manager workstation using TCP/IP, you can use the addname utility to access the resources of a server on another TCP/IP network accessible through a network gateway. The addname utility matches remote servernames to their IP addresses.

The addname utility temporarily adds entries to your workstation's memory. These entries are deleted when you unload TCP/IP from memory or when you restart your computer. To save the entries in the LMHOSTS file, use the /save option.

The addname utility can be used only when the TCP/IP software and the NetBIOS network software are loaded into your workstation's memory. You can add as many as four entries using addname.

Examples

  • To temporarily add the server FLAMINGO, whose IP address is 15.6.127.8, type:

    addname flamingo 15.6.127.8

  • To see the list of current entries, type:

    addname

  • To save the list of current entries in the LMHOSTS file, type:

    addname /save

  • To delete the server FLAMINGO from the LMHOSTS file, type:

    addname flamingo /delete

  • To load new entries from the file A:\uSER\MYHOSTS, type:

    addname /load a:\user\myhosts

This command deletes all existing entries before adding all entries from A:\uSER\MYHOSTS. If there are more than 63 entries in A:\uSER\MYHOSTS, an error occurs, and no changes are made to the list of current entries.

Clipcach

Purpose

The clipcach command enables an MS-DOS workstation to receive network print jobs from a server and to print these jobs on a shared printer physically connected to the workstation, using the LaserTools PrintCache software. This command is only available when you have a LAN Manager for UNIX Systems server on your network.

Syntax

clipcach /i /s:driveid [any | \\servername] [ /d | /e]

clipcach [any | \\servername] [/d | /e]

where

/i

Loads clipcach into memory. To load clipcach, use this option only after you boot the workstation.

/s:driveid

Specifies the drive ID that clipcach will use to link to its spool directory on the server. Replace driveid with the intended drive ID. To load clipcach, use this option only after you boot the workstation. Do not add the colon after the drive ID, for example, enter only N for driveid.

any

Allows clipcach to accept print requests from any server. Unless you specify otherwise, any is the default when you load clipcach.

servername

Represents the name of the server from which clipcach will accept print requests. Replace servername with the name of the intended server. The servername must contain a maximum of 8 characters plus the .serve extension.

/d

Temporarily disables clipcach. Network print jobs will be submitted to the queue, but will not print while clipcach is disabled. The printer can continue to be used locally, however.

/e

Re-enables clipcach. Network print jobs will now be printed.

Comments

Clipcach is an MS-DOS terminate-and-stay-resident (TSR) program that runs on the workstation to which a shared printer is connected. clipcach requires that the LaserTools PrintCache software be installed and loaded on the workstation to which the printer is connected. To receive print jobs from a server, clipcach automatically links to a shared spool directory on the server.

Placing PrintCache in raw or cooked mode is accomplished by using command-line switches to the PrintCache print command. In raw mode, tabs are not expanded and ^Z is not interpreted as the end of the file. In most cases, raw mode is acceptable for printing text files. Graphics files will not print while PrintCache is in cooked mode. Cooked mode may be required occasionally to print text files containing tabs if neither the printer nor the application generating the print job expands tabs. See the LaserTools PrintCache manual for more information.

Examples

  • To start the clipcach program automatically and use the N: drive, add the following line to your AUTOEXEC.BAT file:

    clipcach /i /s:N

  • A shared printer is attached to your workstation and you want to use it locally. To do this you disable clipcach by typing:

    clipcach /d

    With clipcach disabled, you can use your printer locally. Network print jobs will be submitted to the queue on the server but will only be printed while clipcach is enabled.

  • When you are done using the printer locally, and want it to be used over the network, you enable clipcach by typing:

    clipcach /e

    Network print jobs will now be printed.

  • The shared printer attached to your workstation accepts print jobs from all the servers on your local area network. One of your coworkers needs to print out several files as soon as possible. Your coworker will be sending these print requests from the server PRINT1.SERVE. To make sure that his or her files are printed in a timely manner, you allow the shared printer to accept requests from the PRINT1.SERVE server only by typing:

    clipcach \\print1.serve u

  • Once the files have printed, you once again allow the shared printer to accept print requests from all of the servers on the local area network by typing:

    clipcach any

See Also

For information about

See

Using clipcach

Chapter 3, "Using Shared Printers"

Other print spoolers

Clispool, Printsta

Clispool

Purpose

The clispool command enables an MS-DOS workstation to receive network print jobs from a server and to print these jobs on a shared printer physically connected to the workstation, using the MS-DOS print command. This command is only available when you have a LAN Manager for UNIX Systems server on your network.

Syntax

clispool /i /s:driveid [any | \\servername] [/r | /c] [/d | /e]

where

/i

Loads clispool into memory. To load clispool, use this option only after you boot the workstation.

/s:driveid

Specifies the drive ID that clispool will use to link to its spool directory on the server. Replace driveid with the intended drive ID. To load clispool, use this option only after you boot the workstation. Do not add a colon after the drive ID; for example, enter only N for driveid.

any

Allows clispool to accept print requests from any server. Unless you specify otherwise, any is the default when you load clispool.

servername

Represents the name of the server from which clispool will accept print requests. Replace servername with the name of the intended server. The servername must contain a maximum of 8 characters plus the .SERVE extension.

/r

Places the MS-DOS print command into raw mode, which permits the printing of graphics files. In raw mode, tabs are not expanded and ^Z is not interpreted as the end of the file. In most cases, raw mode also is acceptable for printing text files, since tabs in text files are usually expanded by the printer or the application generating the print job. Unless you specify otherwise, raw mode is the default whenever you load clispool.

/c

Places the MS-DOS print command into cooked mode. In cooked mode, tabs are expanded, and ^Z is interpreted as the end of the file. Graphics files will not print while print is in cooked mode. Cooked mode may be required occasionally to print text files containing tabs if neither the printer nor the application generating the print job expands tabs.

/d

Temporarily disables clispool. Network print jobs will be submitted to the queue but will not print while clispool is disabled. The printer can continue to be used locally, however.

/e

Re-enables clispool. Network print jobs will now be printed.

Comments

To access the clispool command, first link to the appropriate shared directory. This command is stored in the DOSUTIL shared directory on a LAN Manager for UNIX Systems server. To perform this command, you must first link to this shared directory as in the following example:

net use d: \\server1.serve\dosutil

Clispool is an MS-DOS terminate-and-stay-resident (TSR) program that runs on the workstation to which a shared printer is connected. Clispool requires that the MS-DOS print command be installed and loaded on the workstation to which the printer is connected. To receive print jobs from a server, clispool automatically links to a shared spool directory on the server.

Examples

  • To start the clispool program automatically and use the N: drive, add the following line to your AUTOEXEC.BAT file:

    clispool /i /s:N u

  • A shared printer is attached to your workstation and you want to use it locally. To do this you disable clispool by typing:

    clispool /d

  • With clispool disabled, you can use your printer locally. Network print jobs will be submitted to the printer's queue but will only be printed while clispool is enabled.

  • When you are done using the printer locally and want it to be used over the network, you enable clispool by typing:

    clispool /e

    Network print jobs will now be printed.

  • The shared printer attached to your workstation accepts print jobs from all the servers on your local area network. One of your coworkers needs to print out several files as soon as possible. Your coworker will be sending these print requests from the server PRINT1.SERVE. To make sure that his files are printed in a timely manner, you allow the shared printer to accept requests from the PRINT1.SERVE server only by typing:

    clispool \\print1.serve u

  • Once the files have printed, you once again allow the shared printer to accept print requests from all of the servers on the local area network by typing:

    clispool any

See Also

For information about

See

Using clispool

Chapter 3, "Using Shared Printers"

Other print spoolers

Clipcach, Printsta

Kermit

Purpose

The kermit command enables an MS-DOS workstation to emulate a terminal in order to log on to a UNIX system host computer, upload and download files with a host that is also running Kermit, or exchange files with another workstation running the Kermit terminal emulator. This command is only available when you have a LAN Manager for UNIX Systems server on your network.

Syntax

kermit [command, ... ]

where command is any valid Kermit command.

Comments

To access the kermit command, first link to the appropriate shared directory. This command is stored in the DOSUTIL shared directory on a LAN Manager for UNIX Systems server. To perform this command, you must first link to this shared directory as in the following example:

net use d: \\server1.serve\dosutil

The kermit command is a full-featured terminal emulator and file transfer utility. For more information on Kermit, see Appendix C, "Connecting to a LAN Manager for UNIX Systems Server." For a complete description of all the options and features, see your Kermit documentation. The functions provided by Kermit allow you to:

  • Create and use Kermit command scripts to automatically log on and transfer files.

  • Redefine the keyboard so that any key can send any character or string while you communicate with a host computer.

  • Define Kermit command macros.

  • Start Kermit and execute Kermit commands from a batch file.

  • Transfer files between two workstations running Kermit, and execute certain MS-DOS commands remotely between the workstations.

  • Use Kermit over the local area network or over a serial port.

  • Change the type of terminal Kermit emulates, and set terminal attributes.

  • Use your printer from Kermit.

  • Customize the colors in the Kermit screen.

Source code for Kermit on many different computers and operating systems is available from Columbia University, which holds the copyright to the file transfer protocol and to many Kermit implementations.

Load

Purpose

The load utility loads the specified protocol on workstations using Demand Protocol Architecture (DPA).

Syntax

load protocol [/i]

where

protocol

Is the name of the protocol to be loaded. Information regarding protocols is placed in the PROTOCOL.INI file and in LANMAN\DRIVERS\PROTOCOL by the installation program. You should not edit these files yourself.

/i

Displays a list of protocols and the order in which they were bound.

Comments

By default, the network (and protocol) are specified in the AUTOEXEC.BAT file. The load utility allows you to load protocols as you need them.

Do not use the load utility while running the Microsoft Windows operating system. Either load the protocol before running the Windows operating system, or stop the Windows operating system, load the protocol, and then restart the Windows operating system.

You may need to load a secondary protocol to access certain network resources. If you were using such a resource when you logged out, and the required protocol is not automatically loaded when you log on again, and you are using the persistent connections feature, you will receive a message that the resource is unavailable. You will be able to reconnect to the resource after you load the required protocol.

NOTE: In order to use DPA to load protocols, the line dynamic = yes must be included in the [protman] section of the PROTOCOL.INI file. Also, in the CONFIG.SYS file, the line specifying the protocols to be used must come before the line that begins device = and contains \protman.dos.

See Also

For information about

See

Other Demand Protocol Architecture utilities

unload

Installing and configuring protocols

Installation Guide for Clients

Net

Purpose

The net command starts the LAN Manager screen.

Syntax

net [/mono]

where /mono improves the quality of the LAN Manager screen on a workstation with a monochrome screen display. Use this option if you have difficulty viewing the LAN Manager screen on your workstation.

Comments

After you type net, the LAN Manager screen appears.

From this screen, you can use menus and dialog boxes to perform network tasks. To exit this screen, select the Exit button from the View menu.

See Also

For information about

See

The LAN Manager screen

Chapter 1, "Getting Started with LAN Manager Enhanced"

Net Access

Purpose

The net access command displays the permissions for using a shared directory or file on a LAN Manager server. It can also be used to change the permissions on LAN Manager servers. The net access command does not work with Windows NT servers.

Note that you must have P permission for a resource to get information about it with net access. For more information, see your network administrator.

Syntax

net access drive:path [/add name:permission[ ...]
net access drive:path [/change name:permission[ ...]
net access drive:path [/grant name:permission[ ...]
net access drive:path [/revoke name:permission[ ...]

where

drive

Is the devicename assigned to a shared directory containing the resource with permissions you want to change. This devicename must be assigned to a shared directory.

path

Is a resource with permissions you want to change.

name

Names one or more users or groups who are to change permissions.

permission

Is one to seven letters (R, W, C, X, D, A, P) representing the types of permissions you want to display or change. See below for the definitions of these letters.

/add

Creates a new set of permissions for a resource that has none assigned. To create more than one user or permission while assigning a new set of permissions, type several name:permission strings separated by spaces. Before you can grant or revoke permissions for that resource, you must create a set of permissions for a resource. To control the resource, give yourself P permission.

/change

Changes one or more users' permissions for a resource. To change more than one user's permission, type several name:permission strings separated by spaces.

/grant

Assigns additional permissions to a resource's existing set. To assign more than one permission, type several name:permission strings separated by spaces.

/revoke

Cancels one or more users' permissions for a resource. To cancel permission for more than one user, type several name:permission strings separated by spaces.

Comments

When your administrator assigns you a home directory (a directory on a server for your personal use) you can control this directory and the files on it so that only certain other users have access to them. You control access to your home directory by granting permissions after you connect to the server where your home directory resides. Permissions control a user's access to a file or directory.

Permissions and what they allow a user to do are as follows:

Permission

Description

R (read)

Read and copy files, and view subdirectories.

W (write)

Make changes to files.

C (create)

Create files and subdirectories.

X (execute)

Run a command or program.

D (delete)

Remove files and subdirectories.

A (attributes)

Change MS-DOS file attributes. For information about file attributes, see your MS-DOS manual(s).

P (permissions)

Assign or alter permissions for a resource. Your administrator initially must give you this permission for a resource. Once you have it, you can use net access to assign permissions, including P permission, to other users or groups. When you create a new file or directory, be sure to assign yourself P permission. Otherwise you are denied further access to the file or directory you just created.

When you use net access, you must specify the devicename assigned to the shared directory and the path of a resource. When you specify a drive (or path) with net access, you get information about a resource's current set of permissions, as shown in the following example:

Resource        Permissions             Permissions 
————————————————————————————————————————————————————————
D:\MASTERDIR
BILLRA:RWCXDAP *USERS:RWCDA
*CORPOP:RWCDA

This lists the resource you specified and gives a two-column list of usernames and groupnames representing those who can use the resource. Groupnames are marked with an asterisk (*). Following each username and groupname is a list of the permissions assigned to the user or group.

You must have P permission for a resource to get information about it with net access.

If you create a new file or directory and want to assign permissions to it, first use the /add option to specify which users and groups have access. Be sure to add yourself (with P permission), or you are denied subsequent access to the new file or directory.

Use the /grant and /revoke options to add and cancel permissions for users and groups. Use the /change option to change existing permissions for a resource.

If you create a file in a directory with permissions, the new file inherits the directory's permissions. Use the net access command only if you want to change the file's permissions.

Examples

  • To view the permissions for the shared directory that connects to the G: devicename, type:

    net access g:

  • To add the user jamesro with read and write permissions to the users on the shared directory that connects to the G: devicename, type:

    net access g: /grant jamesro:rw

See Also

For information about

See

Connecting to shared resources

Net Use

Net Config Workstation

Purpose

The net config workstation command displays the current settings for a workstation.

Syntax

net config workstation

Comments

The net config workstation command displays settings for a workstation, such as the logon domain and the username.

Example

  • To display the current settings for a workstation, type:

    net config workstation

See Also

For information about

See

Controlling and adjusting services

Chapter 1, "Getting Started with LAN Manager Enhanced"

Changing workstation settings when starting the Workstation service

Net Start Workstation

Net Continue

Purpose

The net continue command reactivates services or network connections suspended with the net pause command.

Syntax

net continue {workstation | messenger | netpopup | drdr | prdr}

where

workstation

Continues all workstation connections, including the Messenger and Netpopup services.

messenger

Continues the Messenger service.

netpopup

Continues the Netpopup service. Type minipop instead if your workstation is configured to display messages only when the Windows operating system is running.

drdr

Continues all workstation connections to shared directories.

prdr

Continues all workstation connections to shared printer queues.

Comments

You can abbreviate the net continue command as net cont.

See Also

For information about

See

Pausing and continuing a service or connections using the LAN Manager screen

Chapter 1, "Getting Started with LAN Manager Enhanced"

Pausing a service or network connections

Net Pause

Net Copy

Purpose

The net copy command copies files across the network from a source to a destination.

Syntax

net copy source[+source[+...]] [/a | /b] [destination [/a | /b] [/v]]

where

source

Specifies one or more files, directories, or devicenames to copy. You can specify multiple files by separating filenames with a plus sign (+) or by using MS-DOS wildcard characters.

destination

Specifies to which file, directory, or devicename source copies.

/a

Treats the source or destination as ASCII text.

/b

Treats the source or destination as a binary file.

/v

Verifies that information is properly recorded on the destination disk.

Comments

The net copy command is similar to the MS-DOS copy command, but it is much faster for copying between directories on a server. You don't have to connect to shared directories to use the net copy command. LAN Manager Enhanced makes the connections for you during a copy.

You usually use the net copy command to copy files, but source can also be a directory (to copy all files in the directory), a devicename (such as A:, to copy all files in the current directory of drive A), or the MS-DOS con command (to copy what you type at the keyboard). Destination can be a devicename (such as LPT1:, to copy to the device connected to LPT1) or it can be a network path.

When source is a filename, the file is assumed to be in the current directory on the current drive.

When destination is an existing file, the file is overwritten. If destination is a file that does not already exist, a new file is created. The new file is given the same name, creation date, and creation time as the source file.

When you specify only a drive as the destination, LAN Manager Enhanced copies to the current directory on that drive. When you specify no drive, the source copies to the current drive and directory.

The net copy command creates temporary connections between your workstation and directories shared by other network users as part of the copying process. When you have many connections to shared directories and no remaining drive letters to assign to the temporary connection that net copy needs to create, the net copy command fails. To correct this problem, temporarily end one of your connections before using net copy.

You cannot use the net copy command if you have used any of the switches while setting the MS-DOS environmental variable comspec. You can set the variable with a command such as

set comspec=c:\dos\command.com

However, if you specify any options such as /p or /c, you will be unable to use the net copy command.

Using the /a or /b Option

The /a and /b options perform differently depending on whether they follow source or destination. The /a option is in effect in both cases unless the /b option is specified.

With the /a option the file is treated as ASCII text:

  • When you place /a after source, the copy stops before the first end-of-file character (an invisible character that signifies the end of a file).

  • When you place /a after destination, an end-of-file character is added as the last character of the new file.

With the /b option the file is copied in binary format:

  • When you place /b after source, all end-of-file characters are copied.

  • When you place /b after destination, all but the last end-of-file character are copied.

Using the /v Option

The /v option verifies that copied files are properly recorded. This process slows down the process of the net copy command.

Examples

  • To copy the MAIL.DOC file from the LISTS directory on the \\SALES server to the ADDRESS directory on the \\SALES server, type:

    net copy \\sales\lists\mail.doc \\sales\address

  • To copy all files from the root directory of the G: network drive ID to the root directory of the U: network drive ID, type:

    net copy g: \*.* u:\

See Also

For information about

See

Moving files

Net Move

MS-DOS copy command

MS-DOS manual(s)

Net Help

Purpose

The net help command displays a list of commands, utilities, and topics for which you can get Help. It also provides Help with a specific command or topic.

Syntax

net help [command [/options] | topic]

net command {/help | /?}

where

command

Is the command you need help with. (Don't type net as part of command.)

topic

Is the topic you need help with.

/options

Describes the options of the command you need help with.

/help

Displays the Help text for the command you need help with.

/?

Displays the syntax for the command you need help with.

To view a list of all the commands and topics for which Help is available, type net help without options.

Examples

  • To view a list of all the commands and topics for which Help is available, type:

    net help

  • To view information about the net print command, type:

    net help print

    - Or -

    net print /help

  • To view the syntax for the net print command, type:

    net print /?

  • To view the options available for thenet continue command, type:

    net help continue /options

See Also

For information about

See

Getting Help while using the LAN Manager screen

Chapter 1, "Getting Started with LAN Manager Enhanced"

Getting Help with error messages

Net Helpmsg

Net Helpmsg

Purpose

The net helpmsg command provides Help with a LAN Manager Enhanced error message.

Syntax

net helpmsg message#

where message# is the four-digit number of the LAN Manager Enhanced message that you need help with.

Comments

When a network operation fails, you see a message similar to the following:

NET2182: The requested service has already been started.

LAN Manager Enhanced precedes error-message numbers with NET, but you only have to type the number itself for message#.

The net helpmsg command explains why an error occurred and tells you how to solve the problem.

Example

  • To get Help with LAN Manager Enhanced error message NET2182, type:

    net helpmsg 2182

The error message and Help information appear.

See Also

Getting Help while using the LAN Manager screen

Chapter 1, "Getting Started with LAN Manager Enhanced"

Getting Help with LAN Manager Enhanced commands

Net Help

Net Log

Purpose

The net log command displays or controls information about message logging.

Syntax

net log [drive:path] filename | devicename] [/on | /off]

where

drive:path

Tells where the message log file is stored. Without a drive letter and path, LAN Manager Enhanced assumes the file is stored in the LANMAN.DOS\LOGS directory.

filename

Is the name of the message log file. When filename has a .LOG extension, type only the name, without .LOG. By default, messages are saved in the MESSAGES.LOG file.

devicename

Is the name of a device at your workstation that connects to a printer queue. Devicename can be an LPT devicename (to print messages as they're received) or NUL: (to have no log file at all). If messages are printed, they are not saved in the MESSAGES.LOG file.

/on

Starts message logging.

/off

Stops message logging.

To display information about message logging, type net log without options.

Comments

Message logging is on by default when the Messenger service starts.

The net log command controls the way messages are saved. You can stop and start message logging, change the name of the file that stores the messages, and print messages as they're received.

You can read the message log file with the MS-DOS type command. Use the MS-DOS more command to read the log file one screen at a time.

You can stop message logging with the /off option and still view messages when the Netpopup service is running. When the Netpopup service is stopped and message logging is off, your workstation emits a beep when it receives a message but neither displays nor logs the message.

Instead of storing your messages in a message log, you can print your messages as soon as they arrive. Note that you cannot print and then store messages. Messages that are printed are not stored in the message log.

Examples

  • To see if message logging is on and what the message log filename is, type:

    net log

  • To change the name of the message log file from MESSAGES.LOG to NOVEMBER.LOG, type:

    net log november

  • To print messages directly to the printer attached to LPT1:, type:

    net log lpt1:

See Also

For information about

See

Logging messages

Chapter 4, "Sending and Receiving Messages"

Starting the Messenger service

Net Start Messenger

Net Logoff

Purpose

The net logoff command logs a user off from the network.

Syntax

net logoff

Comments

The net logoff command removes the username and password associated with a workstation from the network. Logging off does not stop the Workstation service. It simply ensures that no unauthorized person can use a username and password to gain access to shared resources. Logging off cancels all of a workstation's connections.

You cannot log off if you are using a shared directory. If you are using a shared directory, you must change to a local drive on your workstation before using net logoff.

See Also

For information about

See

Starting LAN Manager Enhanced

Chapter 1, "Getting Started with LAN Manager Enhanced"

Logging on

Net Logon

Net Logon

Purpose

The net logon command logs a user on to the network and establishes the username, password, and domain for a workstation.

Syntax

net logon [username [password | *]] [/domain:name] [/y]

where

username

Is the name by which you identify yourself on the network. A username can have as many as 20 characters.

password

Is the password for your user account.

*

Produces a password prompt. A password does not appear when you type it at a password prompt.

/domain:name

Logs you on in a domain other than your workstation domain. This domain is called the logon domain.

/y

Answers any prompts that require a yes or no answer with a yes. You must include your username when using the /y option. You can use * for the password when using the /y option.

To be prompted for your username and password, type net logon without options.

Comments

The net logon command uses your username and password to establish a session on the network for your workstation, and grants you access to shared resources. If you are accessing a network with Windows NT Advanced Servers or LAN Manager servers, the username and password also log you on in a domain. Logging on also restores connections that existed at a workstation when the last user logged off, if the persistent connections feature is in use.

Only one user can log on at a workstation at a time. You can use net logon to log on with a different username or to log on in a different domain to a network that supports domains, but you must first log off. If you try to use net logon when someone is already logged on at the workstation, a prompt will ask whether you want to log off. You do not need to issue a separate net logoff command.

NOTE: To view resources on the server, the Windows NT computer or the LAN Manager server running the Netlogon service and the MS-DOS workstation must both run the same protocol (for example, NetBEUI). In addition, to log on, this protocol must be the workstation's designated first protocol.

About Usernames

If you don't specify a username with net logon, LAN Manager Enhanced suggests a username. This username comes from the username entry in the LANMAN.INI file. If the entry is blank, the computername is suggested.

About Passwords

A password is a confidential word that, together with your username, establishes your identity and gives you access to resources. When you log on to the network or connect to a shared resource, your workstation sends the username and password you specify with net logon to a server for verification. The server checks to see whether it has an account for you and whether the logon password you specified matches the password in your account.

LAN Manager Enhanced uses accounts in two ways. Individual servers use accounts to limit access to their resources. In a domain, a server maintains an account for each user. On Windows NT Advanced Servers, you can also use all resources of Windows NT Advanced Server domains that trust the domain you are logged on to. Once you log on, you can use all the resources in the domain to which your account is granted access.

Repeated attempts to log on when you don't remember your password are not recommended. If, after several tries, you have not supplied the correct password, you may be locked out of the account. Locking out protects your account from anyone who may try to guess your password. Your network administrator can remove the lock by re-enabling your account.

If your password is within three weeks of expiring, and your logon requests are handled by a LAN Manager server, LAN Manager warns you to change it. If the password has already expired, you must change the password in order to log on. See the net password command.

About Domains

A domain is a group of workstations on a Windows NT Advanced Server or LAN Manager networks set up by an administrator. When you don't specify a /domain:name, LAN Manager Enhanced logs you on in your workstation domain, which is designated by the domain entry in the LANMAN.INI file.

Your workstation domain probably includes the workstations and servers you most often work with. When you specify a /domain:name, you are logged on in a domain other than your workstation domain. This domain is called the logon domain.

Use the net view command to display servers visible in your workstation domain, the logon domain, and the domains listed in the othdomains entry in the LANMAN.INI file.

When you log on in a domain, you get access to most of the shared resources in the domain. Computers running Workgroup Connections may be grouped into workgroups, which function much like LAN Manager or Windows NT Advanced Server domains.

When you log on there may be a delay while the workstation broadcasts your logon request and waits for a domain controller (a server that validates logon requests) to respond. If no domain controller is available, this delay can last more than 12 seconds. To avoid the delay, you can specify the /domain:standalone option.

Examples

  • To log on in your workstation domain, type:

    net logon

    LAN Manager Enhanced asks you for a username and then asks for a password.

  • To log on with the username felix and be prompted for a password, type:

    net logon felix *

    You see the following display:

    Type your password:

    Your password does not appear when you type it.

  • To log on in the accounting domain with the username felix and the password freddy, type:

    net logon felix freddy /domain:accounting

See Also

For information about

See

Logging on and off

Chapter 1, "Getting Started with LAN Manager Enhanced"

Logging off

Net Logoff

Changing your password

Net Password

Net Move

Purpose

The net move command moves files across the network from a source to a destination.

Syntax

net move source [destination]

where

source

Is the path of one or more files to move. Specify multiple filenames with MS-DOS wildcard characters.

destination

Is the path to which source moves. When you are moving more than one file, destination must be a directory. When you omit destination, files move to the current directory. LAN Manager Enhanced won't overwrite an existing file during a move. If destination is an existing file, the move is canceled.

Comments

Use this command to move files between any two directories you have access to on the network.

Moving a file is different from copying a file. Moving relocates the file; copying makes a duplicate. The moved file is given the date and time that the move occurred.

You can move files between two remote computers. For instance, while working at workstation A, you can move files between servers B and C. You don't have to connect to shared directories to use net move. LAN Manager Enhanced makes the connections for you.

NOTE: When moving files from one shared directory to the root of another shared directory, specify the backslash (\) in the destination. For example:

net move e:\text\*.* f:\.

Example

  • To move all the files in the TEXT directory on drive C to the BUDGET subdirectory in the \\ADMIN server's REPORTS shared directory, type:

    net move c:\text\*.* \\admin\reports\budget

See Also

For information about

See

Copying files

Net Copy

Net Name

Purpose

The net name command adds or deletes a message alias and displays a workstation's list of aliases.

Syntax

net name alias [/add | /delete]

where

alias

Is the alias you want to add or delete. An alias is a name to which you can send messages.

/add

Adds an alias to a workstation. Typing /add is optional; typing net name alias performs the same task.

/delete

Removes an alias from a workstation.

To display a list of aliases in use at a workstation, type net name without options.

Comments

A workstation can have three kinds of aliases, each receiving messages:

  • The workstation's computername, which is added when the Workstation service startsu

  • Your username, which is added when you log on, provided you are not logged on elsewhere on the networku

  • Aliases added with the net name command or through the Aliases option from the Message menu of the LAN Manager screen

Receiving Messages

A workstation can only receive messages when the Messenger service is running. When the Netpopup service is also running, a message box displays messages on your screen. When message logging is on, the message is sent to the message log. When the Netpopup service and message logging are both off, you only hear a beep when your workstation receives a message. In this case, the message is neither saved nor logged in the message log.

A workstation receives messages sent to any of its aliases. A user does not have to be logged on to the workstation for the aliases at the workstation to receive messages.

Adding and Deleting an Alias

You can't add an alias to your workstation if that alias is already in use on the network. Similarly, you can't start the Workstation service with a computername that is in use as an alias at another workstation.

You can log on with a username that is in use elsewhere as an alias, but the username isn't added as an alias to your workstation, and you don't receive messages for that username at your workstation.

Use the /delete option to remove an alias. You can delete any alias in use at your workstation except the computername.

Logging off deletes your username alias. Other aliases on your workstation, including the computername, still receive messages as long as the Workstation service is running.

NOTE: Before you can add new aliases, your administrator may need to make changes to the nummsgnames keyword in the [messenger] section of the LANMAN.INI file.

Examples

  • To view the list of aliases on your workstation, type:

    net name

  • To add the alias juliewo to your workstation, type:

    net name juliewo

  • To remove the alias juliewo from your workstation, type:

    net name juliewo /delete

See Also

For information about

See

Messages

Chapter 4, "Sending and Receiving Messages"

Saving your messages in a file

Net Log

Sending messages

Net Send

Net Password

Purpose

The net password command changes the password for a user account on a server or in a domain.

Syntax

net password [\\computername | /domain:name] username oldpass [newpass | *] ]

where

computername

Is the server with the user account for which the password will change.

/domain:name

Specifies a domain other than the workstation domain in which the password will change.

username

Is your username.

oldpass

Is your current password.

newpass

Is the new password. The new password can have as many as 14 characters.

To be prompted for entries, type net password without options.

Comments

User accounts are set up to control a user's access to shared resources on a server or in a domain. An account includes the username and the password for a user. Accounts perform similar functions on servers and in domains. The difference is that an account in a domain controls access to most of the shared resources on the servers in the domain, rather than just one server's resources.

If you don't supply a computername or a /domain:name, LAN Manager Enhanced assumes you are changing the password for your account in the workstation domain.

On LAN Manager servers, accounts may be set up so that the password expires after a certain length of time, and there may be a limit on how often a given password may be reused. When a password expiration date is approaching or has passed, the LAN Manager server sends a warning message during logon. If a new password is specified that is disallowed because it has been used too recently, a message appears requesting that a different password be used.

Keeping Passwords Confidential

Keep your password confidential by typing an asterisk (*) instead of your password. You are then prompted for your password, which does not appear as you type it at the prompt. When you are changing your password, LAN Manager Enhanced asks for the new password twice to ensure that it is correct.

If you forget your password, see your administrator for a new one. You can then use net password to change the new password to one that you want.

If, after several tries to log on, LAN Manager has not received the correct password, you may be locked out of the account. This protects your account from anyone who may try to guess your password. Your network administrator can remove the lock by re-enabling your account.

Examples

  • To change your password on the \\PRODUCT server from petunia to daffodil (your username is robertch), type:

    net password \\product robertch petunia daffodil

    To make the same change, but have LAN Manager Enhanced prompt you for a new password that won't appear when you type it, type:

    net password \\product robertch petunia *

  • To change your password in your workstation domain from carnation to orchid, type:

    net password robertch carnation orchid

  • To change your password in the accounting domain from magnolia to orchid, type:

    net password /domain:accounting robertch magnolia orchid

See Also

For information about

See

Passwords

Chapter 1, "Getting Started with LAN Manager Enhanced"

Logging on with a password

Net Logon

Net Pause

Purpose

The net pause command pauses services or workstation connections to shared resources.

Syntax

net pause {workstation | messenger | netpopup | drdr | prdr}

where

workstation

Pauses all workstation connections.

messenger

Pauses the Messenger service.

netpopup

Pauses the Netpopup service. Type minipop instead if your workstation is configured to display messages only when the Windows operating system is running.

drdr

Pauses all workstation connections to shared directories.

prdr

Pauses all workstation connections to shared printer queues.

Comments

Pausing your workstation and its connections places them on hold while keeping your username and password active. Reactivate your workstation with the net continue command.

Pausing connections allows you to use a devicename for a device at your workstation instead of for a shared resource. For example, the LPT1: devicename can belong to a shared printer queue for a laser printer. If you also use LPT1: as the devicename for a dot-matrix printer at your workstation, you can pause the network connection and print a quick draft at your desk. To send print jobs back to the shared printer queue, reactivate the connection with the net continue command.

See Also

For information about

See

Continuing a paused service or connection

Net Continue

Stopping the Workstation service

Net Stop

Net Print

Purpose

The net print command displays information about a shared printer queue or controls a user's print jobs.

Syntax

net print {\\computername[\sharename] | devicename}

net print {\\computername | devicename} [job# {/hold | /release | /delete}]

where

computername

Is the name of a server sharing the printer queue(s) you want information about.

\sharename

Is the name of a printer queue you want information about.

devicename

Is the name of a device at your workstation that connects to the printer queue you want information about.

job#

Is an identification number assigned to a queued print job you want to control. Job numbers are unique on a server.

/hold

Suspends a print job. A suspended print job does not print until the /release option reactivates it.

/release

Reactivates a print job that is on hold.

/delete

Cancels a print job.

Comments

The net print command shows you where in a printer queue a print job is. With this command, you can also hold, release, or delete a print job.

Sending a job to a printer queue usually requires connecting to the queue with the net use command, and then submitting the print job through an application. You can also send a job to a queue with net copy or the MS-DOS copy command.

When you specify a computername (for example, \\SALES) with net print, you get information about the shared printer queues on the server with the computername you specify. You don't have to make a connection to a queue to get information about it. The display is similar to the following.

Printer Queues at \\SALES 
Name Job # Size Status
————————————————————————————————————————————————————————
LASER Queue 3 jobs *Queue Active*
JACKST 1 2509 Printing on LPT1
JENNYT 3 75 Waiting
JENNYT 4 75 Waiting
PRT Queue 2 jobs *Queue Active*
BENST 5 180 Printing on LPT2
JOHNOC 6 512 Waiting

The columns in this display give the following information:

Name

The sharename of each printer queue on the server you specified. Listed beneath the sharename are the usernames of people whose print jobs are printing or waiting to print.

Job #

The number of print jobs in each printer queue. Listed beneath the number of jobs is the unique identification number of each job in the queue.

Size

The size of each print job in bytes.

Status

The status of either the printer queue or a print job.

An administrator controls the status of a printer queue. A printer queue's status can be:

Status

Description

Active

Available to receive print jobs

Held

Suspended

Held until

Suspended until the time displayed

Pending delete

Being shut down

Error

Unavailable because of malfunction

The status of a print job can be:

Status

Description

Printing on devicename

Printing on the printer attached to the server's devicename

Spooling

Transferring into the printer queue

Waiting

Waiting for a printer to become available

Held

Held by a user with the /hold option

Held on devicename

Held because an administrator put the queue on hold

Paused

Paused by a user or an administrator

Out of paper on devicename

Stopped because the printer is out of paper

Error on devicename

Stopped because of a malfunction

Offline on devicename

Stopped because the printer is offline

Examples

  • To see the printer queues shared on the \\PRODUCT server, type:

    net print \\product

  • To learn about the DOTM queue on the \\PRODUCT server, type:

    net print \\product\dotm

  • If your workstation's LPT1 devicename attaches to the \\PRODUCT server's LASER queue, display the contents of the queue by typing

    net print lpt1:

    - Or -

    net print \\product\laser

  • To cancel a print job with the job identification number 7 on the \\PRODUCT server that attaches to your workstation's LPT1 devicename, type:

    net print \\product 7 /delete

    - Or -

    net print lpt1: 7 /delete

See Also

For information about

See

Shared printers

Chapter 3, "Using Shared Printers"

Connecting to a printer queue

Net Use

Viewing servers and queues

Net View

Sending an end-of-job signal to a printer

Chapter 3, "Using Shared Printers," and Prtsc

Net Send

Purpose

The net send command sends a message or short file to one or more users on a network.

Syntax

net send {alias | * | /domain[:name] | /broadcast} message

where

alias

Is the username, computername, or other name you want to send a message to. When the alias is a computername that contains blank characters, enclose the alias in quotation marks (" ").

*

Sends a message to all the aliases in your workstation domain.

/domain:name

If you specify name, the message is sent to all the aliases in the specified domain.

/broadcast

Sends a message to all the aliases on the network.

message

Is the text of a message or the complete path of a text file (preceded by <) you want to send.

Comments

Use the net send command to send a message to a single user, to users in a domain, or to all users on the network.

An alias must be logged on, or active on the network to receive a message, and the Messenger service must be running on the receiving workstation. If several local area network adapters are used, the workstation can exchange messages only through the first adapter.

The size of a message that a workstation can receive is limited to 128 characters.

The simplest way to send a message is to type it from the MS-DOS prompt. You can type a longer message (over several lines) by pressing ENTER after net send alias and after each line of text. To send the message, press CTRL+Z or F6, and then press ENTER.

LAN Manager Enhanced provides several ways to broadcast a message, meaning send a message to many users on the network. You can broadcast messages to all the aliases in your workstation domain (use * or /domain), a different domain (use /domain:name), or the entire network (use / broadcast). Broadcast messages must be 128 characters or fewer. Use this feature with discretion.

To send a message that includes a slash mark (/), you must enclose the entire message in quotation marks (" "). Otherwise, LAN Manager assumes the slash mark represents the beginning of a command option. The message is not sent, and you receive the following error message:

NET3506: The option / is unknown.

Examples

  • To send the message "Meeting changed to 3 p.m. Same place." to the alias jackst, type:

    net send jackst Meeting changed to 3 p.m. Same place.

    Another way to type this message is

    net send jackst Meeting changed to 3 p.m. Same place.

    Press ENTER after each line.

    To send this message, press CTRL+Z or F6, and then press ENTER.

  • To send the small text file INVITE.DOC to all the aliases in the legal domain, type:

    net send /domain:legal <invite.doc

  • To inform everyone in your workstation domain that a party is being held in the cafeteria, type:

    net send * There's a party in the cafeteria!

  • To send a message that includes a slash mark, type:

    net send marcia "Format your disk with FORMAT /4"

  • To send a message to the user at the SALES 2 workstation, type:

    net send "sales 2" Meeting in 10 minutes.

See Also

For information about

See

Messages

Chapter 4, "Sending and Receiving Messages"

Saving or printing messages

Net Log

Adding aliases

Net Name

Using the Messenger service

Net Start Messenger

Net Start Encrypt

Purpose

The net start encrypt command causes passwords from MS-DOS workstations to be encoded before they are transmitted across the network.

Syntax

net start encrypt

Comments

The Encrypt service encrypts passwords before sending them across the network. No special setup is required for servers to decode the passwords. Password encryption is embedded in Windows NT and OS/2. MS-DOS workstations send passwords without encryption unless this service is used. By default, the LAN Manager Installer installs the Encrypt service on MS-DOS workstations.

The Encrypt service can be stopped only by stopping the Workstation service.

Net Start Messenger

Purpose

The net start messenger command starts the Messenger service.

Syntax

net start messenger [options]

where

options are as follows:

/logfile:path | device

Assigns a path for the message log file. You can also specify a device, such as LPT1: (to print messages as they arrive) or NUL: (to have no log file at all). The default path for the message log file is LANMAN.DOS\LOGS \MESSAGES.LOG.

/nummsgnames:number

Sets the allowable number of message aliases for a workstation. The range is from 1 to 10 aliases; the default is 2.

/sizmessbuf:bytes

Sets the size, in bytes, of the message buffer, limiting the size of messages a workstation can receive. The range is from 128 through 8192 bytes; the default is 256.

To display a list of services that are running at a workstation, type net start without options.

Comments

The Messenger service must be started for a workstation to receive messages. By default, LAN Manager Enhanced is configured to start the Messenger service when the Workstation service is started.

Do not run the Messenger service on workstations running Norton Commander 3.0. If messages are received at such a workstation, the computer will halt or reboot itself.

You send a message to a workstation's alias with the net send command. LAN Manager Enhanced uses three types of aliases: computernames, usernames, and aliases added with the net name command or through the Aliases option from the Message menu of the LAN Manager screen.

There are two ways a workstation can receive messages sent to its aliases:

  • When the Netpopup and Messenger services are running, a message box displays each message on the workstation's screen.

  • When message logging is on, the incoming message is sent to a message log file or a printer. The net log command controls message logging.

Changes made with the net start messenger command remain in effect only as long as the Messenger service is running. Once started, the Messenger service can be stopped only by stopping the Workstation service.

Example

  • To start the Messenger service with a message buffer of 5120 bytes, type:

    net start messenger /sizmessbuf:5120

See Also

For information about

See

Messages

Chapter 4, "Sending and Receiving Messages"

Logging messages

Net Log

Adding aliases

Net Name

Sending messages

Net Send

Starting the Netpopup service

Net Start Netpopup

Starting the Workstation service

Net Start Workstation

Net Start Netpopup

Purpose

The net start netpopup command starts the Netpopup service.

Syntax

net start netpopup

To display a list of services that are running at a workstation, type net start without options. If your workstation is configured to display messages only when the Windows operating system is running, type net start minipop.

Comments

With the Netpopup service, you can see messages as they arrive at your workstation. The Messenger service must be running for your workstation to receive messages. By default, the Messenger service and the Netpopup (or Minipop) service(s) are configured to start when the Workstation service is started.

Once started, the Netpopup service can be stopped only by stopping the Workstation service.

A message box appears.

A message box disappears after one minute or when you press ESC.

If message logging is on, a message is saved in the message log file. If message logging is off, messages are discarded after they are displayed.

See Also

For information about

See

Messages

Chapter 4, "Sending and Receiving Messages"

Controlling network services

Net Continue, Net Pause, Net Stop

Logging messages

Net Log

Starting the Messenger service

Net Start Messenger

Net Start Workstation

Purpose

The net start workstation command starts the Workstation service.

Syntax

net start workstation [options]

where

options are as follows:

/computername:name

Is a unique name that identifies a workstation on the network. If the computername matches any of the following on the network, the Workstation service does not start:

  • A computername on another workstation.

  • A username on another workstation.

  • A domain name on the network.

  • An alias on the workstation or another workstation.

Computernames can have from 1 through 15 characters, including letters, num bers, and the following symbols:

! # $ % & ' ( ) - . @ ^ _ { } ~

/domain:name

Is the name of a workstation domain. A domain name can have from 1 through 15 characters.

/othdomains:name[,...]

Specifies one or more domains that a workstation belongs to, in addition to the workstation domain. You can specify as many as four domains for a workstation. When you type this option, separate multiple domain names with commas.

/umb:{yes | no}

Determines whether to use upper memory blocks (UMBs) as available (for MS-DOS computers). This overrides any umb setting for this service in the LANMAN.INI file. If /umb is not specified, all available UMBs will be used.

/wrkservices:service[,...]

Lists the LAN Manager Enhanced services you want to start automatically when the Workstation service starts. When you type this option, separate multiple service names with commas. You cannot abbreviate service names.

To display a list of services that are running at a workstation, type net start without options.

Comments

You can abbreviate workstation as wksta, work, redirector, redir, or rdr. You must start the Workstation service to use LAN Manager Enhanced.

The net start workstation command has additional options that are not listed here. For a description of all these options and their values, see the discussion of the [workstation] section of the LANMAN.INI file in the Installation Guide for Clients.

When assigning a computername to start the Workstation service, typing / computername:name is optional; you can also type net start workstation computername.

Example

  • To start a workstation with the computername \\FINANCE and the logon domain legal, type:

    net start workstation finance /domain:legal

See Also

For information about

See

Starting LAN Manager

Chapter 1, "Getting Started with LAN Manager Enhanced"

Pausing the Workstation service

Net Pause

Stopping the Workstation service

Net Stop

Net Stop Workstation

Purpose

The net stop workstation command stops the Workstation service.

Syntax

net stop workstation

Comments

Stopping the Workstation service cancels all network connections the Workstation service is using and logs you off from the network. It also stops all other services that are running.

Stopping the Workstation service differs from pausing the Workstation service. Pausing puts the service on hold and suspends any network connections.

If any protocols were loaded with Demand Protocol Architecture (DPA), they are unloaded before stopping the Workstation service.

Stopping the Workstation service does not remove software from your workstation's memory. LAN Manager Enhanced is a terminate-and-stay- resident (TSR) program, which means that, when the program stops, it stays in a computer's memory. If other TSR programs are loaded into the computer's memory, the net stop workstation command may not work.

See Also

For information about

See

LAN Manager Enhanced services

Chapter 1, "Getting Started with LAN Manager Enhanced"

Starting services

Net Start Messenger, Net Start Netpopup, Net Start Workstation

Demand Protocol Architecture (DPA)

Load, Unload

Net Time

Purpose

The net time command synchronizes a workstation's clock with a server's, or displays the time and date for a server or domain.

Syntax

net time [\\computername | /domain[:name]] [/set]

where

\\computername

Is the name of a server with which you want to check or synchronize a workstation's clock.

/domain[:name]

Specifies that the domain controller is used as the time source. Use name to specify a domain other than the workstation domain.

/set

Synchronizes a workstation's clock with that of a specified server or domain.

To display the current time and date for the server designated as the network's official time source, type net time without options.

Comments

This command provides a way to check whether a workstation's clock is properly synchronized with the clocks on its servers.

Examples

  • To see the time and date for the domain controller for the accounting domain, type:

    net time /domain:accounting

  • To set your workstation's clock to the time and date on the network's designated time server, type:

    net time /set

Net Use

Purpose

The net use command connects a workstation to or disconnects a workstation from a shared resource, or displays information about workstation connections. It also controls the persistent net connections feature.

Syntax

net use [devicename] [\\computername\sharename [password | *]]

net use {devicename | \\computername\sharename} /delete

net use [devicename] [\\computername\sharename [password | *]] /home

net use /persistent:{yes | no | freeze | save}

where

devicename

Assigns a name to a device connected to a shared resource or specifies the disconnecting devicename. LAN Manager Enhanced uses two kinds of devicenames, one type for disk drives (all nonlocal drive letters through the value of lastdrive as defined in the CONFIG.SYS file) and the other type for printers (LPT1: through LPT3:).

computername

Is the name of a server sharing a resource. If the computername contains blank characters, enclose the double backslash (\\) and the computername in quotation marks (" ").

sharename

Is the name of a resource.

password

Is the password needed to use a resource. To be prompted for the password, type an asterisk (*) instead of the password. A password does not appear when you type it at a password prompt.

/delete

Cancels a network connection.

/home

Specifies that the directory is used as a home directory.

/p[ersistent]

Controls the use of persistent network connections. This switch is used alone; it cannot be combined with any other switch, nor can it be used while adding or removing a connection. The default is yes.

yes

Saves all connections as they are made and restores them at next logon.

no

Neither saves nor restores connections at the next logon.

freeze

Stops saving connections but does not overwrite the existing list of connections.

save

Saves your current connections, over writing any previously saved connections. These settings will be restored each time you log on. Connections made after using the net use /o: save command are neither save nor restored.

To list a workstation's connections, type net use without options.

Comments

By connecting a workstation to a shared resource, you can use the resource as if it were attached to the workstation.

For example, net use can connect your workstation to a shared printer queue that uses a high-quality printer. When you use a program such as Microsoft Excel, you can print files on that printer by directing print jobs to the devicename for the queue that uses the printer.

You can use a shared resource without making a connection with net use. The connection is made automatically by MS-DOS and some network programs when you specify the network path of the resource on the command line. If the resource is protected by a password, you must establish access with net use. You don't have to assign a devicename to establish access. Just type net use, the network path of the resource, and the password.

You can use a shared directory without assigning a devicename to the connection. You do this at the MS-DOS prompt by using the network path with certain commands and applications.

For example, to use Microsoft Word to edit the LIST.DOC file in the shared directory with the network path \\SALES\FARWEST, type:

word \\sales\farwest\list.doc

Microsoft Word loads the shared file even though you haven't made a previous connection to \\SALES\FARWEST. Note that this procedure doesn't work when you need a password to gain access to \\SALES\FARWEST. In this case, you must first establish access to the directory.

You cannot delete a connection to a shared directory while that directory is your current drive. You must change to another drive before you delete the connection.

NOTE: You can only make connections to sharenames of up to eight characters, optionally followed by an extension consisting of a period (.) and one to three characters. LAN Manager Enhanced sends an error message if you try to connect to a longer sharename.

Viewing Your Workstation's Connections

When you type net use without options, you get information about your workstation's connections in a display similar to the following:

Status          Local name    Remote name
—————————————————————————————————————————————————
OK M: \\FINANCE\SCRATCH
DISCONNECTED G: \\PRODUCT\C
ERROR LPT1: \\PRINT1\LASER

The status of a connection can be:

Status

Description

OK

Active

Disconnected

Suspended by the server but will reestablish when you use it

Paused

Paused by the workstation

Error

Ended and must be deleted

The Local name is the devicename assigned to the resource; Remote name is its network path.

There are two ways to get information about a connection:

  • Type net use devicename.

  • Type net use and the network path of the resource. You must type this command twice: first to establish a connection to the resource, and then to get information about it.

Either method produces a display similar to the following:

Local name            LPT1:
Remote name \\PRINT1\LASER
Resource type Print
Status OK
#Opens 0
#Connections 1

Resource type

Is the type of resource you are using (disk or printer).

#Opens

Is the number of files currently open in this connection.

#Connections

Is the number of connections the workstation has to the resource.

Examples

  • To assign the devicename E to the LETTERS directory on the \\FINANCE server, type:

    net use e: \\finance\letters

  • To assign the devicename LPT1 to the LASER2 printer queue on the \\ACCOUNT server, type:

    net use lpt1: \\account\laser2

  • To cancel your connection to the \\ACCOUNT\LASER2 printer queue connected to LPT1, type:

    net use lpt1: /delete

  • To establish access to the \\FINANCE server's SCRATCH shared directory, which requires the password meteor, type:

    net use \\finance\scratch meteor

  • To cancel your connection to the \\FINANCE\SCRATCH shared directory, type:

    net use \\finance\scratch /delete

You must use quotation marks with a servername that has a space. If you omit the quotation marks, LAN Manager will not accept a servername that includes a space.

See Also

For information about

See

Making connections

Chapter 1, "Getting Started with LAN Manager Enhanced"

Pausing and continuing connections

Net Pause, Net Continue

Viewing connections

Net View

Net Version

Purpose

The net version command informs you of the version of LAN Manager running on the computer at which the command is typed.

Syntax

net version

Comments

This command helps you determine which computers to upgrade to a higher version of LAN Manager. This command is used primarily to provide data to your administrator or technical support personnel.

Net View

Purpose

The net view command displays a list of servers in a specified domain or the resources that a server in a specified domain is sharing.

Syntax

net view [\\computername]

where computername specifies a server with shared resources you want to view.

To display a list of servers in your workstation domain, logon domain, and other domains, type net view without options.

Comments

When you type net view without options, you see a list of servers similar to the following:

Server Name           Remark
————————————————————————————————————————————————
\\PRODUCT Production file server
\\PRINT1 Printer room, first floor
\\SALES Sales records and lists

When you specify a server with net view, you see a list of resources the server is sharing. The display looks similar to the following:

Shared Resources at \\PRINT1
Printer room, first floor
Sharename Type Used as Comment
—————————————————————————————————————————————————————
PRT Print LPT2: Printer pool
FAST_PRT Print LPT1: High priority printer
D Disk R: Drive D Root

The columns in this display give the following information:

Sharename

The name of the resource.

Type

The type of shared resource.

Used as

The local devicename (if any) assigned to the resource.

Comment

An optional comment about the resource, which an administrator supplies.

Examples

  • To see a list of servers in your domain, type:

    net view

  • To see a list of the shared resources on the \\PRODUCT server, type:

    net view \\product

See Also

For information about

See

Shared resources

Chapter 1, "Getting Started with LAN Manager Enhanced"

Using a resource shared on a server

Net Use

Who is logged on in a domain

Net Who

Net Who

Purpose

The net who command lists users logged on in a LAN Manager domain, on a LAN Manager server, or on a workstation. It also lists information about a user. It does not show information about Windows NT Advanced Server domains or servers or Windows NT workstations.

Syntax

net who [/domain:name | \\computername | username]

where

/domain:name

Lists users on a domain other than the domain in which you're logged on.

computername

Is the name of a server with users you want information about.

NOTE: When using this option, the Time since connection is displayed in place of Time since logon.

username

Is the name of a user you want information about.

To display information about users in the logon domain, type net who without options.

Comments

When you type net who without options, you see a list of users logged on in your LAN Manager logon domain. The display looks similar to the following:

Users on Domain HEADQTRS 
Time since
Username Workstation Logon Full Name
————————————————————————————————————————————————————————
ABIGAIL PRODUCT 10:11:45 Abigail Martin
ARNIEG FINANCE 06:19:00 Arnold Gates
PHILB SALES 11:23:13 Phil Bates

The Workstation column lists the computername of each user's workstation.

NOTE: The net who command provides information about LAN Manager servers that have LAN Manager version 2.2. You must have administrative privilege on a server that has an earlier version of LAN Manager to get information about that server's users.

Example

  • To see a list of users currently logged on in the LAN Manager marketing domain, type:

    net who /domain:marketing

See Also

For information about

See

Displaying a list of servers

Net View

Netbind

Purpose

The netbind utility binds protocols that are loaded statically.

Syntax

netbind

Comments

The netbind utility binds protocols that have been statically loaded, usually by inclusion in the CONFIG.SYS file. The protocols remain bound until you restart your workstation.

Do not use netbind while running the Microsoft Windows operating system. Either bind the protocol before running the Windows operating system, or stop the Windows operating system, bind, and then restart the Windows operating system.

See Also

For information about

See

Loading protocols as TSRs

Load, Unload

Binding network device drivers

Installation Guide for Clients

Netrun

Purpose

The netrun command runs a program or command on a LAN Manager OS/ 2 or UNIX system server.

NOTE: The netrun command does not work on Windows NT Advanced Servers or Windows NT workstations. Also, you cannot use the netrun command to run interactive programs such as word processors or spreadsheets.

Syntax

netrun command

where command is the name of a program you want to run. On a LAN Manager OS/2 server, the program file must have a .EXE extension. You don't need to supply the filename extension when you type the command.

Comments

The netrun command lets you use another computer's processing power to run a program. You can do this only from the command line. There is no comparable command available with the LAN Manager screen. You may need the help of your administrator to use this command.

To run a program on a server

  1. Get the filename of the program you want to run and the computername of the server you want to use.

  2. Connect to a shared directory on the server with the net use command if you do not already have such a connection.

  3. Change your current directory to any shared directory on the server that has the program you want to run. The program need not be in the directory you change to and might not be visible to you through any other net commands. As long as you are using a directory on that server, you can run the program, even if you can not see the program file with any directory command or view command.

  4. Type netrun followed by the filename of the program and any options or vari ables the program requires.

If the program you are running has options or variables that include filenames, specify the full path for each file. If a drive letter is included in the path, LAN Manager assumes that the drive is one of the server's drives. Any files, such as data files, that the program is to use must be on the server from which you use the netrun command.

Most programs produce some kind of output or data. When you use netrun, this output is sent to your screen. To send the output to a file, specify >>path to receive the output in the netrun command line. By default, LAN Manager creates this file in the current directory, but any path you specify after the >> symbol is relative to your workstation, not to the server.

Commands that can be run with the netrun command are controlled by the Netrun service on the server that has the executable file. Because the Netrun service runs as a daemon process on the UNIX system server without a controlling terminal, and because any command executed by netrun inherits this state, those programs that issue input prompts when they detect that they are being run from the command line will not issue prompts.

For example, the shell detects whether there is a controlling terminal and issues the PS1 prompt while waiting for command input. It does not do this when input is not coming from a terminal (for example, when it is running a shell script from a file). When run from netrun, the shell will not issue any prompts. A sample session follows:

D:>> netrun sh 
date Wed Sep 2 17:20:26 PDT 1992
who
root console Aug 24 12:31
exit
D:>>

When using the netrun program on an MS-DOS client, the keyboard input is buffered and lines are sent only when the buffer fills or a return is entered. This may require entering a return after some special characters to get them sent across. For example, when entering expressions to the UNIX system bc program, you might type the following:

D:>> netrun bc 
3+4
7

If you then intend to exit bc by typing CTRL+D (which would normally terminate bc immediately), you need to follow the CTRL+D with a return to send the CTRL+D to the server.

Example

Suppose you want to run a file-comparison program called DIFF.EXE on the \\ADMIN server with the LISTS shared directory. The two files you want to compare are MAILLIST.TXT and ADDRESS.LST in the LISTS directory, and the file you want to receive the output is NEWLIST.TXT on your drive C.

To accomplish this comparison, assign a devicename (such as D) to the LISTS directory on the \\ADMIN server. Change to that drive, and start the program using the netrun command. To do this, type the following:

net use d: \\admin\lists d: netrun diff maillist.txt address.lst >>c:\newlist.txt

Note that the DIFF.EXE program need not be in the \\ADMIN\LISTS directory.

See Also

For information about

See

Connecting to a shared directory

Net Use

Viewing a list of shared directories on a server

Net View

Other UNIX system commands

Uchmod, Ud, Udir, Uren

Nwload

Purpose

The nwload utility starts NetWare Connectivity.

Syntax

nwload [username]

where username is your NetWare username.

Comments

NetWare Connectivity allows you to use Novell NetWare servers. You will be prompted for your NetWare username, unless you include it on the command line.

You cannot use this utility while the Microsoft Windows operating system is running. Use this utility before you start the Windows operating system, or stop the Windows operating system, use the nwload utility, and then restart the Windows operating system.

See Also

For information about

See

Unloading NetWare Connectivity

Nwunload

NetWare Connectivity

Appendix B, "Using NetWare Connectivity," and the NetWare Connectivity Guide

Nwunload

Purpose

The nwunload utility unloads NetWare Connectivity.

Syntax

nwunload

Comments

NetWare Connectivity allows you to use NetWare servers. After you unload NetWare Connectivity with the nwunload utility, you can start NetWare again with the nwload utility.

You cannot use this utility while the Microsoft Windows operating system is running. Use this utility before you start the Windows operating system; or stop the Windows operating system, use the nwunload utility, and then restart the Windows operating system.

See Also

For information about

See

Loading NetWare Connectivity

Nwload

NetWare Connectivity

Appendix B, "Using NetWare Connectivity," and the NetWare Connectivity Guide

Ping

Purpose

The ping utility lets users of Microsoft TCP/IP verify a physical connection to a remote computer.

Syntax

ping remote_computer [-t [timeout_value]] [-n [num_times]]

where

remote_computer

Is the computername or IP address of a remote computer.

-t [timeout_value]

Is the number of seconds (timeout_value) that this node waits for an ICMP echo reply from a remote computer. The timeout_value range is from 1 through 300 seconds; the default is 20.

-n [num_times]

Is the number of times ping sends an echo request to the remote computer. If you don't specify a number, ping uses the default of one echo request.

There is a 1-second delay between each echo request.

Comments

The ping utility is a Microsoft TCP/IP utility that can be used to isolate network hardware problems and incompatible configurations for StarLAN 10 networks, token-ring networks, and ThinLAN networks.

Printsta

Purpose

The printsta command accepts print jobs from other workstations and prints them on a shared printer.

Syntax

printsta options

printsta /D

where

/N:name

Allows you to grant one remote workstation exclusive access to the LAN Manager Print Station printer. If you use this switch, the only remote user who can send print jobs to your printer is the one at the computer with computername name. (Of course, you will still be able to send print jobs to your own printer, too.)

/L:n

Tells LAN Manager Print Station which printer port to use. For example, /L:1 would instruct LAN Manger Print Station to use the printer connected to LPT1.

The range is 1 to 3; the default is 1.

/V:n

Redirects printer output from the workstation that is sharing a printer from the port that has the shared printer to the specified logical port, which may be in turn redirected to a queue on a server. You may specify 1 for LPT1, 2 for LPT2, or 3 for LPT3.

/Q

Acts as a toggle to pause and release the queue.

/M:n

Specifies the amount of cache memory reserved for each permitted spool file.

When LAN Manager Print Station is loaded, it allocates a memory block (a buffer) for caching the spool file data for each spool file that it may receive over the network. You set the number of spool files that may be created at one time with the /F option. For example, if you set /F:10 and /M:200, when LAN Manager Print Station loads, it will allocate 2000 bytes for the buffers that receive data that go into the spool files. In this case, when a print job arrives, LAN Manager Print Station will collect data until it has received 200 bytes; then it will write that data into the spool file, empty the buffer, and receive the next 200 bytes of data from that print job. At any one time, it may be doing this for each of the 10 spool files permitted.

Increasing the size of these buffers will reduce the amount of network traffic needed to print a file, but will also increase the amount of memory the LAN Manager Print Station needs. These buffers are allocated from MS-DOS and will not reside in the same place in memory as the print spooler. The size of these buffers should be reduced if memory constraints are a problem.

The range is 128 bytes to 4096 bytes; the default is 128 bytes.

/T:n

Sets the priority of LAN Manager Print Station on the host computer. That is, it establishes how successfully LAN Manager Print Station can compete for processing time with other programs that the user of the host computer may be running, by controlling how often it can use the computer's processing power. The highest priority is 1. Assigning a lower priority (by increasing this value) will force LAN Manager Print Station to wait longer periods of time in between doing any processing. If using LAN Manager Print Station seems to slow the use of other applications on the workstation, increase this value. If fast print spooling is more important, then assign a higher priority (decrease the value) to give LAN Manager Print Station more processing time. For example, the default value of 10 instructs LAN Manager Print Station to process approximately twice every second.

The range is 1 to 255, with 1 being the highest priority. The default is 10.

/I:n

Each time the printsta utility gains control of the computer's processing power, it will use n cycles for processing before it relinquishes control again. The range is 1 to 255; the default is 1.

/O:n

Specifies the number of characters to be printed in each pass. The range is 1 to n characters, where n is the value specified with the /M switch. The default is 32.

/A:n

Causes LAN Manager Print Station to disconnect remote clients that have not spooled to the printer in the number of minutes specified.

The range is 0 (never auto-disconnect) to 1440 minutes; the default is 1 minute.

/R:n

If LAN Manager is loaded in spooling mode, this option (retry) specifies the number of seconds to wait between printer status checks. If the printer is slow, this value should be increased.

If LAN Manager Print Station is loaded in non-spooling mode, this option (retry) instructs the spooler to wait for the specified number of seconds before failing the print request. Since the nonspooling mode does not maintain a queue, print jobs that run into a printer error are held until either the error clears or the retry time (n seconds) passes. After n seconds, the print job will fail. After the printer error is determined and corrected, the remote user can send the print job again. It is recommended that /R be set to a small value for the nonspooling mode, since the remote user's computer cannot continue any processing until it receives a response to its network print request.

The range is 1 to 255 seconds; the default is 5.

/B:n

Configures the maximum number of network buffers that LAN Manager Print Station allocates when it is loaded into memory. Network buffers are used to build network packets for sending data across the network. Each network buffer uses 128 bytes of memory. When there are more network buffers, more information can be sent in each packet, and spool files encounter less competition for the buffer. This can dramatically affect network performance, so low numbers of network buffers should be avoided.

The range is 1 to 20 buffers; the default is 5.

/C:n

Specifies the maximum number of remote sessions that can be active at once, that is, the number of net use connections users can establish with the host workstation to use LAN Manager Print Station. Each session takes only 24 bytes of memory.

The range is 1 to 20 sessions; the default is 5.

/E

Enables the host workstation to send messages from the printer to the remote user who has sent the print job.

The default is for the host workstation not to send these messages.

/F:n

Specifies the maximum number of spool files that can be open on the host workstation at once. There is no constraint on how many of these spool files a single remote session can have open.

Spool file structures are allocated when LAN Manager Print Station is loaded and take up 64 bytes of memory each. Since one cache block is allocated per spool file, the total memory used for each spool file is actually 64 bytes + the size of the cache block. The size of the cache block is set with the /M option.

If possible there should be at least one network buffer allocated for every spool file. Network buffers are set with the /B option.

The range for /F is 1 to 10 spool files; the default is 5. To load LAN Manager Print Station in nonspooling mode, set /F:0 (spool files equal to zero).

/K:jobid

Deletes the print job specified by jobid. To obtain the jobid number, either view the queue through Print Manager (if you are using the Windows operating system), or use the command:

net print \\hostcomputername\lpt

The jobid will appear on the line for the print job you want to delete.

/P:password

Protects the printer share with a password. Only users who know the password will be able to connect to the workstation to use LAN Manager Print Station.

The password may be up to 15 characters long.

/S

Enables separator pages. One extra page, with the remote user's name, will be printed per print job.

/W:directory

Specifies the working directory where LAN Manager Print Station will keep its spool files. If no option is specified, the directory that was current when LAN Manager Print Station was loaded will be used. By specifying a working directory, you can prevent the user at the host workstation from being distracted or annoyed by the appearance of temporary files in a directory that is reserved for other work.

Generally, you should not delete spool files from the working directory, as doing so could disrupt a remote print job. All spool files are deleted at the end of the print job.

This option does not affect LAN Manager Print Station in the nonspooling mode.

/D

Removes LAN Manager Print Station from memory. This option cannot be used with any other options.

This will free all memory reserved for caching spool files, as well as freeing the memory used for the program itself. It will cancel any jobs that have not com pleted and will remove the computername from the network's list of available servers. You can restart LAN Manager Print Station any time after you have suc cessfully removed the program from memory.

In some instances, other applications may hook the interrupts that LAN Man ager Print Station chained when the program was started. If this happens, the printsta /D command will be unable to unhook those interrupts and will con tinue to use a small amount of memory to handle them. In this case, you will not be able to restart LAN Manager Print Station until you have rebooted your com puter.

Comments

The workstation running LAN Manager Print Station must be running MS-DOS version 3.3 or later and LAN Manager version 2.1a or later.

LAN Manager Print Station uses only conventional memory. The default configuration uses just over 6K of memory. If you allow more than the default number of spooled files, network buffers, and/or remote connections, or if you increase the cache size, the memory requirements can be as much as 51.4K. If you use the minimal configuration with the spooler enabled, you can reduce the memory requirements to 5.4K. For low-memory configurations, you can disable the spooler, lowering the memory requirements to 5.0K. If disk space is not available for temporary files, it is a good idea to disable the spooler. However, if the spooler is disabled, users who send print jobs to this printer will be unable to use their workstations until their print job is done.

LAN Manager Print Station can only be reached via the first protocol on the workstation sharing the printer. Usually, this is the first protocol listed in that workstation's PROTOCOL.INI file. However, the order of protocols can be changed with the wrknets keyword in the [workstation] section of the LANMAN.INI file. The protocol need not be the first protocol on the remote workstation that is sending the job. For example, if NetBEUI is the first protocol on the workstation sharing the printer, workstations sending jobs must use NetBEUI as one of their protocols.

The workstation sending a print job must establish a network connection to the LAN Manager Print Station host workstation. MS-DOS workstations must be running LAN Manager version 2.0 or later; OS/2 workstations must be running LAN Manager version 2.1a or later.

Loading LAN Manager Print Station on the Host Workstation

To allow other users to send print jobs to your printer, you must load LAN Manager Print Station as a terminate-and-stay-resident (TSR) program, using the printsta command. If necessary, you can also unload the program. LAN Manager Print Station must be loaded prior to the Windows operating system. If you are using the AUTOEXEC.BAT file to load Print Station and to start the Windows operating system, be sure the line to load Print Station comes before the line that starts the Windows operating system, but after the line that starts the Workstation service.

To load LAN Manager Print Station

  • Type printsta [options], where options are those listed in this command reference.

To unload LAN Manager Print Station

  • Type printsta /d.

    For details, see the description of the /D option.

To Use LAN Manager Print Station from a Remote Workstation

You can connect to a LAN Manager Print Station printer as you would to any other printer, using the computername as the servername and LPT as the sharename. For example, to connect to the printer on the workstation \\WILDWOOD, you would connect one of your logical LPT ports to \\WILDWOOD\LPT.

Examples

  • To start Print Station with spooling disabled, type:

    printsta /f:0

  • To start Print Station, giving remote print jobs minimal priority for processing time, type:

    printsta /t:255

  • To start Print Station, allowing up to 5 spool files and 5 buffers, with 500 bytes of cache memory per spool file (2.5K bytes of cache memory will be allocated), type:

    printsta /f:5 b:5 /m:500

See Also

For information about

See

Using printsta

Chapter 3, "Using Shared Printers"

Other print spoolers

Clispool, Clipcach

Prtsc

Purpose

The prtsc utility is a terminate-and-stay-resident (TSR) program used to flush the print spooler when an application has failed to send an end-of-job signal.

Syntax

prtsc

Comments

This loads the utility into memory. To flush the spooler, press CTRL+ALT+PRINT SCREEN.

The prtsc utility is used to explicitly flush the spooler. Most applications send a signal that is recognized by the spooler as an end-of-job signal. On workstations with LAN Manager Enhanced, the time-out feature will flush the spooler if no data is sent for a specified length of time.

If you use this utility, you cannot stop the workstation using the net stop workstation command.

See Also

For information about

See

Using prtsc

Chapter 3, "Using Shared Printers"

Uchmod

Purpose

The uchmod command allows you to change the UNIX system access permissions of a LAN Manager for UNIX Systems file or directory. This command is only available when you have a LAN Manager for UNIX Systems server on your network.

Syntax

uchmod [who] {{+ | - | = } permissions} pathname

uchmod user#group#other# pathname

where

who

Represents the UNIX system user classification for which access permissions are changed. Replace who with u (user), g (group), o (others), or a (all classifications). When the who option is not specified, all user classifications are changed.

+

Adds the specified access permissions to the specified file or directory.

-

Removes the specified access permissions from the specified file or directory.

=

Sets access permissions to the groups or access permissions specified in the permissions option.

permissions

Represents the access permissions you want to assign to or remove from the directory or file. Replace permissions with any or all of the following: r (read), w (write), x (execute),l (lockable), s (set ID for user or group), or t (hold text file in swap space).

pathname

Represents the name of the file or directory to be affected. You can use wildcard characters.

user#

Represents the access permission value for the owner of the file or directory. Replace user# with the sum of any combination of the following values: 4 (for read), 2 (for write), 1 (for execute).

group#

Represents the access permission value for the group. Replace group# with the sum of any combination of the following values: 4 (for read), 2 (for write), 1 (for execute).

other#

Represents the access permission value for other users. Replace other# with the sum of any combination of the following values: 4 (for read), 2 (for write), 1 (for execute).

Comments

To access the uchmod command, first link to the DOSUTIL shared directory on a LAN Manager for UNIX Systems server. For example:

net use d: \\server1.serve\dosutil

Examples

  • You want to change the group (g) and other (o) access permissions of the file example to read-only. The UNIX system access permissions for example are currently read, write, and execute for user, group, and other (rwxrwxrwx). You type:

    uchmod go-wx example

    This changes the access permissions to rwxr--r--.

  • You want to change the user (u) access permissions of the file two to read and execute. The UNIX system access permissions for two are currently read-only for user, group, and other (--x--x--x). You type:

    uchmod u+r two

    This changes the access permissions to r-x--x--x.

  • You want to change the other (o) access permissions of the file list to execute only. The UNIX system access permissions for list are currently read-only for user, group, and other (r--r--r--). You type:

    uchmod o=x list

    This changes the access permissions to r--r----x.

  • You want to change the access permissions of all user classifications for the file milton to read-only, using numbers instead of letters. The UNIX system access permissions for milton are currently 644 (rw-r--r--). You type:

    uchmod 444 milton

    This changes the access permissions to r--r--r--.

See Also

For information about

See

Using the uchmod command

Appendix C, "Connecting to a LAN Manager for UNIX Systems Server"

Other UNIX system commands

Ud, Udir, Uren

Executing UNIX system commands

Netrun

Ud

Purpose

The ud command converts a UNIX system text file to MS-DOS format, or an MS-DOS file to UNIX system format. This command is only available when you have a LAN Manager for UNIX Systems server on your network.

Syntax

ud [{-d | -m | -u } -z ] file1 [ file2 ]

where

-d

Converts the file to MS-DOS format. If the file is already in MS-DOS format, it is copied to the second file.

-u

Converts the file to UNIX system format. If the file is already in UNIX system format, it is copied to the second file.

-z

Prevents ^Z from being appended to the end of a file converted from UNIX system format to MS-DOS format, or ignores ^Z characters in a file being converted from MS-DOS format to UNIX system format.

file1

Represents the name of the file you want to convert. This file remains unchanged after the command is executed.

file2

Represents the name you want to assign to the converted version of the file.

Comments

To access the ud command first link to the DOSUTIL shared directory on a LAN Manager for UNIX Systems server. For example, type:

net use d: \\server1.serve\dosutil

When entered without the -d or -u parameter, ud converts an MS-DOS file to UNIX system format or a UNIX system file to MS-DOS format. If you do not redirect the output to a second file, the file is converted and its text is displayed on your screen. You can also use a pipe ( | ) to send a reformatted file to a program.

Examples

  • To convert a UNIX system file named text.unx to MS-DOS format, and place the output in a file named text.dos, type:

    ud -d text.unx >> text.dos

  • To convert a UNIX system file named unitext to OS/2 format, then sort the file and place the output in a file named text.srt, type:

    ud -d unixtext | sort >> text.srt

See Also

For information about

See

Using the ud command

Appendix C, "Connecting to a LAN Manager for UNIX Systems Server"

Other UNIX system commands

Uchmod, Udir, Uren

Executing UNIX system commands

Netrun

Udir

Purpose

The udir command lists files and directories, including those not displayed by the MS-DOS dir command, and displays the UNIX system access permissions. This command is only available if you have a LAN Manager for UNIX Systems server on your network.

Syntax

udir [ -n |-t | -u | -r | -d ] [pathname]

where

-n

Lists file and directory names only.

-t

Lists the newest files first.

-u

Lists files on the server that are not available to the MS-DOS or OS/2 system.

-r

Displays the files in reverse alphabetical or chronological order.

-d

Displays the directory parameter only.

pathname

Represents the name of the directory and file to be listed. You can use a wildcard character with the filename.

Comments

To access the udir command, first link to the DOSUTIL shared directory on a LAN Manager for UNIX Systems server. For example, type:

net use d: \\server1.serve\dosutil

If a UNIX system filename contains characters that are invalid in MS-DOS or is longer than the MS-DOS limit, you can use udir to list the file. If the specified resource is on a server running the UNIX operating system, udir displays information in a format like that displayed by the UNIX system ls - l command. If the specified resource is on a computer running the MS-DOS or OS/2 operating system, udir displays information in a format like that displayed by the MS-DOS dir command.

NOTE: Filenaming conventions are based on the MS-DOS filenaming conventions (the File Allocation Table, or FAT).

Examples

  • You want to list the contents of the shared directory linked to drive ID F. You type

    udir f:

    The following appears.

    C: udir f: 
    Status: RO
    Volume in drive F: is CARPET_SERV
    Directory of f:/*
    UNIX-based server 'CARPET.SERVE' in share area 'VACUUM'
    DOS Name Owner Group Modes UNIX Name
    . <DIR> 10-28-92 4:45p lanman DOS---- rwxrwxr-x .
    . . <DIR> 10-22-92 8:51a root root rwxrwxrwx ..
    65 10-28-92 4:39p root other rw-r--r--
    name_too_long
    NET.DIR <DIR> 10-24-92 9:13a glenn DOS---- rwxrwxr-x net.dir
    OK_FOR.DOS 232 10-28-92 1:51p glenn DOS-a-- rw-rwlr--
    ok_for.dos
    ROOTFILE 642950 10-25-92 2:19p root other rw-r--r-- rootfile
    6 Files 150.72 Megabytes freeu

  • You want to list the contents of the current directory on your local drive C. You type

    udir

    The following appears:

    C:\udir 
    Volume in drive C: is DOS401
    Directory of C:\.
    autoexec.bat rw--a 145 6-08-92 10:05a
    config.sys rw--a 344 6-08-92 9:30a
    landoc rw--a <DIR> 8-10-92 7:30a
    dos3_2 rw--- <DIR> 6-10-92 11:08a
    ibmdos.com r-hsa 28009 9-12-92 3:45p
    report1.dft rw--a 8128 8-02-92 5:30p
    report2.dft rw--a 9012 8-16-92 9:30a
    res.scr rw--a 2045 8-08-92 8:30p
    tmp rw--a 23606 1-01-92
    9 Files 26.78 Megabytes free

See Also

For information about

See

Using the udir command

Appendix C, "Connecting to a LAN Manager for UNIX Systems Server"

Other UNIX system commands

Uchmod, Ud, Uren

Executing UNIX commands

Netrun

Unload

Purpose

The unload utility unloads a specified protocol from a workstation with Demand Protocol Architecture (DPA).

Syntax

unload protocol

where

protocol

Is the name of the last protocol loaded. Information regarding protocols is placed in the PROTOCOL.INI file and in the LANMAN.DOS\DRIVERS\PROTOCOL directory by the installation program. You should not edit these files.

Comments

Protocols must be unloaded in the reverse of the order in which they were loaded (last in is first out). To get information about what protocols are loaded, and in what order, type:

load /i

Do not use the unload utility while running the Microsoft Windows operating system. Either unload the protocol before running the Windows operating system, or stop the Windows operating system, unload the protocol, and then restart the Windows operating system.

See Also

For information about

See

Other Demand Protocol Architecture utilities

Load, Netbind, Installation Guide for Clients

Loading a protocol

Load

Installing and configuring protocols

Installation Guide for Clients

Uren

Purpose

The uren command renames or moves files on a server running the UNIX operating system. This command is only available if you have a LAN Manager for UNIX Systems server on your network.

Syntax

uren oldfilename newfilename

uren filename1 [ filename2... ] directoryname

where

oldfilename

Represents the original filename.

newfilename

Is the new filename.

filename1

Represents the name of the file you want to move.

filename2...

Represents any additional files that you want to move.

directoryname

Is the name of the destination directory.

Comments

To access the uren command, first link to the DOSUTIL shared directory on a LAN Manager for UNIX Systems server. For example:

net use d: \\server1.serve\dosutil

You cannot use the uren command to move a file from one drive to another. In addition, you cannot use the wildcard character * with the uren command.

Examples

  • You want to rename TOOBIGFORDOS to OKFORDOS. Type

    uren toobigfordos okfordos

  • You want to move files ABC and DEF to the DIR1 directory. Type

    uren abc def dir1

See Also

For information about

See

Using the uren command

Appendix C, "Connecting to a LAN Manager for UNIX Systems Server"

Other UNIX system commands

Uchmod, Ud, Udir

Executing UNIX system commands

Netrun

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.