Verifying the OS Management Hub Plugin Version
Identify the OS Management Hub plugin version that's running on an instance which can help troubleshoot issues, such as determining if an issue exists or has been resolved in the version of the OS Management Hub plugin that you're running.
See also Understanding the Agent.
To verify the OS Management Hub plugin version that's running:
- Connect to the instance by using SSH.
-
Run the following command to verify the version:
- Oracle Linux (on-premises or supported third-party cloud)
-
sudo cat `ps -ef | awk '{print $8}' | grep osmh | sed 's:/[^/]*$::'`/version
For example:
$ sudo cat `ps -ef | awk '{print $8}' | grep osmh | sed 's:/[^/]*$::'`/version 2.0.194.linux.x86_64
- Oracle Linux (OCI)
-
sudo cat `ps -ef | awk '{print $8}' | grep osmh-agent | sed 's:/[^/]*$::'`/version
For example:
$ sudo cat `ps -ef | awk '{print $8}' | grep osmh-agent | sed 's:/[^/]*$::'`/version 2.0.2000008.linux.x86_64
- Windows (OCI)
-
Run the following command as an administrator. The OS Management Hub agent must be running for the command to work.
Get-Process osmh | Select-Object Path
The command returns the path to the agent image, where
<YYMMDD.HHMM>
is the agent image version, such as240323.2122
:Path ---- C:\Windows\ServiceProfiles\OCAOSMH\AppData\Local\OracleCloudAgent\plugins\oci-osmh\osmh-agent\<YYMMDD.HHMM>\osmh
View the
version
file within the<YYMMDD.HHMM>
image directory, such as:cat C:\Windows\ServiceProfiles\OCAOSMH\AppData\Local\OracleCloudAgent\plugins\oci-osmh\osmh-agent\<YYMMDD.HHMM>\version
The
version
file contains the plugin version, such as:2.0.0.windows.x86_64