How to get the CPU Usage of a Router through Powershell Script?

João Silva 21 Reputation points
2021-07-21T15:07:44.137+00:00

Hello, i'm currently trying to build a dashboard in SCOM with the PowerShell grid widget through a PowerShell script. And I am trying to monitor my network devices (routers) performance stats, like CPU usage, RAM usage, Outgoing and Incoming Bytes without using the Performance Widget (I don't want a graph). And i can't seem to find a way to get the performance stats of my network devices. Does anyone have any knowledge on how to achieve this?

Regards,
Joao

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,482 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,526 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 46,721 Reputation points
    2021-07-21T15:16:19.767+00:00

    You'd use SNMP of course.

    There's a SNMP PowerShell module:
    1.0.0.1

    Or use a COM object:
    powershell-snmp-communication-example

    A quick web search would turn up many more.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.