3 Replies Latest reply on Jan 25, 2017 7:23 AM by Steven Klassen

    Invoke SDK to insert/import OrionMap file

    I LIKE EGGS

      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