Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

Invoke SDK to insert/import OrionMap file

$
0
0

HI hope someone can help i am in a little pickle, i am trying to import/insert a Orion map with Powerhsell i have the below:

 

Add-PSSnapin swissnapin


#connect to poller with username used to log on to SW
$swis = Connect-Swis -Hostname xx -UserName xx -Password xx
$path = "newname"
$imagefile = [system.IO.File]::ReadAllBytes('C:\SolarWinds\somthing.orionmap')
$owner = "xx"
$filetype = "0"
$timestamp = Get-Date
Invoke-SwisVerb $swis Orion.MapStudioFiles insertfile @($path,$imagefile,$owner,$filetype,$timestamp)

 

i can see something is happening checking the SWQL studio i have an entry for the new map but when i access Net Atles.. nothing

 

thanks in advanced

 

Hope you dont mind me pulling you in tdanner


Viewing all articles
Browse latest Browse all 2677

Trending Articles



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