question

AliBurakGenc avatar image
0 Votes"
AliBurakGenc asked AliBurakGenc commented

Linux Discovery - Platform not supported while same OS already exists

When running a Linux Discovery on SCOM 2012 R2 - UR14, a server is identified as Oracle Linux 7.9 but discovery issues an "Unsupported - Platform not supported" error with a description of "Failed to find a matching supported agent instance in the imported management packs. Import the Management Pack(s) for this platform in order to discover this computer."

The problem is that there are already tens of Oracle Linux 7.9 agents running in the environment which means that there should not be an MP issue.

At this point of discovery I think a command is issued on server side to get the OS. To identify the problem I want to know what is the result of this command/script on the problematic server and the rest. Anyone know what command or script is used to do so ?

Thanks,
Ali Burak Genç

msc-operations-manager
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AlexZhu-MSFT avatar image
0 Votes"
AlexZhu-MSFT answered AliBurakGenc commented

Hi,

A piece of the script is as below.

 GetKitType() {
 # The os-release file doesn't tell us the type of kit, so try to determine
 if [ `rpm -q rpm 2> /dev/null | /bin/egrep '^rpm-[0-9].*' | wc -l` = 1 ]; then
    OSAlias="UniversalR"
 elif [ `dpkg -l dpkg 2> /dev/null | egrep "^ii.*"| wc -l` = 1 ]; then
    OSAlias="UniversalD"
 else
    OSAlias="Universal?"
 fi
 }

We can manually run the command to see what is the result. If wc -l command returns other than 1, for example, 2, it becomes "not supported". Here's the screenshot for your reference.
/opt/omi/bin/omicli ei root/scx SCX_Agent

104632-scom-linux-discovery.png

Alex
If the response is helpful, please click "Accept Answer" and upvote it.



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks @AlexZhu-MSFT that was a perfect hit.

My colleague said that when he executed the script, got a response of "3"on those servers. Seems the updates were not correctly finished and left in an unstable phase. After correcting the problem we were able to install the agent succesfully on all of the problematic servers.

Regards
Ali

0 Votes 0 ·