Quantcast
Viewing all articles
Browse latest Browse all 2677

try to add interface on a node with C#

Hi All,

 

Iam trying to AddInterfacesOnNode using C#:

 

this is interface data:

 

<d1p1:DiscoveredLiteInterface z:Id="183" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:d1p1="http://schemas.solarwinds.com/2008/NPM">

  <d1p1:ifIndex>579</d1p1:ifIndex>

  <d1p1:Caption z:Id="184">xe-1/0/5.20 · test orion</d1p1:Caption>

  <d1p1:ifType>135</d1p1:ifType>

  <d1p1:ifSubType>0</d1p1:ifSubType>

  <d1p1:InterfaceID>0</d1p1:InterfaceID>

  <d1p1:Manageable>true</d1p1:Manageable>

  <d1p1:ifSpeed>0</d1p1:ifSpeed>

  <d1p1:ifAdminStatus>0</d1p1:ifAdminStatus>

  <d1p1:ifOperStatus>4</d1p1:ifOperStatus>

</d1p1:DiscoveredLiteInterface>

 

And when i invoke this method --> var result3 = client.Invoke("Orion.NPM.Interfaces", "AddInterfacesOnNode", arguments2); with correct nodeid and the above discovered interface data ; i receive the below response:

 

<Return z:Id="1" xmlns="http://schemas.datacontract.org/2004/07/SolarWinds.InformationService.Contract" xmlns:d1p1="http://schemas.solarwinds.com/2008/NPM" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">

  <d1p1:DiscoveredInterfaces z:Id="2" z:Size="0" />

  <d1p1:Result>Succeed</d1p1:Result>

</Return>

 

however when i check Orion web console i don't see this interface in managed interfaces and still show unchecked in list of resources view (snapshot is attached)

 

so can anyone tell me what is wrong here and why the interface is not added?

 

Thanks

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 2677

Trending Articles



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