1 Reply Latest reply on Oct 29, 2013 10:25 PM by tdanner

    Adding only UP UP interfaces

    gbass

      When the 'DiscoverInterfacesOnNode' is called the XML return does not contain the interfaces status:

       

      <<<snip>>>

            <d1p1:ifIndex>10502</d1p1:ifIndex>

            <d1p1:Caption z:Id="120">FastEthernet0 - Fa0</d1p1:Caption>

            <d1p1:ifType>6</d1p1:ifType>

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

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

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

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

      <<<snip>>>

       

      In addition if the DiscoveredInterfacesOnNode is call directly after adding a node there are not entries in the Discovered Interfaces table. This is problematic because once the 'AddInterfacesOnNode' method is called with the above sample of XML there is no way to determine what is an active interface and what is administratively down.

       

      Question 1: When is the DiscoveredInterface table populated? Is this only populated based on internal solarwinds polling and discoverey or should it be populated after the above 'DiscoveredInterfacesOnNode' Method is called?

      Quesiton 2: Is it possible to include the ifStatus be it operational or admin within the XML return of the 'DiscoveredInterfacesOnNode' Method?

      Question 3: Are there any ways to determine interface status prior to adding the interface?

       

      Thanks,

        • Re: Adding only UP UP interfaces
          tdanner

          Answer 1: the DiscoveredInterfaces table is populated when you run a regular Network Sonar discovery in the website, either interactive or scheduled. The DiscoverInterfacesOnNode verb does not populate this table - it just accumulates the interface info in memory and returns it to you.

           

          Answer 2: There's no configuration option to add properties to this set, but it's a very reasonable feature request. If you want to track this through SolarWinds support, please reference bug #283322.

           

          Answer 3: Not through DiscoverInterfacesOnNode directly. Two ways to deal with this:

          1. You could just add all the interfaces (that is, call AddInterfacesOnNode without filtering by status), wait for NPM to populate the adminstatus and operstatus fields in the database, then delete the down ones.

          2. You could run your own SNMP Get for ifAdminStatus (1.3.6.1.2.1.2.2.1.7) or ifOperStatus (1.3.6.1.2.1.2.2.1.8) using the ifIndex values returned by DiscoverInterfacesOnNode, then filter using that info.