Contained WithinFind More DocumentationFeatured Support Resources | Scarica il manuale in formato PDF (1171 KB)
Chapter 2 Vital Installation Information for a J2EE Agent in Policy Agent 2.2To make the installation process of a J2EE agent in Policy Agent 2.2 simple, essential information required for the installation is provided in this chapter. This chapter applies to all the J2EE agents in the Policy Agent 2.2 release. However, throughout this chapter, when a specific J2EE agent is used for example purposes, such as in a command, only one J2EE agent is shown, Policy Agent 2.2 for Sun Java System Application Server 8.1. These examples are provided to illustrate general format. Replace J2EE agent specific information where necessary. When you are comfortable with the information presented in this chapter, move on to the installation as described in Chapter 3, Installing the IBM WebSphere Portal Server 6.0 Policy Agent. In simple terms, this chapter provides information to help you with the following:
The information referred to in the preceding list is described in the following sections of this chapter:
Format of the IBM WebSphere Portal Server 6.0 Distribution FileThe distribution file for the IBM WebSphere Portal Server 6.0 agent is a .zip archive named websphere_v60portal_agent.zip. After you download the file, unzip it using the appropriate utility or command for your platform. For example, on Solaris systems: unzip websphere_v60portal_agent.zip For more information see, Preparing to Install the IBM WebSphere Portal Server 6.0 Agent. Role of the agentadmin Program in a J2EE Agent for Policy Agent 2.2The agentadmin program is a required install and configuration tool for the 2.2 release of J2EE agents. The most basic of tasks, such as installation and uninstallation can only be performed with this tool. The location of the agentadmin program is as follows: PolicyAgent-base/bin The following information about agentadmin program demonstrates the scope of this utility:
Note – In this section, the options described are the agentadmin program options that apply to all J2EE agents. Options that only apply to specific J2EE agents are relatively uncommon and are described where necessary within the corresponding J2EE agent guide. Table 2–1 The agentadmin Program: Supported Options
agentadmin --installThis section demonstrates the format and use of the agentadmin command with the --install option. Example 2–1 Command Format: agentadmin --installThe following example illustrates the format of the agentadmin command with the --install option:
The following arguments are supported with the agentadmin command when using the --install option:
Example 2–2 Command Usage: agentadmin --installWhen you issue the agentadmin command, you can choose the --install option. With the --install option, you can choose the --saveResponse argument, which requires a file name be provided. The following example illustrates this command when the file name is myfile:
Once the installer has executed the preceding command successfully, the responses are stored in a state file that can be used for later runs of the installer. If desired, you can modify the state file and configure the second installation with a different set of configuration parameters. Then you can issue another command that uses the ./agentadmin --install command and the name of the file that you just created with the --saveResponse argument. The difference between the previous command and this command is that this command uses the --useResponse argument instead of the --saveResponse argument. The following example illustrates this command:
With this command, the installation prompts run the installer in silent mode, registering all debug messages in the install logs directory. agentadmin --uninstallThis section demonstrates the format and use of the agentadmin command with the --uninstall option. Example 2–3 Command Format: agentadmin --uninstallThe following example illustrates the format of the agentadmin command with the --uninstall option:
The following arguments are supported with the agentadmin command when using the --uninstall option:
Example 2–4 Command Usage: agentadmin --uninstallWhen you issue the agentadmin command, you can choose the --uninstall option. With the --uninstall option, you can choose the --saveResponse argument, which requires a file name be provided. The following example illustrates this command where the file name is myfile:
Once the uninstaller has executed the preceding command successfully, the responses are stored in a state file that can be used for later runs of the uninstaller. If desired, you can modify the state file and configure the second uninstallation with a different set of configuration parameters. Then you can issue another command that uses the ./agentadmin --uninstall command and the name of the file that you just created with the --saveResponse argument. The difference between the previous command and this command is that this command uses the --useResponse argument instead of the --saveResponse argument. The following example illustrates this command:
With this command, the uninstallation prompts run the uninstaller in silent mode, registering all debug messages in the install logs directory. agentadmin --listAgentsThis section demonstrates the format and use of the agentadmin command with the --listAgents option. Example 2–5 Command Format: agentadmin --listAgentsThe following example illustrates the format of the agentadmin command with the --listAgents option:
No arguments are currently supported with the agentadmin command when using the --listAgents option. Example 2–6 Command Usage: agentadmin --listAgentsIssuing the agentadmin command with the --listAgents option provides you with information about all the configured J2EE agents on that machine. For example, if two J2EE agents were configured on Sun Java System Application Server 8.1, the following text demonstrates the type of output that would result from issuing this command:
This example shows that two instances of the agent are configured: one for server1 and one for server2. Notice that the agentadmin program provides unique names, such as Agent_001 and Agent_002, to all the J2EE agents that protect the same instance of a deployment container, in this case Application Server 8.1. Each name uniquely identifies the J2EE agent instance. agentadmin --agentInfoThis section demonstrates the format and use of the agentadmin command with the --agentInfo option. Example 2–7 Command Format: agentadmin --agentInfoThe following example illustrates the format of the agentadmin command with the --agentInfo option:
The following argument is supported with the agentadmin command when using the --agentInfo option:
Example 2–8 Command Usage: agentadmin --agentInfoIssuing the agentadmin command with the --agentInfo option provides you with information on the J2EE agent instance that you name in the command. For example, if you want information about a J2EE agent instance named Agent_002 configured on Sun Java System Application Server 8.1, you can issue the command illustrated in the following example to obtain the type of output that follows:
In the preceding example, notice that information is provided only for the agent instance, Agent_002, named in the command. agentadmin --versionThis section demonstrates the format and use of the agentadmin command with the --version option. Example 2–9 Command Format: agentadmin --versionThe following example illustrates the format of the agentadmin command with the --version option:
No arguments are currently supported with the agentadmin command when using the --version option. Example 2–10 Command Usage: agentadmin --versionIssuing the agentadmin command with the --version option provides you with version information for the configured J2EE agents on that machine. For example, if a J2EE agent were configured on Sun Java System Application Server 8.1, the following text demonstrates the type of output that would result from issuing this command:
In the preceding example, notice that the Version field shows the major version number. The Build Number shows the minor version number. The Date field provides the date and time the agent was built, while the Build Platform field provides information about the platform on which the agent was built. The Client SDK versions signify the Access Manager–related client SDK versions that were shipped with the agent. agentadmin --encryptThis section demonstrates the format and use of the agentadmin command with the --encrypt option. Example 2–11 Command Format: agentadmin --encryptThe following example illustrates the format of the agentadmin command with the --encrypt option.
The following arguments are supported with the agentadmin command when using the --encrypt option:
Example 2–12 Command Usage: agentadmin --encryptIssuing the agentadmin command with the --encrypt option enables you to change the password for an existing agent profile in Access Manager after the agent is installed. For example, issuing the following command encrypts the password file, pwfile1 for the J2EE agent instance directory Agent_001:
The following is an example of an encrypted value:
Each agent uses a unique agent ID and password to communicate with Access Manager. Once the agent profile for a specific agent has been created in Access Manager, the installer enters the Policy Agent profile name and encrypted password in the respective J2EE agent AMAgent.properties configuration file for the agent instance. If you choose a new password for the Policy Agent profile, encrypt it and enter that encrypted password in the J2EE agent AMAgent.properties configuration file with the following property:
agentadmin --getEncryptKeyThis section demonstrates the format and use of the agentadmin command with the --getEncryptKey option. Example 2–13 Command Format: agentadmin --getEncryptKeyThe following example illustrates the format of the agentadmin command with the --getEncryptKey option:
No arguments are currently supported with the agentadmin command when using the --getEncryptKey option. Example 2–14 Command Usage: agentadmin --getEncryptKeyThis option may be used in conjunction with the --encrypt option to encrypt and decrypt sensitive information in the J2EE agent AMAgent.properties configuration file. Issuing the agentadmin command with the --getEncryptKey option generates a new encryption key for the J2EE agent. For example, the following text demonstrates the type of output that would result from issuing this command:
The encryption key is stored in the J2EE agent AMAgent.properties configuration file. Therefore, once you generate a new encryption key, use it to replace the value of the property that is currently used to store the encryption key. The following property in the J2EE agent AMAgent.properties configuration file stores the encryption key: com.sun.identity.client.encryptionKey For example, using the encryption key example provided previously, updating the encryption key value in the J2EE agent AMAgent.properties configuration file could appear as follows: com.sun.identity.client.encryptionKey = k1441g4EejuOgsPlFOSg+m6P5x7/G9rb Once you have updated the J2EE agent AMAgent.properties configuration file with the new encryption key, issue the agentadmin --encrypt command to actually encrypt a password. The --encrypt option uses the encryption key in its processing. agentadmin --uninstallAllThis section demonstrates the format and use of the agentadmin command with the --uninstallAll option. Example 2–15 Command Format: agentadmin --uninstallAllThe following example illustrates the format of the agentadmin command with the --uninstallAll option:
No arguments are currently supported with the agentadmin command when using the --uninstallAll option. Example 2–16 Command Usage: agentadmin --uninstallAllIssuing the agentadmin command with the --uninstallAll option runs the agent uninstaller in an iterative mode, enabling you to remove select J2EE agent instances or all J2EE agent instances. You can exit the recursive uninstallation process at any time. The advantage of this option is that you do not have to remember the details of each installation-related configuration. The agentadmin program provides you with an easy method for displaying every instance of a J2EE agent. You can then decide, case by case, to remove a J2EE agent instance or not. agentadmin --getUuidThis section demonstrates the format and use of the agentadmin command with the --getUuid option. Example 2–17 Command Format: agentadmin --getUuidThe following example illustrates the format of the agentadmin command with the --getUuid option:
The following arguments are supported with the agentadmin command when using the --getUuid option:
For example, if the ID of the user is manager, the identity type is role, and the realm name is dc=example,dc=com, the following would be the universal ID:
The universal ID concept is only valid starting with Access Manager 7.1. Do not use this option with earlier versions of Access Manager, such as version 6.3. If the application is deployed with Access Manager 6.3 principals or roles, replace the role-to-principal mappings with the distinguished name (DN) of the user in Access Manager 6.3. Example 2–18 Command Usage: agentadmin --getUuidIn Access Manager 7.1, issuing the agentadmin command with the --getUuid option retrieves the universal ID of any identity type in Access Manager 7.1. Use the correct universal ID generated by this command in a deployment descriptor that is application container specific. agentadmin --usageThis section demonstrates the format and use of the agentadmin command with the --usage option. Example 2–19 Command Format: agentadmin --usageThe following example illustrates the format of the agentadmin command with the --usage option:
No arguments are currently supported with the agentadmin command when using the --usage option. Example 2–20 Command Usage: agentadmin --usageIssuing the agentadmin command with the --usage option provides you with a list of the options available with the agentadmin program and a short explanation of each option. The following text is the output you receive after issuing this command:
The preceding output serves as the content for the table of agentadmin options, introduced at the beginning of this section. agentadmin --helpThis section demonstrates the format and use of the agentadmin command with the --help option. Example 2–21 Command Format: agentadmin --helpThe following example illustrates the format of the agentadmin command with the --help option:
No arguments are currently supported with the agentadmin command when using the --help option. Example 2–22 Command Usage: agentadmin --helpIssuing the agentadmin command with the --help option provides similar results to issuing the agentadmin command with the --usage option. Both commands provide the same explanations for the options they list. With the --usage option, all agentadmin command options are explained. With the --help option, explanations are not provided for the --usage option or for the --help option itself. A another difference is that the --help option also provides information about the format of each option while the --usage option does not. J2EE Agent Directory Structure in Policy Agent 2.2The Policy Agent installation directory is referred to as the Policy Agent base directory (or PolicyAgent-base in code examples). The location of this directory and its internal structure are important facts that are described in this section. Location of the J2EE Agent Base Directory in Policy Agent 2.2Unzipping the J2EE agent binaries creates a directory named j2ee_agents, within which an agent-specific directory is created. For example, if the J2EE agent being installed is Policy Agent 2.2 for Sun Java System Application Server 8.1, the directory created is named am_as81_agent. For other J2EE agents, the directory name is slightly different, but the naming format is the same. To see the preceding directory name specific to the J2EE agent you are using, see Example 3–1. This agent-specific directory is the Policy Agent base directory, referred to throughout this guide as the PolicyAgent-base directory. For the full path to the PolicyAgent-base directory, see Example 2–23. Example 2–23 Policy Agent Base DirectoryThe directory you choose in which to unzip the J2EE agent binaries is referred to here as Agent_Home. The following path is an example of the location for the PolicyAgent-base directory for the IBM WebSphere Portal Server 6.0 agent:
For other J2EE agents, the directory names are different, but the naming format is the same. To see the preceding path name specific to the J2EE agent you are using, see Example 3–1. References in this book to the PolicyAgent-base directory are references to the preceding path. Inside the J2EE Agent Base Directory in Policy Agent 2.2After you finish installing an agent by issuing the agentadmin ---install command and interacting with the installer, you must access J2EE agent files in order to configure and otherwise work with the product. Within the Policy Agent base directory are various subdirectories that contain all agent configuration and log files. The structure of the Policy Agent base directory for a J2EE agent is illustrated in Table 2–2. The list that follows the table provides information about many of the items in the example Policy Agent base directory. The Policy Agent base directory is represented in code examples as PolicyAgent-base. The full path to any item in this directory is as follows: PolicyAgent-base/item-name where item-name represents the name of a file or subdirectory. For example, the full path to the bin directory is as follows: PolicyAgent-base/binTable 2–2 Example of Policy Agent Base Directory for a J2EE Agent
The preceding example of PolicyAgent-base lists files and directories you are likely to find in this directory. The notable items in this directory are summarized in the list that follows:
Configuring a J2EE Agent With Access Manager 6 2005Q1 (6.3)Policy Agent 2.2 was released with Access Manager 7 and is designed to take advantage of functionality present in this release. However, J2EE agents in the Policy Agent 2.2 release can be configured to run with Access Manager 6.3 Patch 1 or greater. Certain features that Policy Agent 2.2 takes advantage of in Access Manager 7.1 are not available in Access Manager 6.3, such as “composite advices”and “policy-based response attributes.” You can configure a J2EE agent in the Policy Agent 2.2 release to communicate with Access Manager 6.3 Patch 1 or greater as described in the following tasks, which are divided into pre-installation, installation, and post-installation steps.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||