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

Automation of interface create

$
0
0

I am using a powershell script to create an automation for node creation.  I have found that when the discovery credential is WMI none of the interfaces are added, which is fine.  However; when the discovery credential is SNMP all of the interfaces are added so I added the following code to remove the interfaces from autoimporting but it is not working all of the interfaces are still being added for SNMP discovered devices.

 

#$CorePluginConfiguration = $CorePluginTemp.DocumentElement

 

$InterfacesPluginConfigurationContext = ([xml]"

<InterfacesDiscoveryPluginContext xmlns='http://schemas.solarwinds.com/2008/Interfaces' xmlns:a='http://schemas.microsoft.com/2003/10/Serialization/Arrays'>

    <AutoImportStatus>

    </AutoImportStatus>

    <AutoImportVirtualTypes>

    </AutoImportVirtualTypes>

    <AutoImportVlanPortTypes>

    </AutoImportVlanPortTypes>

    <UseDefaults>false</UseDefaults>

</InterfacesDiscoveryPluginContext>

").DocumentElement

 

 

$InterfacesPluginConfiguration = Invoke-SwisVerb $swis Orion.NPM.Interfaces CreateInterfacesPluginConfiguration @($InterfacesPluginConfigurationContext)

 

 

$StartDiscoveryContext = ([xml]"


Viewing all articles
Browse latest Browse all 2677

Trending Articles



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