Hi,
Still not sure why do you need to update IPAddress and Caption of Orion.Nodes as it may affect the functionality.
but provided below the PS script which takes the Name and IPAddress from Wireless_AccessPoint for matching nodeid and update Caption and IPAddress with this. You cannot update properties of Wireless_AccessPoint via SDK.
$nodedetails = Get-SwisData $swis "select Uri, nodeid, caption, ipaddress from orion.nodes" |
foreach ($nodedetail in $nodedetails) { |
# Get Name and IPAddress from WIress_AccessPoints | ||
$wirelessDetail = Get-SwisData $swis "select name, ipaddress from Orion.Packages.Wireless.AccessPoints where nodeid = @nodeid" @{nodeid=$nodedetail.nodeid} |
if ($wirelessDetail -ne $null) { | |
# Update Node | |
$nodedetail.Uri|Set-SwisObject $swis -Properties @{Caption=$wirelessDetail.name; ipaddress=$wirelessDetail.ipaddress;} | |
} | |
} |