| United States-English |
|
|
|
![]() |
HP 9000 Networking: Advanced Server/9000 Administrator's Guide > Chapter 1 Administering Advanced Server at the Command PromptNet Command |
|
Although we recommend that you use the programs available through Windows NT Administrative Tools and Windows NT Server Tools to administer Advanced Server, the Net command-line interface also can be used. Refer to the Advanced Server/9000 Quick Installation Guide for details on which computers to install the Windows NT Administrative Tools and Windows NT Server Tools on. You are automatically granted the Administrator privilege if you run net commands as root even if you are logged in to AS/U as a non-administrative user. This is so you can perform administrative actions (like stopping the server) without having to log in as an administrative user. The following sections summarize the net commands that are available in Advanced Server and describes syntax and usage conventions. When you administer a server while you are working at the server command prompt, that server is called the local server. If you are administering a server from the command prompt of another server, the server being administered is called the remote server. Some of your network users may be designated as account operators, print operators, or server operators. These users have limited administrative or operator privileges that enable them to perform specific tasks. These privileges are sufficient to use the net command to administer a local server at the Advanced Server command prompt. However, to use the net command to administer a remote Advanced Server, you must be logged on to Advanced Server as an Administrator with full administrative privilege. If you have different operators responsible for parts of your network and you do not want to assign them full administrative privilege, then they must work only at the Advanced Server command prompt of the server being administered. To administer a local Advanced Server using the Net command
To perform server administration tasks using the Net command remotely, use the net admin command and the appropriate Net command for the task. Step 2 of the following procedure describes two ways of entering the net admin command. To enter a Net command remotely
To exit the command shell and return to the system prompt, type exit or press CTRL+Z.
Some displays provide more than one screen full of information. For example, the following command provides several screens of information on the net share command:
To display information one screen at a time, use the more command, for example:
After you have examined one screen of information and are ready to proceed, press the SPACEBAR to display the next screen of text. Some commands require a password as an option. You can provide a password as a command option by typing the password on the same line as the command itself. For example, to log the user name jim with the password kahuna on the network, you would type:
You can also ask the Advanced Server to prompt you for your password, replacing the password with an asterisk ( * ) when you type the command.
For example, to use the same resource described above, type:
The Advanced Server then displays the following message:
When you enter a password at this prompt, the password does not appear on the screen as you type. This allows you to keep your password confidential, providing added security. If you forget to type a password with a command that requires one, the Advanced Server prompts you for it. Depending on the command that you type, the Advanced Server also may prompt you for other pertinent information such as your user name. Some Net commands require confirmation. The /yes and /no options help expedite Net commands. When Advanced Server reads one of these options, it does not pause to display the corresponding prompt. Instead, Advanced Server accepts the /yes or /no option as your response to the prompt. You can use Net commands with /yes ( /y ) and /no ( /n ) options to create batch files and shell scripts that are not interrupted by Advanced Server prompts. For example, if you use the net logoff command to log off the local area network with connections to remote shared resources intact, Advanced Server displays a prompt similar to the following:
You can use the /yes and /no options with any Net command to anticipate and respond to a prompt. For example, you are not prompted for confirmation when you type the following:
The command reference pages in this chapter always use the full command names, command options, and service names. However, Advanced Server recognizes abbreviations. You can abbreviate any command option by typing enough letters to distinguish it from other command options. For example, the following is the syntax for the net accounts command:
You can abbreviate the options as illustrated in the following example:
You cannot abbreviate option values (for example, the unlimited option for / maxpwage). Some of the names or passwords that you need to enter may contain one or more special characters, for example, an ampersand ( & ). When you are at the UNIX system command prompt typing a name with a special character in an Advanced Server command, you must use an escape character (the back slash [ \ ]) before each special character. If you are at a client computer, you can surround the string containing the special characters in double quotes. For example, to log on with the user name marksp and the password mrkt&dev on the UNIX system command prompt, you could type the following:
Some commonly used UNIX system special characters include the following: asterisk ( * ); semi-colon ( ; ); pipe ( | ); square brackets ( [ ] ); parentheses [ ( ) ]; question mark ( ? ); ampersand ( & ); caret ( ^ ); back slash ( \ ); greater-than and less-than signs ( < > ); blank ( ) and the "at" sign ( @ ). There are other UNIX special characters that you may encounter. For more information on special characters, consult your UNIX system documentation. The UNIX system uses a forward slash to separate names in a path. This is different from client computers, which use back slashes. Always precede path names with c: when using the Net command. When typing path names at a UNIX system command prompt, you can use any of the following methods:
When including spaces in values, you may want to enclose the value in double quotes. For example, to change the comment for the domain guests group, you could type the following command:
The commands that are used in Advanced Server will be easier to understand and use if you keep the following concepts in mind:
On-line help is available for all of the Net commands that you can enter at the server command prompt. It provides command parameters, syntax, details about a command, and examples of the command in use. To obtain information about a Net command, type one of the following commands at the Advanced Server system prompt:
For most administrative operations, you should perform net logon as an administrator before running the net commands. This is especially important when running the net commands as root. Running net commands as root grants you administrative privileges and bypasses password checks. This allows you to run commands without logging on first. For most net commands, it is not a problem if this is done. Net trust, however, relies on the current user's password when establishing the trust relationship. If you run net trust as root without first logging on, a null password is used, and the trust relationship cannot be authenticated when it is later used. The Advanced Server net commands described in the following table are supported at the Advanced Server command prompt.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||