7 Advanced Management Console Agent Installation and Configuration
The Advanced Management Console agent runs as a native service with the operating systems (Windows, Linux, and macOS) on a client desktop. The agent finds all the installed Java runtimes, and then enables and automatically configures Java Usage Tracker. The agent periodically reports Java usage and other data (operating system family, version, and installed Java runtimes) to the AMC server. The agent downloads and applies the Deployment Rule Set.
This topic contains the following sections that describe the AMC agent, agent bundle, agent installation, and agent distribution:
About Advanced Management Console Agent
The Advanced Management Console agent is a background service.
The Advanced Management Console agent performs the following tasks:
-
Identifies all the installed Java runtimes on the desktop and reports the resulting list to the Advanced Management Console server.
-
Enables Java Usage Tracker for each Java runtime in which Java Usage Tracker is available.
-
Reports the usage of Java applications and Java runtimes to the server.
-
Downloads deployment rule sets from the AMC server and installs them on a client desktop.
-
Allows installation and uninstallation of Oracle Java runtimes (JRE or JDK) on Windows and macOS platforms.
Advanced Management Console supports Windows,
macOS, and Linux distributions (with systemd
or
upstart
service management framework). See Software Prerequisites and System Requirements for Advanced Management Console
Components for details. For platforms that are not supported, the Java Usage
Tracker can be configured manually.
Advanced Management Console Agent Bundle
The Advanced Management Console agent is
bundled as a .zip
file.
The bundle file is configured with Application server URL and Application server certificate chain details. You can download the agent bundle from the Advanced Management Console server through the Advanced Management Console User Interface (UI). The bundle installs the agent on the desktop that must be managed by the Advanced Management Console server.
The Advanced Management Console agent bundle is configured to the Advanced Management Console server that it has been downloaded from.
Note:
If multiple agents from different servers are installed on the same machine, then the earlier configurations will be overwritten by the latest agent installation. The system is configured to communicate with the server from which the latest agent bundle was downloaded.Installing Advanced Management Console Agent
The Advanced Management Console agent installation requires administrator privileges and should be performed by a system administrator.
This topic contains the following sections:
Configuring the Agent Proxy and the Agent Intervals
The agent proxy server is included in the bundle. If the bundle is already downloaded and the proxy is changed later, the bundle will not contain the proxy settings.
Installing Advanced Management Console Agent on Windows
To install the agent on Windows:
Installing Advanced Management Console Agent on Linux
You can use the bin/AMCAgent.sh
script file to install
and uninstall the Advanced Management Console agent on
the Linux operating system. The Advanced Management Console agent is a native service that you can start, stop, or restart from the
Linux terminal.
/usr/local/Oracle/Java_AMC
directory and starts the daemon. It
also registers the native service by placing the registration file in
/etc/systemd/system/
or /etc/init/
directories for systemd
or upstart
frameworks
respectively.
Installing Advanced Management Console Agent on macOS
You can use the bin/AMCAgent.sh
script file to install
and uninstall the Advanced Management Console agent on
the macOS operating system. The Advanced Management Console agent is a launched daemon that you can start, stop, or restart by using
the launchctl
command.
/Library/Application Support/Oracle/Java_AMC
directory, the .plist
file to /Library/LaunchDaemons/
, and starts the daemon.
Advanced Management Console Agent Logging
The Advanced Management Console agent utilizes the Java logger to log information about tasks performed by the agent as well as any errors that are encountered.
- Windows:
%PROGRAMDATA%\Oracle\Java_AMC
- macOS:
/Library/Application Support/Oracle/Java_AMC
- Linux:
/usr/local/Oracle/Java_AMC/
The logs are rotated according to a policy. Beginning with Advanced Management Console 2.7, the maximum size of the log files and the number of files are configurable through AMCAgent.properties. By default, the rotation uses three log files with a maximum size of 64K. This means that when the first log file grows to a size of 64K, logs are directed to the second log file. When the third log becomes full, the log rotates back to the first file, overwriting any existing contents there. See Configuring the Agent Proxy and the Agent Intervals for procedures you can use to edit logging parameters.
Unstalling Advanced Management Console Agent
Uninstalling the Advanced Management Console Agent on Windows
On Windows, you can run the remove
command to uninstall the
Advanced Management Console agent and remove all Java Usage Tracker Properties files from
the desktop.
Uninstalling the Advanced Management Console Agent on Linux
On Linux, you can run the remove
command to uninstall the
Advanced Management Console agent and remove all Java Usage Tracker Properties files
from the desktop.
sudo bash ${AMC_DIR}/bin/AMCAgent.sh -remove
The agent attempts to unregister itself on the Advanced
Management Console server before uninstalling. After the agent is
unregistered on the server, all Java Usage Tracker configuration
files (usagetracker.properties
) on the desktop are
also removed.
If the Advanced Management Console
server is not reachable, this could cause the uninstallation to
stall or fail. In this case, you can use the sudo bash ${AMC_DIR}/bin/AMCAgent.sh -forceremove
command to force the agent to uninstall without unregistering first.
However, AMCAgent.exe -forceremove
does not perform
the cleanup of usagetracker.properties
files.
AMCAgent.sh -forceremove
command in the following
scenarios:
-
If using the
AMCAgent.sh -remove
command fails to uninstall the agent service, then run theAMCAgent.sh -forceremove
command to force uninstall the agent. -
If the agent was never successfully registered on the server, then you need to execute
AMCAgent.sh -forceremove
command to uninstall the agent. TheAMCAgent.sh -remove
command doesn’t work in such a scenario.
Note:
See Unregistering Desktops to unregister the agent from the User Interface.-
/etc/systemd/system/
-
/etc/init/
Uninstalling the Advanced Management Console Agent on macOS
On macOS, you can run the remove
command to uninstall the
Advanced Management Console agent and remove all Java Usage Tracker Properties files
from the desktop.
sudo ${AMC_DIR}/bin/AMCAgent.sh -remove
The agent attempts to unregister itself on the Advanced
Management Console server before uninstalling. After the agent is
unregistered on the server, all Java Usage Tracker configuration
files (usagetracker.properties
) on the desktop are
also removed.
If the Advanced Management Console
server is not reachable, this could cause the uninstallation to
stall or fail. In this case, you can use the ${AMC_DIR}/bin/AMCAgent.sh -forceremove
command to
force the agent to uninstall without unregistering first. However,
AMCAgent.exe -forceremove
does not perform
the cleanup of usagetracker.properties
files.
AMCAgent.sh -forceremove
command in the following
scenarios:
-
If using the
${AMC_DIR}/bin/AMCAgent.sh -remove
command fails to uninstall the agent service, then run the${AMC_DIR}/bin/AMCAgent.sh -forceremove
command to force uninstall the agent. -
If the agent was never successfully registered on the server, then you need to execute
AMCAgent.sh -forceremove
command to uninstall the agent. TheAMCAgent.sh -remove
command doesn’t work in such a scenario.
Note:
See Unregistering Desktops to unregister the agent from the User Interface..plist
file from the following directories:
-
/Library/LaunchDaemons/
-
/Library/Application Support/Oracle/Java_AMC
Unregistering Desktops
You can use the Advanced Management Console to remove any desktops that cannot contact the Advanced Management Console server.
Distributing Advanced Management Console Agent
In an enterprise environment, deploying Advanced Management Console agent requires installation and configuration of AMC agent on each client desktop. Distribution of the AMC agent bundle is not handled by the Advanced Management Console and has to be taken care separately.
Consider using a desktop as a host to stage the agent bundle. From this host, distribute and install the agent bundle on multiple client desktops.
Follow these steps to install the AMC agent in multiple client desktops:
- Download the Advanced Management Console agent bundle from the AMC web UI to the host desktop. To download
the agent bundle, select Configuration and then
Agent Download.
Note:
Ensure that you do NOT run the install command (for example,%AMC_DIR%\bin\AMCAgent.exe -install
). By doing so, the host desktop will get registered as an agent with the AMC server. - For distribution of the downloaded agent bundle:
- To distribute the agent bundle to client desktops in your
enterprise, use a Software Management System (such as Microsoft SCCM). The
Software Management System that you choose must be capable of providing
customized options to support secure Advanced Management Console agent distribution. This system must also handle
the following operations using administrator privileges:
- Extraction of the agent bundle. Incorrect extraction may cause improper file permissions that prevent agent from starting.
- Configuration of the bundle based on the client desktop owner's user credentials.
- Installation of the agent using the install command. See Installing Advanced Management Console Agent.
- If the agent bundle is distributed to the client desktops through other means, ensure that extraction of bundle and installation steps are followed as described in Installing Advanced Management Console Agent.
- To distribute the agent bundle to client desktops in your
enterprise, use a Software Management System (such as Microsoft SCCM). The
Software Management System that you choose must be capable of providing
customized options to support secure Advanced Management Console agent distribution. This system must also handle
the following operations using administrator privileges:
After the agent is installed, each client desktop is registered with the Advanced Management Console server. The agent then periodically reports data, such as operating system family and version, and installed JREs to the Advanced Management Console server.
To view the client desktops that are registered with the Advanced Management Console server, log in to the Advanced Management Console web UI and click the Desktops tab.