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. Is it possible to control NetXMS cache?

Is it possible to control NetXMS cache?

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 27.1k 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
    Sch.Donat
    wrote on last edited by
    #1

    Hi!

    I have a few questions regarding NetXMS database caching:

    Is it possible to turn off caching and set it to write to database instead?
    Is the cache flushing time based or data based? If it is time based, is it possible to set the interval?

    I'm using custom attributes to store some user specified data, which I need to query from DB. I would like to avoid using the web API.

    Best regards,
    Sch. Donat

    1 Reply Last reply
    0
    • Z
      Z
      Tatjana Dubrovica
      wrote on last edited by
      #2

      Hi,

      It is not possible to turn off caching, but you can set synchronization interval by changing server configuration parameter: "SyncInterval".

      1 Reply Last reply
      0
      • S
        S
        Sch.Donat
        wrote on last edited by
        #3

        Hi!

        Thanks for the answer, it works great when I change the Custom Attribute from the NetXMS Management Console via the object properties. I can see the changes after the specified time (in SyncInterval).
        Changing Custom Attributes from script, however, doesn't seem to work. I can see the change in the console, but the server doesn't write it to the database. If I restart the server, the change is completely lost (I can't see it in the console anymore).

        I use the following script, maybe I'm missing something:

        SetCustomAttribute($node, "operationalstatus", "status");
        

        Best regards,
        Sch.Donat

        1 Reply Last reply
        0
        • Z
          Z
          Tatjana Dubrovica
          wrote on last edited by
          #4

          Looks like a bug I'll check it.

          What server version do you use?

          1 Reply Last reply
          0
          • S
            S
            Sch.Donat
            wrote on last edited by
            #5

            I tried it in the latest 3.0 version (I'll check the exact version in a few hours) and in 2.2.16, I haven't tried it in 3.1 yet.

            Edit: server version: 3.0.2357-1 amd64
            Client version:  3.0.2329

            Best regards,
            Sch.Donat

            1 Reply Last reply
            0
            • Z
              Z
              Tatjana Dubrovica
              wrote on last edited by
              #6

              This bug is present in both 3.0 and current 3.1. It will be fixed in next patch release.

              1 Reply Last reply
              0
              • S
                S
                Sch.Donat
                wrote on last edited by
                #7

                Thank you.

                Best regards,
                Sch.Donat

                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