| United States-English |
|
|
|
![]() |
Microsoft Network Client Version 2.2: User's Guide for MS-DOS Clients > Chapter 5 Enhanced ReferenceCommand and Utility Summary |
|
The following lists describe the LAN Manager Enhanced commands and utilities. Using the Network
*This is a utility. **These commands are only available when you have a LAN Manager for UNIX Systems server on your network. Getting Information
Working with Services
Other
*This is a utility. Using UNIX System Commands Table 5-1 Title not available (Command and Utility Summary)
*These commands are only available when you have a LAN Manager for UNIX Systems server on your network. Several types of Help are available: To get a list of commands and topics for which Help is available
To display detailed information about a command
To display a command's options
To display a command's syntax
For more information about getting Help with commands, see "Net Help," later in this chapter. 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
For more information about getting Help with an error, see "Net Helpmsg," later in this chapter. Purpose The addname utility lets TCP/IP users access resources of a server on a different TCP/IP network, using a network gateway. Syntax
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
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. 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
See Also
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
See Also
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:
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. 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.
See Also
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
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
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:
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:
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
See Also
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
See Also
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 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
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:
With the /b option the file is copied in binary format:
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
See Also
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
See Also
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:
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
The error message and Help information appear. See Also
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
See Also
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
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.
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. 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
See Also
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.
Example
See Also
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:
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.
Examples
See Also
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
See Also
Purpose The net pause command pauses services or workstation connections to shared resources. Syntax net pause {workstation | messenger | netpopup | drdr | prdr} where 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. 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
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.
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:
The status of a print job can be:
Examples
See Also
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:
Examples
See Also
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. 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:
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
See Also
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
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:
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
See Also
Purpose The net stop workstation command stops the Workstation service. Syntax net stop workstation 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
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
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.
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:
The status of a connection can be:
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:
Either method produces a display similar to the following:
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
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
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. 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:
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:
The columns in this display give the following information: 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
See Also
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.
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:
The Workstation column lists the computername of each user's workstation.
Example
See Also
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
Purpose The netrun command runs a program or command on a LAN Manager OS/ 2 or UNIX system server.
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
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:
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:
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
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
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
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. 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
To unload LAN Manager Print Station
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
See Also
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
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
See Also
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
See Also
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.
Examples
See Also
Purpose The unload utility unloads a specified protocol from a workstation with Demand Protocol Architecture (DPA). Syntax 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. 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
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
See Also
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||