User (Legacy) Posted June 8, 2007 Report Share Posted June 8, 2007 Newbie Here! Would like some script examples showing how to connect realtime port utilization from our Cisco gear with snmp strings outputting to a PowerGadget. Thanx! Quote Link to comment Share on other sites More sharing options...
TheGadgetGuy Posted June 9, 2007 Report Share Posted June 9, 2007 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. Quote Link to comment Share on other sites More sharing options...
marco.shaw Posted June 11, 2007 Report Share Posted June 11, 2007 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! Quote Link to comment Share on other sites More sharing options...
User (Legacy) Posted June 11, 2007 Author Report Share Posted June 11, 2007 Thanx for the replies - I'll head in that direction till I bump my noggin again! Dan :>) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.