HI Pradeep (@Pradeep shunmugam ),
I would encourage you to ask this in a Linux related forum. You have way better chances of getting a proper answer there, as here most of the people answering the threads are SCOM exeperts, but not necessarily Linux experts.
SCOM will be able to either execute the script locally on your Linux systeme as exampled here and then get the data back to SCOM (never nmmind the version of SCOM from the article, the approach is exactly the same in the current SCOM versions, the GUI also):
SCOM 2012 – Linux Two-State Monitor With “Script In Script”
https://www.stefanroth.net/2012/10/21/scom-2012-linux-two-state-monitor-with-script-in-script/
or you can paste the script directly from SCOM as shown here:
SCOM 2016 – What’s New UNIX/Linux Series: Monitors And Rules Running (Any) Script E.G. Perl
https://www.stefanroth.net/2016/08/24/scom-2016-whats-new-unixlinux-series-monitors-and-rules-running-any-script-e-g-perl/
I hope I was able to help.
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Stoyan Chalakov