The idea is in the title. Why can't you autodiscover with IPAM? It just seems such a simple and effective idea. You wouldn't even need to do any scanning. IPAM will do it for you and then you import the nodes.
It occurred to me as well, the code below is the main logic from a powershell script I run. Basically it grabs the IPs in IPAM and not in Orion NPM as a node. In my prod script I also look at the subnet info to output to different places. If its in the first and last few IPs of a range, then I know its a network managed device, if the IP is in a DHCP assigned, its likely a client or still in the build process and I ignore it. I also know which subnets are designated for what in the data center so I can sort them into the right discovery jobs on Orion. A few go to text files so I can review it first, and a few get added directly via the API to a discovery job.
Add-PSSnapin SwisSnapin
$swis = Connect-Swis "L1PERDWNPM01.ChildrensRoot.net" -UserName AlertAdmin -Password "Alert"
$ActiveIPList = Get-SwisData -SwisConnection $swis -Query "SELECT IPAddress, SubnetAddress FROM IPAM.IPInfo Where IPStatusText != 'Available' Order by SubnetAddress, IPAddress"
$ManagedIPs = Get-SwisData -SwisConnection $swis -Query "SELECT IPAddress FROM Orion.NodeIPAddresses"
$ActiveIPList | Foreach {
If ($ManagedIPs -notcontains $_.IPaddress)
{
Out-File -FilePath '.\IPAMScanOutput.csv' -InputObject $_.IPaddress -Append
}
'm going to sound dumb here - do I run this within solarwinds, or, do I run it within powershell?
Looking at the script, I guess I run this in solarwinds maybe???????????
Not dumb, sorry I could have been better at this.
It is Powershell, put it in a ps1 file and run it after putting in an account with admin right to your Orion instance. If you aren't running it from the server you should install the SDK (link below)
GitHub - solarwinds/OrionSDK: SDK for the SolarWinds Orion platform, including tools, documentation, and samples in Powe…
Really the more you do with Orion, the more you will want to get to automating tasks, and the SDK is where taht happens. It comes with a bunch of examples as well in a few scripting languages. Let me know if I forgot anything else that will help.
I was thinking this last night (I have been burning the midnight oil over the last couple of months. Which is very rare for me as I am generally very lazy.) and I was thinking: 'How can I make things better than what they were/are.
We are running six applications:
NPM
NCM
SAM
WPM
IPAM
LEM
And I just want more from it. But I don't know where to start really. Due to our environment, I couldn't do a migration so had to rebuild our entire environment. I have almost done after about three weeks of constant work, but I just want more from it.