- CheckMates
- :
- Products
- :
- Quantum
- :
- Management
- :
- changing the "sources" attribute of a user object ...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
changing the "sources" attribute of a user object via dbedit
Hi all,
one customer of our own wanted to perform a bulk operation on 5000 users. They wanted to change the "sources" and "destinations" attribute of tons of user objects.
I know dbedit pretty well but I cannot figure out the correct syntax to get it done.
Is there anyone who is able to provide me with the answer?
Thanks a lot in advance!
Kind regards,
Yasushi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is worth a call to TAC - you would not want to mess up 5000 user objects... if you have good working backups you could also consult sk65680: Create users using dbedit, skI3301: Editing the objects_5_0.C file via Check Point database editing utilities and sk22957: Using dbedit to create and configure network, host and group objects
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Günther,
thanks for your reply. I know all the stuff of the sk articles by heart.
I already tried the following Syntax:
dbedit> modify users Mark sources Alpha_Internal_Net
or
dbedit> modify users Mark sources:'Alpha_Internal_NetÄ
or
dbedit> modify users Mark sources <uid of the object>
and so forth.
None of the commands worked out for me. That's the only challenge.
That is the only thing I want to know.
Any ideas?????
Kind regards,
Yasushi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As i did wrote before you better contact TAC - with R80.xx versions, a lot of objects formerly collected in objects.c are now only available in SQL database. See skI3301 stating:
In R7x, dbedit could be used for manipulating all object stored in objects_5_0.C and in other fwset files.
In R80.x, the tool is still supported, but it can manipulate only some of the objects (gateways and global properties for instance), while other objects (such as rulebase) can be managed only by the new mgmt_cli tool.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You might have better luck with the generic-object API, though I will admit I haven't worked it out there either.
To dump all the users with the UIDs (needed for next step): mgmt_cli -r true --format json show generic-objects class-name com.checkpoint.objects.classes.dummy.CpmiUser | jq '.objects[] | .name, .uid'
Then you can do something like: mgmt_cli -r true show generic-object uid USERUID
From there, you'll have to work out the right name/value pairs to edit.
