Hi All,
We have some powershell scripts running in our environment that connect via the SWIS services. Some time in the last couple of months one of the queries has stopped returning data.
After some testing I have been able to isolate the issue using SWQL Studio to not getting ANY data back from the IPAM.Subnets tables.
Even a generic Query returns no results - I have tried with the distinct keyword for the same result.
SELECT SubnetId, ParentId, AddressFROM IPAM.Subnet
Obviously the query we are trying to run also returns no data from the subnets table...
SELECT na.IPNodeId, na.IPNode.IPAddress, na.IPNode.Status, na.IPNode.IPOrdinal, na.IPNode.SubnetId, na.IPNode.subnet.VLAN, na.IPNode.Subnet.FriendlyName, na.IPNode.Subnet.Address, na.IPNode.Subnet.AddressMask, na.IPNode.Subnet.CIDRFROM IPAM.IPNodeAttr na
Or if we try it with more conventional queries...
SELECT na.IPNodeId, n.IPAddress, n.Status, n.IPOrdinal, n.SubnetId, n.subnet.VLAN, s.FriendlyName, s.Address, s.AddressMask, s.CIDRFROM IPAM.IPNodeAttr na INNER JOIN IPAM.IPNode n on na.IPNodeId = n.IPNodeId LEFT OUTER JOIN IPAM.Subnet s on n.SubnetId = s.SubnetId
Our environment is running IPAM 4.7 connecting to remote SQL server. This was upgraded over 8 months ago, but I can't confirm when the query stopped working...
Your suggestions / comments appreciated in advance.
Thanks
Rudi