7 Replies Latest reply on Sep 16, 2013 9:48 AM by HerrDoktor

    Imported Nodes SNMPv2 get discovered SNMPv1 not

    HerrDoktor

      Hi Folks,

       

      when I add nodes through a script and tell it to use SNMPv1 they are not being fully discovererd by Orion (OID etc. is missing)

      when adding Nodes with SNMPv2 this works like a charm.

       

      Any Ideas?

       

      The relevanrt Script snippetis shown below, when I change the Bold vaule to 1 the node does not get rediscovered.

       

       

      if ($NewNodeCounter){

          foreach($entry in $NewNodelist){

              $newNodeProps = @{

                EntityType="Orion.Nodes";

                IPAddress=$($entry.IP_ADRESSE);

                Caption=$($entry.KOMPONENTE);

                DynamicIP=$False;

                EngineID=$($NewNodeCounter %3 +1);

                Status=1;

                UnManaged=$False;

                Allow64BitCounters=$True;

                Institutsnummer=$($entry.INSTITUT);

              Geraete_Gruppe=$($entry.LOCATION);

              Maintenance=$($entry.MAINTENANCE);

              DNS_IP=$($entry.DNSIPADRES);

              Zugriff=$($entry.ACCESS);

              Institutsname=$($entry.CAM_SI_INSTITUTNAME);

              Geschaeftsstelle=$($entry.Z_BUILDING);

              PLZ=$($entry.BUI_ZIP_CODE);

              Ort=$($entry.BUI_LOCATION);

              Strasse=$($entry.BUI_STREET_AND_NO);

              

                  # SNMP v2 specific

                ObjectSubType="SNMP";

                SNMPVersion=2;

                Community=$($entry.COMMUNITY_RO);

                  RediscoveryInterval="15";

        }

          $Script:NewNodeCounter--

       

       

          $newUri = New-SwisObject $target –EntityType "Orion.Nodes" –Properties $newNodeProps

          $newNode = Get-SwisObject $target -Uri $newUri

        

          # register specific pollers for the node

          $poller = @{

          NetObject="N:"+$newNode["NodeID"];

          NetObjectType="N";

          NetObjectID=$newNode["NodeID"];

          }

             

          # Details

          $poller["PollerType"]="N.Details.SNMP.Generic";

          $pollerUri = New-SwisObject $target -EntityType "Orion.Pollers" -Properties $poller

        

              # Uptime

          $poller["PollerType"]="N.Uptime.SNMP.Generic";

          $pollerUri = New-SwisObject $target -EntityType "Orion.Pollers" -Properties $poller

        • Re: Imported Nodes SNMPv2 get discovered SNMPv1 not
          HerrDoktor

          Hi Folks,

          after studying the SDK Documents I do not see anything special needed for SNMPv1 versus SNMPv2.

           

          SNMP.png

          I already tried the Allow64BitCounter set to '$False', in fact this was the initial setting but still no luck.

          The only thing I found to be needed is the Details Poller.

           

          Any help is appreciated

            • Re: Imported Nodes SNMPv2 get discovered SNMPv1 not
              RichardLetts

              SNMPversion =1 or 2

              This only really affects the use of the awesome GetBulk operator

               

              64-bit counters should be disallowed in snmpv1, except there are some broken snmp implementations out there that do not support getbulk properly, but do have working 64-bit counters...

                • Re: Imported Nodes SNMPv2 get discovered SNMPv1 not
                  HerrDoktor

                  Hi Richard, there are some Nodes that do not "speak" SNMPv2, we found that especially Juniper Nodes did not get discovered when using SNMPv2. What we also found is when we manually click the "test" button in the Node Details below the SNMP Settings the node gets discovered.... but we can not do that manually for a large number of nodes (>10.000)

                   

                  Regards,

                  Holger

                    • Re: Imported Nodes SNMPv2 get discovered SNMPv1 not
                      RichardLetts

                      here are all of the properties that I set when creating a node (from Perl); I've highlighted the ones I think you are missing. I have thousands of juniper switches and a couple of dozen juniper routers, and they are getting discovered okay (as far as I can tell)

                       

                      $swis->Create('Orion.Nodes',

                                      {'Caption'=>$ip,

                                      'IPAddress'=>$ip,

                                      'IPAddressguid' => ip2guid($ip),

                                      'DynamicIP'=>0,

                                      'UnManaged'=>0,

                                      'EngineID'=>1,

                                      'Status'=>1,

                                      'Allow64BitCounters'=>1,

                                      'ObjectSubType'=>'SNMP',

                                      'SNMPVersion'=>2,

                                      'Community'=>$rocid,

                                      'SysObjectID'=>$oid,

                                      'MachineType'=>$MachineType,

                                      'Vendor'=>$Vendor,

                                      'VendorIcon'=>$VendorIcon,

                                      'BufferNoMemThisHour'=>-2,

                                      'BufferNoMemToday'=>-2,

                                      'BufferSmMissThisHour'=>-2,

                                      'BufferSmMissToday'=>-2,

                                      'BufferMdMissThisHour'=>-2,

                                      'BufferMdMissToday'=>-2,

                                      'BufferBgMissThisHour'=>-2,

                                      'BufferBgMissToday'=>-2,

                                      'BufferLgMissThisHour'=>-2,

                                      'BufferLgMissToday'=>-2,

                                      'BufferHgMissThisHour'=>-2,

                                      'BufferHgMissToday'=>-2,

                                      'PercentMemoryUsed'=>-2,

                                      'TotalMemory'=>-2,

                                      'SNMPV2Only'=>0,

                                      'External'=>0,

                                     'DNS'=>'',

                                      'IOSImage'=>'',

                                      'IOSVersion'=>'',

                                      'RWSNMPv3AuthKeyIsPwd'=>1,

                                      'RWSNMPV3AuthKey' => 'None',

                                      'RWSNMPV3AuthMethod'=> 'None',

                                      'RWSNMPV3Context' => 'None',

                                      'RWSNMPv3PrivKeyIsPwd'=>1,

                                      'RWSNMPV3PrivKey' => 'None',

                                      'RWSNMPv3PrivMethod'=> 'None',

                                      'RWSNMPV3Username' => 'None',

                                      'SNMPv3AuthKeyIsPwd' => 1,

                                      'SNMPV3AuthKey' => 'None',

                                      'SNMPv3AuthMethod' => 'None',

                                      'SNMPV3Context' => 'None',

                                      'SNMPv3PrivKeyIsPwd' => 1,

                                      'SNMPv3PrivKey' => 'None',

                                      'SNMPv3PrivMethod'=> 'None',

                                      'SNMPV3Username' => 'None'

                  • Re: Imported Nodes SNMPv2 get discovered SNMPv1 not
                    HerrDoktor

                    Hi all,

                    we discovered that we only need to open the Node in "Manage Nodes" and hit Send and then the node is successfully discovered, However we have more than 10.000 Nodes and we can not do that for all manually.

                     

                    Regards,

                    Holger

                  • Re: Imported Nodes SNMPv2 get discovered SNMPv1 not
                    HerrDoktor

                    Hi Richard, what calculation is behind IP Address to GUID? is this a "known" function? Thanks