Jump to content
Software FX Community
Sign in to follow this  
User (Legacy)

SNMP

Recommended Posts

Hello Dan:

Your best bet would be to combine PowerShell + PowerGadgets and /n Software netCmdlets (more info and a trial download at http://www.nsoftware.com/powershell/). As for sample SNMP scripts, I'm sure /n Software will lead you in the right direction, you will then output whatever stats you want from your Cisco gear to any of the Powergadgets cmdlets.

 ReneG.

 

Share this post


Link to post
Share on other sites

I just have a real basic Cisco router without a whole lot of SNMP features I can query.

Along with what Rene says, here's an example using NetCmdlet's get-snmp cmdlet:

get-snmp -agent 192.168.1.1 -community xxxx -oid sysUpTime.0|out-gauge -type digital -value oidvalue

Above, I'm just doing an SNMP query to get the sysUpTime of my 800 series router I have just sitting around doing nothing.  I think that's in milliseconds.  I then take that output and pass that to the out-gauge cmdlet.  The results give me a LED style graphic that shows me the sysuptime value.  (I can also use the -refresh flag to get the value updated at a regular interval.)

I can do this to get seconds using a "scriptblock":

get-snmp -agent 192.168.1.1 -community xxxx -oid sysUpTime.0|out-gauge -type digital -value {$_.oidvalue/1000}

NetCmdlets and PowerGadgets work well together!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...