Asadmin command usage

Source: Internet
Author: User

UseAsadminThe utility can execute all management tasks of the application server. You can use thisAsadminUtility to replace the management console.

AsadminThe utility calls commands that identify the operations or tasks you want to execute. These commands are case sensitive. The short option parameter has a single break (-), While the long option parameter has two dashes (--). Option is used to control how the utility executes commands. The options are case sensitive. Most options require parameter values, except for Boolean options that can be switched between function on and off. The operand appears after the parameter value, and uses spaces, tabs, or double-break signs (--)
Separated.AsadminThe utility treats anything following the options and their values as an operand.

Example 19-1 syntax example

AsadminCommand[-Short_option] [Short_option_argument] * [-- Long_option[Long_option_argument] * [Operand] *

Asadmin create-Profiler-UAdmin-- Passwordfile
Password.txt myprofiler

Access application server on the Solaris PlatformAsadminOn the utility command manual page$ As_install/manAdd
ManpathEnvironment variable.

You can call-- HelpTo obtain anyAsadminAll usage information of utility commands. If a command is specified, the command usage information is displayed. Without commands
-- HelpThe list of all available commands is displayed.

Example 19-2 HELP command example

Asadmin-- HelpShow general help

AsadminCommand-- HelpDisplays the help of a specified command.

This section includes the following topics:

  • Multi-mode and Interaction Mode

  • Local Command

  • Remote commands

  • Password File

Multi-mode and Interaction Mode

AsadminA utility can be used for Shell invocation or multi-command mode (calledMultimodeCommand ). In the command shell call, from the command shell call
AsadminUtility.AsadminRun the command and exit. In multi-command modeAsadminOnce, it will accept multiple commands until you exit
AsadminAnd return to the conventional command shell call. The environment variables set in Multi-command mode will be used for all subsequent commands until you exitMultimode. Commands can be provided by passing the list of previously prepared commands from a file or standard input (pipeline. In addition, you can call
MultimodeWhen you exit the second multi-mode environment, the system returns to the original multi-mode environment.

You can also run in interactive or non-interactive modeAsadminUtility. By default, interactive mode is enabled. It prompts you to provide required parameters. In any case, you can use the interactive mode option in the command shell call. When you run a command at the command prompt and run it from a file, you can
MultimodeUse interactive mode options. InMultimodeThe command from an input stream and the command called by another program cannot be run in interactive mode.

Local Command

Local commands can be executed without a management server. However, you must log on to the computer in the hosted domain to execute commands and have access to the installation directory and domain directory ).

For commands that can be executed locally or remotely, if-- Host,-- Port,-- UserAnd
-- PasswordfileIf any option is selected, the command is run in remote mode, regardless of the environment or command line. In addition, if no local options are set, the command is executed locally by default, both in the command line and in the environment.

Remote commands

Remote commands are always executed by connecting to the Management Server and executing commands. You need to use a running management server. The following general options are required for all remote commands:

Table 19-1 options required for remote commands

Short options

Option

Definition

-H

-- Host

The name of the computer that runs the domain management server. The default value is localhost.

-P

-- Port

The HTTP/s port used for management. This is the port that the browser should point to manage the domain. For example,Http: // localhost: 4848. For platform edition, the default port is 4848.

-U

-- User

Authorized Domain Management Server Management username. If you have usedAsadmin LoginIf the command passes Domain Verification, you do not need to specify
-- User.

 

-- Passwordfile

--PasswordfileSpecifies the name of the file containing a password entry in a specific format. The password entry must haveAs_admin _Prefix, followed by a password name with uppercase letters.

For example, to specify a domain management server password, use an entry in the following format:As_admin_password=Password, Where
PasswordIs the actual administrator password. Other passwords that can be specified includeAs_admin_password,As_admin_userpassword,As_admin_aliaspasswordAnd
As_admin_mappedpassword.

All remote commands must pass--PasswordfileOrAsadmin Login, Or you can specify the management password in interactive mode at the command prompt to pass the Domain Management Server verification.Asadmin LoginThe command can only be used to specify the management password. For other passwords that must be specified for remote commands, use
--PasswordfileOr enter these passwords at the command prompt.

If you have usedAsadmin LoginIf the command passes Domain Verification, you do not need to pass--PasswordfileSpecifies the management password. However, this only applies
As_admin_password. You still need to provide other passwords, suchUpdate-file-user).
As_admin_userpassword.

For the sake of security, the password specified as the environment variable cannot passAsadminRead.

-S

-- Secure

If this parameter is set to true, SSL/TLS is used to communicate with the domain management server.

-I

-- Interactive

If it is set to true (default), only the required password and user options are displayed.

-T

-- Terse

Indicates that any output data must be very concise. Generally, user-friendly sentences are not used in scripts, and well-formatted data is supported. The default value is false.

-E

-- Echo

If this parameter is set to true, the command line statement is displayed in the standard output. The default value is false.

-H

-- Help

Displays the help text of the command.

Password File

To ensure security, you can set a password for the command in the file instead of the command line.-- PasswordfileSpecifies the file containing the password. The valid content of the file is:

Example 19-3 Password File Content
AS_ADMIN_PASSWORD=valueAS_ADMIN_ADMINPASSWORD=valueAS_ADMIN_USERPASSWORD=valueAS_ADMIN_MASTERPASSWORD=value

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.