Geeks With Blogs

News

qrcode

Lance Robinson

Create Your Badge

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

 Subscribe


Lance's TextBox » About Me » My Resume »Twitter

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 255.255.255.255 -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 lance@nsoftware.com

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 : , , ,

Posted on Thursday, November 9, 2006 12:10 PM | Back to top


Comments on this post: NetCmdlets Part 2: PowerShell cmdlet for SNMP (network management)

# Re: PowerShell and SNMP
Requesting Gravatar...
NetCmdlets contains get-snmp, set-snmp, get-trap, and send-trap cmdlets.
Left by Channel 9 on Jun 14, 2007 1:08 AM

# re: NetCmdlets Part 2: PowerShell cmdlet for SNMP (network management)
Requesting Gravatar...
Left by Doan on Jul 30, 2010 10:40 AM

Your comment:
 (will show your gravatar)


Copyright © Lance Robinson | Powered by: GeeksWithBlogs.net | Join free