Is there a script (SWQL) that can generate the WAP devices serial and model number?
So, you can do this but it is a two step process.
You need to create a UnDP (and assign it) to extract the serial numbers from the WLC. The second step is you need to then create a custom SWQL report to list the details out.For Cisco WLC's the OID we've been using is: 1.3.6.1.4.1.14179.2.2.1.1.17 - so go and create your UnDP (https://solarwindscore.my.site.com/SuccessCenter/s/article/Create-a-Universal-Device-Poller-UnDP?language=en_US) and these are the options we've used:
Then you need to create your repot.
The code we used is:
/* Query to get AP Information from the Controllers through the use of UnDPs, because APs are not nodes in Solarwinds but an extra to the Controllers*/SELECT DISTINCT (n.caption) AS 'Controller' ,t1.STATUS AS 'AP Name' ,t2.STATUS AS 'Serial number' ,t3.STATUS AS 'Model number' ,t4.STATUS AS 'Software' ,t5.STATUS AS 'IP Address' ,npm.ClientFROM CustomPollerStatus AS cpsJOIN CustomPollerASsignment AS cpa ON cps.CustomPollerASsignmentID = cpa.CustomPollerASsignmentIDJOIN Nodes AS n ON n.NodeID = cpa.NodeIDJOIN NodesCustomProperties AS npm ON npm.NodeID = n.NodeIDJOIN ( SELECT cps.STATUS ,cps.CustomPollerASsignmentID ,cps.RowID FROM CustomPollerStatus AS cps JOIN CustomPollerASsignment AS cpa ON cps.CustomPollerASsignmentID = cpa.CustomPollerASsignmentID JOIN Nodes AS n ON n.NodeID = cpa.NodeID WHERE cpa.ASsignmentName LIKE 'bsnAPName%' ) AS t1 ON cps.RowID = t1.RowIDJOIN ( SELECT cps.STATUS ,cps.CustomPollerASsignmentID ,cps.RowID FROM CustomPollerStatus AS cps JOIN CustomPollerASsignment AS cpa ON cps.CustomPollerASsignmentID = cpa.CustomPollerASsignmentID JOIN Nodes AS n ON n.NodeID = cpa.NodeID WHERE cpa.ASsignmentName LIKE 'bsnAPSerialNumber%' ) AS t2 ON cps.RowID = t2.RowIDJOIN ( SELECT cps.STATUS ,cps.CustomPollerASsignmentID ,cps.RowID FROM CustomPollerStatus AS cps JOIN CustomPollerASsignment AS cpa ON cps.CustomPollerASsignmentID = cpa.CustomPollerASsignmentID JOIN Nodes AS n ON n.NodeID = cpa.NodeID WHERE cpa.ASsignmentName LIKE 'bsnAPModel%' ) AS t3 ON cps.RowID = t3.RowIDJOIN ( SELECT cps.STATUS ,cps.CustomPollerASsignmentID ,cps.RowID FROM CustomPollerStatus AS cps JOIN CustomPollerASsignment AS cpa ON cps.CustomPollerASsignmentID = cpa.CustomPollerASsignmentID JOIN Nodes AS n ON n.NodeID = cpa.NodeID WHERE cpa.ASsignmentName LIKE 'bsnAPSoftwareVersion%' ) AS t4 ON cps.RowID = t4.RowIDJOIN ( SELECT cps.STATUS ,cps.CustomPollerASsignmentID ,cps.RowID FROM CustomPollerStatus AS cps JOIN CustomPollerASsignment AS cpa ON cps.CustomPollerASsignmentID = cpa.CustomPollerASsignmentID JOIN Nodes AS n ON n.NodeID = cpa.NodeID WHERE cpa.ASsignmentName LIKE 'bsnApIpAddress%' ) AS t5 ON cps.RowID = t5.RowIDORDER BY 'AP Name' ASC
You may need to edit the report code as we used several UnDP names to get a little more info returned. If you change your UnDP names from the default, then you will need to edit them in the above code.We named ours:bsnApIpAddress - OID: 1.3.6.1.4.1.14179.2.2.1.1.19bsnAPModel - OID: 1.3.6.1.4.1.14179.2.2.1.1.16bsnAPName - OID: 1.3.6.1.4.1.14179.2.2.1.1.3bsnAPSerialNumber - OID: 1.3.6.1.4.1.14179.2.2.1.1.17bsnAPSoftwareVersion - OID: 1.3.6.1.4.1.14179.2.2.1.1.8
Hi Stuartd,
The OIDS or UDP are already set it's just the report that I can't make it work, tried the script but getting Query is not Valid. Thanks
It's working now using SQL good thing I was able to read some of your old post. Thank you very much
Ahh yes - apologies. That one was written in SQL but glad you got it working.
Cisco ASR Devices.pollerCisco ASR Devices
SWQL is built on the framework of SQL and as such supports most of the standard clauses as part of a query. A very simple example query is: SELECT Caption, IPAddress, Vendor, ResponseTime FROM Orion.Nodes Dissecting this query is relatively straightforward: show some fields (Caption, IP address, Vendor, and Response Time)…
Active SSL Tunnels-ASA.UnDPThis poller *should* display the number of Active SSL VPN (Anyconnect) Tunnels currently connected to your box. However, I tried it with my 5520 running 8.0.4 and for some reason I get a OID Not Supported. Here's my post in the forum: *EDIT* This is confirmed working with at least Interm release…
HP ProCurve Switches Hardening check.xmlGeneral hardening for HP switches