Unix / Linux SCOM Commandlets

CMdLet Description
Get-SCXAgent Returns list of managed UNIX / Linux computers
Get-SCXSSHCredential Creates an SSH credential
Install-SCXAgent Install SCOM agent for discovered UNIX / Linux computers.
Invoke-SCXDiscovery Invokes the discovery operation for the specified configuration of UNIX / Linux computers.
Remove-SCXAgent Remove a UNIX or Linux computer from a management group.
Set-SCXResourcePool Change the managing resource pool for the targeted UNIX or Lunix computer.
Uninstall-SCXAgent Uninstall the UNIX / Linux agent.
Update-SCXAgent Updates the UNIX / Linux agent
scxcertconfig -list List the Xplat certificates installed in management group
scxcertconfig -remove Remove the Xplat certificates installed in management group

Example 1:

Input: get-SCXagent

Output: Will return list of all Unix / Linux managed agents

Example 2:

Input: get-SCXagent | where {$_.Name -match “X01C-XPSCOM”} | Remove-SCXAgent

Output: No output will be displayed however, agent that matches with name X01C-XPSCOM will be removed from management group.

Example 3:

Input: scxcertconfig -list

Output: Will display all Xplat certificates installed in management group.

Example 4:

Input : scxcertconfig -remove-all

Output: No output will be displayed however, all Xplat certificates installed in management group will be removed.

Blank select performance counter in SCOM

Issue:

When it says select performance counter like in the screenshot below  and you do not see anything to select

SCOM_Blank Performance counter error

Resolution:

Enable the monitors which are associated with the performance counters.

Reason:

Monitors associated with the performance counters are in disabled state. As a result, you get the see the views but cannot select the counters.

This happens when we import MPs which bring in monitors but it is in disabled state by default.

 

Send Email from SCOM console 2016

While working at a customer location, one day i got a request that they need to send email on scom alerts but does not want to use the traditional or scom email notifications.  Reason that sometimes the person or team who needs to be notified can be different than what is created in subscribers for email notifications.

That’s when i thought that is a really a good request and needs to be incorporated. There is paid option for it in the market already but client was not looking to pay for such a small thing. So i decided to make one and came up with this:

Send email from SCOM console directly

How it works:

  1. When you see an alert is scom console, under Alert Tasks on RHS you also see an action called send email Send Email From SCOM _2
  2. Once you click on it, a new email from your default email client opens up Send Email From SCOM _3
  3. All alerts related details are auto filled in the new email
  4. Just need to add the people in TO field of email
  5. and hit send.

I hope this will help a lot of you.

Please do share your feedback.