Network Management
Wireless AP information not removed by Database Maintenance in NPM
Stale Wireless Access Points, AP, WAP, data is normally cleared out by the DBM (Database Maintenance). This article shows how to resolve issue with stale wireless AP information not being removed by database maintenance
First published date
Last published date
Overview
It's also important to understand that there are various reason why stale WAP information and accumulate in the database. Typically this is because of a change in how the WAP is being identified to the WC and how the WC stores and keeps track of the WAPs. When that information changes, changes in how the WAPs are indexed can be updated in the adatabase, creating new entries of WAP data, but not clearing out the old WAP data. Here are some reasons that might occur:
-
Controller Reboot or Firmware Update: Sometimes, after a system reboot or firmware update, the order in which WAPs register with the controller can change, potentially leading to a change in their identifiers, especially if the identifiers are dynamically assigned.
-
WAP Replacement: If a WAP is replaced, the new WAP will have a different MAC address and, consequently, a different identifier in the system.
-
Network Topology Changes: Changes in the network topology, such as adding a new subnet or VLAN, might cause WAPs to re-register with the controller, potentially affecting their identifiers.
-
Controller Configuration Reset: If the controller's configuration is reset to default settings, WAP identifiers might be reinitialized.
-
Manual Reconfiguration: Administrators can sometimes manually change the identifier or name assigned to a WAP within the controller's interface.
-
Adding New WAPs: When new WAPs are added to the network, depending on how identifiers are assigned, this might cause a reordering or re-indexing of existing WAPs.
-
Dynamic Assignment: If the controller assigns identifiers dynamically based on the order WAPs connect, then any event causing WAPs to reconnect (e.g., power outages, network disruptions) might change the order and thus their identifiers.
Product section
Cause
Resolution
Open SSMS
- Open or download SQL Management Studio: SQL Management Studio Direct Download Link
- Login to SQL Management Studio with an 'sa' type.
- If the Database Maintenance is currently running, find the 'dbmaintenance.exe' procedure 'spid'
Option 1
- Navigate to Stored Procedures under [DatabaseName] --> Programmability --> Stored Procedures
- right-click the [dbo].[Wireless_DeleteStale] and select 'Modify'
- Find '@chunksize = 10000' Change to '@chunksize = 5000'
- Click 'Execute query' button in top row menu bar only not in File menu bar
- Run database maintenance utility manually or wait till normal maintenance runs as scheduled
Option 2
- Or you can change/execute the following query on the procedure by right-clicking the procedure and selecting 'new query' then executing:
-- Scripts are not supported under any SolarWinds support program or service.
-- Scripts are provided AS IS without warranty of any kind. SolarWinds further
-- disclaims all warranties including, without limitation, any implied warranties
-- of merchantability or of fitness for a particular purpose. The risk arising
-- out of the use or performance of the scripts and documentation stays with you.
-- In no event shall SolarWinds or anyone else involved in the creation,
-- production, or delivery of the scripts be liable for any damages whatsoever
-- (including, without limitation, damages for loss of business profits, business
-- interruption, loss of business information, or other pecuniary loss) arising
-- out of the use of or inability to use the scripts or documentation.
DECLARE @ChunkSize as Int Set @ChunkSize = 5000 - Run database maintenance utility manually or wait till normal maintenance runs as scheduled
** Maintenance may run longer than normal the first time but should be back to normal after that