Packaging and deploying a plug-in
So far we have seen how to monitor a target using various definition files. In this section, we'll see how we can package those files into an archive. This archive can be used to deploy the monitoring support on multiple hosts through Enterprise Manager Console.
Packaging
We'll use emcli
command utility to package all the files required for the management plug-in. One sample command is listed next—for more details on emcli
command and all other options, you can refer to the Enterprise Manager documentation.
emcli add_mp_to_mpa -mpa="/tmp/sun_javawebserver.jar" -mp_version="1.0" -ttd="/tmp/metadata/sun_javawebserver.xml" -dc="/tmp/default_collection/sun_javawebserver.xml" -file="MONITORING_SCRIPT:/tmp/sunws.pl" -func_desc="Management Plug-in version 1.0 for SUN Java Webserver"
Please note that /tmp
is a temporary location where we can copy the files (downloaded from the Packt website).
Deploying
In the next few pages, we'll see how we can upload a plug-in archive...