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. Support
  3. Object Filter in Layer3-Maps

Object Filter in Layer3-Maps

Scheduled Pinned Locked Moved Support
19 Posts 3 Posters 144.6k 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.
  • Dani@M3TU
    Dani@M3TU
    Dani@M3T
    wrote on last edited by
    #7

    Yes maybe Victor can give an answer.

    I only see one VPN connector but no other 'normal' connectors. See the attached printscreen. Strange. All nodes on the left side should be connected to one of the VPN endpoints and the two on the right side with the other. In the map without the filtering script all connectors are there


    map.png

    1 Reply Last reply
    0
    • T
      T
      tomaskir
      wrote on last edited by
      #8

      As I mentioned, for me it works fine with filtering scripts, but I do not show end-nodes on my map.

      Victor will have to shed more light on both the issues 🙂


      map-with-filter.PNG

      1 Reply Last reply
      0
      • Dani@M3TU
        Dani@M3TU
        Dani@M3T
        wrote on last edited by
        #9

        Thanks Tomas for your help.

        Now I hope Victor will see this thread soon.

        Dani

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

          Hi,

          links are not affected by map filter. Did you layout nodes by hand? If not, it seems as if links are there but just invisible. Just in case - check link color in map properties.

          Best regards,
          Victor

          1 Reply Last reply
          0
          • Dani@M3TU
            Dani@M3TU
            Dani@M3T
            wrote on last edited by
            #11

            Hi Victor

            I tried manually and automatic layout. At the moment it's automatic layout. On this map are routers, switches and end nodes.

            Can you please also explain for short the trusted nodes in this situation (not in general).

            thanks
            Dani

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

              currently all scripts are handled equally - so it doesn't matter if script is a network map filter or DCI transformation script for example. Reason is the same - imagine you have access only to network map object - if script do not have access checks you'll be able to access data for nodes you don't have access to. I thinking for some time already about more sophisticated access control within scripts, but don't have better solution yet.

              Best regards,
              Victor

              1 Reply Last reply
              0
              • Dani@M3TU
                Dani@M3TU
                Dani@M3T
                wrote on last edited by
                #13

                ok, thanks for the explanation.

                But do you have any idea why all connectors are missing on the filtered layer3 map?

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

                  Did you check connector color in map properties? By objects' locations it seems that they are connected but connectors are invisible.

                  Best regards,
                  Victor

                  1 Reply Last reply
                  0
                  • Dani@M3TU
                    Dani@M3TU
                    Dani@M3T
                    wrote on last edited by
                    #15

                    Default connection options are on default color. I also tried with manually set to black. VPN-connectors (dotted) and the 'normal' connectors always have the same color. The last printscreen was without automatic layout. Here is one with automatic layout. Here I can't see any arrangement. Everything is mixed up.


                    map2.png

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

                      I probably understand it - nodes on L3 map re connected via subnet objects, not directly - and you filtered out subnet objects. You should change your filter to allow subnets or add relevant subnet objects to your container.

                      Best regards,
                      Victor

                      1 Reply Last reply
                      0
                      • Dani@M3TU
                        Dani@M3TU
                        Dani@M3T
                        wrote on last edited by
                        #17

                        Hi Victor

                        When I add the subnets to the containers, I got the connectors in Layer3 map. But that's not very elegant. The other solution seems to be better.
                        How can I change my filter to allow the necessary subnet objects?

                        My current filter script is this:

                        parents = GetObjectParents($object);
                        //if (parents == null) return false;
                        foreach(p : parents)
                        {
                           if ((p->type == 5) && (p->name == "containerA" || p->name == "ContainerB")) return true;
                        }
                        return false;
                        
                        1 Reply Last reply
                        0
                        • V
                          V
                          Victor Kirhenshtein
                          wrote on last edited by
                          #18

                          Hi,

                          it could be like this:

                          if ($object->type == 1)
                             return true;  // allow all subnets
                          
                          parents = GetObjectParents($object);
                          //if (parents == null) return false;
                          foreach(p : parents)
                          {
                             if ((p->type == 5) && (p->name == "containerA" || p->name == "ContainerB")) return true;
                          }
                          return false;
                          

                          You can also add additional contraints on subnet names as usual using $object->name.

                          Best regards,
                          Victor

                          1 Reply Last reply
                          0
                          • Dani@M3TU
                            Dani@M3TU
                            Dani@M3T
                            wrote on last edited by
                            #19

                            All my subnets has names like '10.1.17.0/24 (SiteA)' and all Containers are named like 'SiteA'. So I can filter like this:

                            // only Subnets with 'SiteA' oder 'SiteB' in name
                            if (($object->type == 1) && (($object->name ~= ".*(SiteA.*)") || ($object->name ~= ".*(SiteB.*)")))
                               return true;
                            

                            Now the filtered map looks ok! But...

                            ...only one new problem. Cluster nodes:
                            I tried to make an extention of the filtering script to handle clusters. But I found with a test script that cluster nodes has no node parents.

                            parents = GetObjectParents($object);
                            foreach(p : parents)
                               println("Type: " . p->type . " Name: " . p->name);
                            

                            Is this by design? With 'GetObjectParents' function I get neither the cluster-object nor the container as parent object. So all clusters nodes are missing on filtered maps.

                            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