We were running IPAM version 4.5 and the following command to obtain the next available IP address for a subnet; Invoke-SwisVerb $swis IPAM.SubnetManagement GetFirstAvailableIp @.
We upgraded to version 4.7 and we have two issues; 1) Domain accounts will not authenticate/run APIs. We have to use local orion accounts to progress. 2) Once a local account is used, the above command is returning....
Invoke-SwisVerb : Incorrect syntax near 's'.
Unclosed quotation mark after the character string '
UNION ALL
SELECT obj.[GroupId],obj.[ParentId],obj.[GroupType],obj.[Address],obj.[AddressN],obj.[AddressEnd],obj.[AddressMask],obj.[CIDR],obj.[FriendlyName],obj.[Comments],obj.[VLA
N],obj.[Location],obj.[LastDiscovery],obj.[Status],obj.[ScanInterval],obj.[TransientPeriod],obj.[RetainUserData],obj.[NodeExpungeInterval],obj.[UsedCount],obj.[Available
Count],obj.[ReservedCount],obj.[TransientCount],obj.[DisableAutoScanning],obj.[TotalCount],obj.[PercentUsed],obj.[HasLicenceOverflow],obj.[DisableNeighborScanning],obj.[
NeighborScanAddress],obj.[NeighborScanInterval],obj.[DnsZoneId],obj.[EngineId],obj.[ClusterId] FROM [IPAM_Group] AS obj
INNER JOIN GroupTree ON obj.ParentId = GroupTree.GroupId
)
SELECT * FROM GroupTree
'.
At C:\Users\admin-jcrowe\Downloads\getIP.ps1:4 char:10
+ $NEWIP = Invoke-SwisVerb $swis IPAM.SubnetManagement GetFirstAvailableIp @("10.2 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Invoke-SwisVerb], FaultException`1
+ FullyQualifiedErrorId : SwisError,SwisPowerShell.InvokeSwisVerb