Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Feature Requests
  3. node discovery poll

node discovery poll

Scheduled Pinned Locked Moved Feature Requests
9 Posts 2 Posters 88.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    S
    StanHubble
    wrote on last edited by
    #1

    would it be possible to add a manual discovery poll on a subnet? similar to a manual node poll?
    i.e. (EntireNetwork->(zoneUIN)->subnet/mask) rightclick -> poll -> discovery

    Along with a Hook::DiscoveryPoll script that could be called even if no new nodes are added.  This way a subnet-customattribute could be updated with a last run date/time similar to Alex's configuration poll example.

    Thx.

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      All polls run on a node level. It is possible to add discovery poll menu on subnet object, but all it can do is to start discovery polls on each node within subnet.
      When exactly you want discovery poll hook to be called?

      Best regards,
      Victor

      1 Reply Last reply
      0
      • S
        S
        StanHubble
        wrote on last edited by
        #3

        Since the subnet doesn't show up unless there is a node in it, that means there is a node to do the discovery on.  I assume it then looks at the arp table , fdb, cdp, or lldp,  of the existing nodes for new nodes. 

        As to when to do the hook, either at the beginning of the process or the end, i guess it doesn't matter.  what i would be looking to do is set a custom attribute with a last run date/time, whether or not it found anything new.

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          I'm a bit lost - are we talking about hook script or about manually starting discovery poll? Hook script already exist - you can use it to update attributes on all subnets where current node belongs.

          Best regards,
          Victor

          1 Reply Last reply
          0
          • S
            S
            StanHubble
            wrote on last edited by
            #5

            Manually Starting a Discovery Poll on a subnet. 

            As far as existing hook scripts ...I don't see one that would have access to the subnet object (at least not in the comments).

            1 Reply Last reply
            0
            • V
              V
              Victor Kirhenshtein
              wrote on last edited by
              #6

              This is simple hook script that sets attribute "lastDiscoveryPoll" to current time for all node's subnets:

              for(o : GetObjectParents($node))
              {
                 if (o->type == 1)
                 {
                    SetCustomAttribute(o, "lastDiscoveryPoll", time());
                 }
              }
              

              Best regards,
              Victor

              1 Reply Last reply
              0
              • S
                S
                StanHubble
                wrote on last edited by
                #7

                Thx.

                I maybe a little thick......would i create a new script called Hook::DiscoveryPoll or add that into one of the existing Hook:: scripts?

                I currently have:
                11 - Hook::StatusPoil
                12 - Hook::ConfigurationPoll
                13 - Hook::InstancePoll
                15 - Hook::CreateInterface
                16 - Hook::AcceptNewNode

                1 Reply Last reply
                0
                • V
                  V
                  Victor Kirhenshtein
                  wrote on last edited by
                  #8

                  Actually, I made a mistake here. There are hook for topology poll (it's not created by default for some reason, should be called Hook::TopologyPoll), but not for discovery poll. I'll add discovery poll hook in next release.

                  Best regards,
                  Victor

                  1 Reply Last reply
                  0
                  • V
                    V
                    Victor Kirhenshtein
                    wrote on last edited by
                    #9

                    Just added new hook "DiscoveryPoll" - it will be available in 2.2.8.

                    Best regards,
                    Victor

                    1 Reply Last reply
                    0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    Powered by NodeBB Contributors
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups