Hiya guys
i've been trying to get some code working, its from the original code, I'm trying to get the AP's over another part of the Orion database -create actual nodes so these can be monitored.
from:
[wireless_AccessPoints].name and IPAddress fields
To:
[nodes].caption and SysName
Name properties from the wireless table needs to be copied to the properties of the caption and SysName fields but not sure how to accomplish this.
There is no properties to copy over so I can remove the $nodePropsToCopy = @("AgentPort"........)
Where the code says:
# Make an in-memory copy of the node
Write-Host "Copying" $sourceNode.Name "(" $sourceNode.IPAddress ")"
# Write $SourceNode.Name to $TargetNode.caption / sysname
I was going to insert the copying there as its in a for loop.
im using NPM 11.0.1
can anyone help