Tom Lasswell

  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Tom Lasswell

  1. @Saqib this could be pretty easily achieved with PowerShell. PowerShell has a command Resolve-DnsName ( that allows you to poll for that information. You could set it up to do manual instances, and if you didn't want the results from the collector itself (which is where you'd be polling from), you could do PS Remoting and get those results from any windows machine that collector has access to (i.e., from different networks without having to install collectors at every location if you're not setup that way).
  2. Hi there, I've moved on to another company and don't have access to this anymore, but it was some additional information in the groovy script that just each time it iterated through the serial numbers it added additional properties. A crash course in groovy is going to be very helpful for you being new to LM!
  3. As a workaround, typically we create a "cloned" datapoint that allows for the alerts to go for different threshold responses.
  4. Found it it's in the call to LM, int itemsPerPage = 800
  5. @Kerry DeVilbiss this is awesome. Question for y'all on this, the total alert count looks to be maxing at 800. I haven't done any troubleshooting yet to see if that's just what it's reporting, but curious if that's a limitation somewhere in the script.
  6. @farnaz It's in the recently deleted area.
  7. @mnagel that's a good point. Opsnotes would be great to put an alert was generated and these were the processes working there, I pieced together a small powershell script that uses perfmon (so we can get the % without any additional calculations) you could convert this to groovy with a wmi query and use a complex datapoint with a groovy calculation with an if cpu datapoint is x then calculate and post the opsnote to the device. Obviously this would need to be adjusted to fit LM wildcards and parameters. $Cred = (Get-Credential) #New-Object –TypeName System.Management.Automation.
  8. @Mike Suding I saw this before, thinking about modifying this idea into pushing a configsource query and grabbing it that way. @mnagel opsnotes seems like an interesting idea as well
  9. @Kerry DeVilbiss I believe we have one in our dev environment. would be open to help test. REST APIs on these Cisco products are getting much better than using SNMP for sure.
  10. @viresh18 this is a great question, you're referencing the RPC API however, I'm not sure about the data ingest portion of Grafana but REST is the way to go now for the data. The REST get data methods are far better and provides better JSON as well as a CSV output for processing. Be aware there are limits on your API queries, so you'll want to define these in a way where you don't hit your limits. these articles should give you some info: I'd
  11. @Brent Reeves ACI monitoring is a quite complicated area. We've developed some custom things around the way we want to monitor and document things, but I do have a few basic monitoring ones that I can share. It may take a while to go through security validation though on the LM side. Ultimately, building the datasources isn't highly complicated for getting the data out of the ACI console. My engineers are mostly versed in PowerShell so this example is how to login and pull data via REST from the APIC for data, but to find the calls you'd want to make you'd use dev tools in Chrome and watch the
  12. @Joe Williams the easiest way is to use postman or something like that to test API access using some of the rest endpoints. I've also noticed, if you're not using your FQDN as your name (not display name, don't use the IP Address) it doesn't work because it needs the actual node name of the cucm server. Are you able to connect to the API via Postman?
  13. NOC is an acronym for Network Operation Center. Heads up monitors are typically called NOC monitors, so you can see where the widget being called a NOC widget is useful for those types of dashboards.
  14. @Joe Williams you shouldn't need the blank $data variable. the $requestVars should just have the $data removed when you're doing a GET. There's two different script samples, one is for a GET and one is for a POST. The issue it looks like what you have above is your $queryParams, this needs to be the way it is in your second example. The auth fails because you're including them in the resourcePath information and that's breaking the authentication hash. In the code you posted second, it should look like this. Hope this helps! <# request details #> $httpVerb = 'GET' $resourcePat
  15. What would be awesome too to add would be a vcenter lookup to see what vcenter is hosting a vm. Haven't found a good way to do that yet.
  16. @Sarah Terry We (Patrick and I) were using the aggregate options on the RPC to pull period min,max,average,change for our ticketing integration. To do some of this information now, it would require a few iterations through the get-data REST functions to get ... say, a 7 day change percentage, or average. We use this to enhance the messages that we create in Autotask on certain alerts that are triggered.
  17. Anyone use a Peloton? I'm almost done doing a new datasource and was curious if anyone's interested in any stats to pull in for your riding I mayyyyyyy be too big of a nerd.
  18. Alright, disregard that old code, whoooo, that's a lot harder to do than what you pointed me at @Michael Rodrigues, i can't believe I missed that in the support documentation. Anyways, got it working this way. Thanks! import com.santaba.agent.groovyapi.http.*; import groovy.json.JsonSlurper; def hostName = hostProps.get("system.hostname"); def user = hostProps.get("viptela.user"); def pass = hostProps.get("viptela.pass"); slurper = new JsonSlurper() // instantiate an http client object for the target system httpClient =, 443); // use an authentication API call
  19. @Michael Rodrigues to give you an example, I copied the PURE datasource groovy script (as I have to cache a cookie). It's the hostname verification that seems to be the issue and Viptela is a little weird in their self signed certs, having one of our engineers look at it and trying to figure out if we can sign it with the fqdn for the friendly name. It looks like the link you provided has an easier way to get the cookie data, so i'll look and rewrite this code below to follow those examples. import groovy.json.JsonSlurper; hostName = hostProps.get("system.hostname"); user = hostProps.get(
  20. To all those out there doing groovy scripting. Looking for a way to ignore the SSL errors for self signed certificates where it doesn't match the hostname. I found some code snippets but the LM collector doesn't appear to like it too much by disabling SSL verification in a groovy script. Anyone out there run into this and have an idea on how to get around it? [02-21 11:13:19.608 EST] [MSG] [WARN] [script-running-2::script.running:Task:232203255:{url removed}:Viptela General_:script:1:7] [GroovyScriptExecutor.execute:79] Failed to execute the script with Invocation exception, CONTEX
  21. I did something very similar @Brandon, trying to get the detail around each stack to be utilized in our CMBD. Need to get this out at some point I used two methods to display it, one is for each for the number of switches individually and then one comma seperated with the switch deliminator at the beginning.
  22. I haven't kept up on this thread for sure. I do have some modifications to these but mostly there's some cleanup i need to do on some dupe properties that are created for testing purposes (to make sure numbers matched up). I'll see if i can get updated ones finished up this week as I also need to get this done for some of our CMDB efforts we're working on.
  23. Interesting idea, we currently use the API for this as there are defined properties and things that are set. I'd recommend that you look at doing this programatically instead of using a GUI clone feature. This way you can keep the standard in code and use all the customization can be done there.
  24. Hey there, we have a client that does a multicast stream with video and sometimes that stream drops and they have no way of noticing it unless a user calls in about it. Has anyone developed anything to monitor multicast from a Cisco switch or monitor the multicast stream from the network? Searches provide information from years ago (yes, not many people do multicast streams anymore). Just curious if anyone had something like this and if they've had a way to monitor it.
  25. George wrote a great powershell script just for SDT scheduling from a CSV with the device, this would just need a modification to do a device query based on a filter on displayname, grab the ID, and then run the function.