Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20490

Re: Orion SDK Information

$
0
0

Hi,

 

Just be on the same page, you wanted to copy all the nodes from one database to another using the copynodes script but you need to replace Caption and SysName with Name and IPAddress of Orion.Packages.Wireless.AccessPoints for all the nodes. Correct?

 

In that case, in the copynodes.ps1 make the below mentioned changes

 

1) Replace the below mentioned query (only partial query) in place of

 

# Fetch all properties of the source node
$sourceNodeProps = Get-SwisObject $source $sourceNode.Uri

 

replace with

 

# Fetch all properties of the source node

$sourceNodeProps = Get-SwisData $source "SELECT NODES.ACCESSPOINTS.NAME AS CAPTION, NODES.ACCESSPOINTS.IPADDRESS AS SYSNAME, ... (ADD ALL OTHER PROPERTIES FROM NODES EXCEPT CAPTION AND SYSNAME)

FROM Orion.Nodes Where NodeID = @nodeid" @{nodeid=$sourceNode.Nodeid}

 

This change should copy all the nodes with Caption and Sysname taken from Orion.Packages.Wireless.AccessPoints. Please let me know if any clarification or changes.


Viewing all articles
Browse latest Browse all 20490

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>