How can I execute a query (on a server monitored in SAM) and get back the results from it displayed somewhere in SAM?
TNX in advance.
Well guys I got it
Found everything I need here: The Basics of PowerShell (part 3)
petart - I use two methods for querying SQL into SAM.
Aside from viewing the results in the monitor's Application page, either of these methods lets you display the results in a Custom Object Resource element (again, not intuitive to learn, but doable and and excellent tool in your belt) or alternately a Custom SWQL element (ditto!)
Love to hear how others are handling this.
Does anyone have a simple PowerShell script example?
Connect to database, execute query and view results. Maybe you jorich ?
The links in this thread no longer work.I am trying to do the same with Powershell
link is just broke or been moved... here is new link: The Basics of PowerShell (part 3)thwack.solarwinds.com/.../the-basics-of-powershell-part-3