Add Custom Objects Via SQL Script
-
-
I would like to add more detail to my post. I wrote the following sql statement. It completes successfully however when I pull up the custom properties of object_id 3367 it is blank in the GUI.
Insert Into object_custom_attributes(object_id, attr_name, attr_value) Values (3367, 'AssetTag', '123456')
-
When a client is connected, objects are cached client-side - so you wont see changed done directly in DB.
Restarting the client should be enough.It might also be a good idea to do DB changed only when the server is off, then run nxdbmgr check, just to make sure database is still in a good health

-
-
Hi,
server caches object data in memory, so direct DB changes while server is working will not be picked up. You can use NetXMS API to modify object custom attributes (either Java API or Python scripts using nxshell).
Best regards,
Victor
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