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

Re: Orion SDK Information

$
0
0

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


Viewing all articles
Browse latest Browse all 20490

Trending Articles



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