I'm wondering if anyone has run into this issue with the python swis client.
I've been using it to step through a set of switches and then interfaces on each switch. My script looks to see if the interface should be monitored or not then removes it from NPM if it is there and should not be monitored or adds it to NPM if it is not there and should be monitored.
The script works exactly as expected except that at some point in the process it fails with a 403 forbidden error. The Orion GUI is inaccessible for a period of time (about 10 minutes I believe). The Orion.InformationService file displays an error 'Service was unable to open new database connection when requested' and 'InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.'
So I thought the script may be throwing too many transactions at the database too quickly. But I tried to test this idea and it doesn't seem to hold. On the last failure the script failed after deleting 118 interfaces in 2 min 53 secs. With the GUI I set 167 interfaces to be removed. That process took 3 seconds. The InformationService log for the deletions look exactly the same if the deletion was with the GUI as with it was with the script.
So with the GUI I delete more interfaces in much less time.
I'm pretty new to Solarwinds so may be missing something obvious. Any thoughts are appreciated.