Change or regenerate agent ID
-
-
Hello.
Remove file "nxagentd.db" from data directory. Data directory location is logged on startup, something like this:
2020.12.14 12:34:48.558 *I* [ ] Data directory: /opt/netxms/stable/var/lib/netxmsOut of curiosity: are you using our ATM monitoring solution, or made your own based on the NetXMS?
-
Hi Alex
Sorry for the delay in responding, have been away in remote areas doing service calls etc.
That helped me fix the issue.
For anyone else having the same issue, I would recommend delete the databse file from your master image, then new id will be created with the new database.
In my case where we had already deployed and the units were remote and I couldn't delete the database file, as it was in use by the agent I resolved as follows.- edit the agent file and add
DataDirectory = c:\netxms\lib
under the ConfigIncludeDir section. - MAKE SURE you save the agent file.
- Restart the agent and adopt with the new agent id.
Hope this helps anyone else in the same situation.
I am currently creating my own solution with netxms, as I hadn't realised you already had an ATM solution.
Our machines don't appear to be supported.I will PM after speaking to our management to discuss further.
Thanks again for your help.
- edit the agent file and add
-
I just realized that there is a simpler way to do that - run agent with "-T" argument:
(nx-stable) ➜ netxms-stable git:(stable-3.8) nxagentd -h Usage: nxagentd [options] Where valid options are: … -T : Reset agent identity …Agent will exit after reseting ID, so you can do this as Action (define in nxagentd.conf):
Action=Agent.ResetID=C:\NetXMS\bin\nxagentd -TThen execute Agent.ResetID either using object tools, or with "nxaction" command (e.g. "nxaction -o IP Agent.ResetID").
Once ID reset - restart agent (also, you can do this either with object tools, or by using "nxaction IP Agent.Restart") -
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