posts - 598 , comments - 849 , trackbacks - 247

My Links



Lance Robinson

Create Your Badge

Lance Robinson is a software engineer in Durham, Chapel Hill, Raleigh, and surrounding areas. More about Lance.


Tag Cloud


Post Categories



Noteworthy Stuff

Popular Posts

NetCmdlets Part 2: PowerShell cmdlet for SNMP (network management)

The SNMP PowerShell cmdlets that come with /n software NetCmdlets support SNMP v1, v2c, and v3, SNMPv3 auth/priv, MIB loading, etc. Here are some examples of using the Get-SNMP, Set-SNMP, Send-Trap, and Get-Trap cmdlets.

Find SNMP enabled machines (agents) on your network:
PS C:\> get-snmp -agent -oid sysName.0

Find processes running on a remote snmp-enabled machine:
PS C:\> get-snmp -agent myagent -oid hrSWRunName -walk $true

Send an SNMP trap to a remote manager:
PS C:\> send-trap -manager somemgr -oid coldStart

Set the system contact information for an agent:
PS C:\> set-snmp -agent myagent -oid sysContact.0 -value

There's a cool demo that comes installed with NetCmdlets that shows how to find the network throughput utilization of each network interface on a particular agent. It does this by walking the ifTable (interface table), checking the bytes going in and out over time and comparing that to the speed of the interface:

Technorati : , , ,

Print | posted on Thursday, November 9, 2006 12:10 PM | Filed Under [ Software PowerShell ]



# Re: PowerShell and SNMP

NetCmdlets contains get-snmp, set-snmp, get-trap, and send-trap cmdlets.
6/14/2007 1:08 AM | Channel 9

# re: NetCmdlets Part 2: PowerShell cmdlet for SNMP (network management)

Very god job

liability insurance california
7/30/2010 10:40 AM | Doan

# re: NetCmdlets Part 2: PowerShell cmdlet for SNMP (network management)

Can you show an example for get-trap ?

I am seeing a warning with get-trap:
WARNING: 320: Invalid or unknown EngineId in packet. Packet ignored.
5/23/2016 5:29 PM | Nandan
Post A Comment

Powered by: