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.
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 ...