EMCLI Basic commands
EMCLI stands for Enterprise Manager Command Line Interface. This binary is located under $OMS_HOME/bin or $ORACLE_HOME/bin - whichever is set for the oms installation. Sometimes it can be MIDDLEWARE_HOME. It is actually depends on how the admin configured the environment. For a better understanding check where the oms middleware is installed.
you can check this by running which emcli, it will show if the ORACLE_HOME/bin is part of the PATH variable and it can be executed without changing directory to ORACLE_HOME/bin.
else,
cd $ORACLE_HOME/bin and run the below command.
Prerequisite:
SYSMAN user password
Initiate the Login session:
emcli login -username=SYSMAN
Synchronize the OMS:
emcli sync
Status of the session:
emcli status
Check for Version:
emcli version
Logout from the session:
emcli logout
You can perform all the administrative activities like adding target/removing target/ managing targets through emcli.. to check the full list of commands, please follow this link.
Best Wishes.
No comments:
Post a Comment
If you have any queries/ any suggestion please do comment and let me know.