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. Changing Template - reapply

Changing Template - reapply

Scheduled Pinned Locked Moved Support
9 Posts 4 Posters 29.3k 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.
  • C
    C
    curruscanis
    wrote on last edited by
    #1

    I am starting to use templates in my install to make mass changes easier.  I have a template for windows systems to apply various data collection parameters.  I have applied the template to various systems across several containers.  I have made changes to the template but have noticed that these changes are not applied to the nodes automatically without manually re-applying the template.

    I see that the template configuration has a "Automatic Apply Rules", so I entered the following script:

    sub main() {
        return $node->isAgent;
    }

    I am not seeing the changed template "automaticly" applied to the existing nodes.  Am I missing something?

    Also I would really like to only apply this to "Windows" agents not all agents but I am not familiar with how to script this.

    Please help if you can, and thank you.

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

      Hi,

      you do not need auto-apply script to propagate changes on nodes where template already applied. Changes in template will be propagated on all related nodes as soon as you close data collection editor for template.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • C
        C
        curruscanis
        wrote on last edited by
        #3

        How long does this take, I have changed my template several times and it does not change the given DCI values on the nodes that it has been applied to.

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

          Change should be instant. Another issue could be opened data collection editors for nodes - while data collection for node is open, server will not apply template changes. If this is not the case, then there is serious bug that needs additional debug.

          Best regards,
          Victor

          1 Reply Last reply
          0
          • J
            J
            joni
            wrote on last edited by
            #5

            Also I got this problemon the M5 version. Have been disabled two DCI on Template, and then activate them - all node's have disabled DCI. I tried to repeat the same thing, after restarting the server, so that no server has not been is locked for editing.

            1 Reply Last reply
            0
            • J
              J
              Marco Incalcaterra
              wrote on last edited by
              #6

              @joni said in Changing Template - reapply:

              Also I got this problemon the M5 version. Have been disabled two DCI on Template, and then activate them - all node's have disabled DCI. I tried to repeat the same thing, after restarting the server, so that no server has not been is locked for editing.

              For M5 sounds like the caching problem:

              https://www.netxms.org/forum/announcements/netxms-2-0-m5-released/msg17129/#msg17129

              Best regards,
              Marco

              1 Reply Last reply
              0
              • J
                J
                joni
                wrote on last edited by
                #7
                nxdbmgr get DefaultAgentCacheMode
                NetXMS Database Manager Version 2.0-M5 Build 8027
                2
                
                1 Reply Last reply
                0
                • J
                  J
                  joni
                  wrote on last edited by
                  #8

                  Disabling DCI is working, but enabling is not working from template.

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

                    Hi,

                    templates may be configured not override "disabled" flag on node DCIs. This is done to allow to disable unsupported/unwanted items on some nodes and not re-disable them after each template change. You can turn this off by setting ApplyDCIFromTemplateToDisabledDCI to 1.

                    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