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. Script to unlock database and relaunch netXMS if it crashes?

Script to unlock database and relaunch netXMS if it crashes?

Scheduled Pinned Locked Moved Support
3 Posts 3 Posters 24.2k 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.
  • A
    A
    agfjpcs
    wrote on last edited by
    #1

    I've had NetXMS core crash on me once so far and it won't restart because the database is locked, this requires running "C:\NetXMS\bin\nxdbmgr.exe check" but that requires manually answering yes and then later confirming to save changes

    Is there a parameter to automate this, so it automatically force unlocks the database and commits changes. That way I can write a simple .bat script to run and check if netXMS is not running and do the above
    Because we don't use netXMS constantly we can't really afford for it to crash and nobody is aware for several hours (or days if its a weekend) and we lose a huge amount of logging during that period. Hence the need for an automated script to get it up and running again as quickly as possible

    1 Reply Last reply
    0
    • M
      M
      multix
      wrote on last edited by
      #2

      Hi! Youcan use this :
      nxdbmgr unlock -f

      1 Reply Last reply
      0
      • A
        A
        adimitrov
        wrote on last edited by
        #3

        i have a simple script to run nxdbmgr check and "nxdbmgr check -f" is doing the job. I am using ubuntu as a host.

        Best regards,
        Adrian

        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