Description
Edits the management database - $FWDIR/conf/objects_5_0.C
file - on the Security Management Server. See skI3301.
Important - Do NOT run this command unless explicitly instructed by Check Point Support or R&D to do so. Otherwise, you can corrupt settings in the management database.
Syntax
dbedit -help |
dbedit [-globallock] [{-local | -s <Management_Server>}] [{ |
Parameters
Parameter |
Description |
---|---|
|
Prints the general help. |
|
When you work with the dbedit utility, it partially locks the management database. If a user configures objects in SmartConsole at the same time, it causes problems in the management database. This option does not let SmartConsole, or a dbedit user to make changes in the management database. When you specify this option, the dbedit commands run on a copy of the management database. After you make the desired changes with the dbedit commands and run the |
|
Connects to the localhost (127.0.0.1) without using username/password. If you do not specify this parameter, the dbedit utility asks how to connect. |
|
Specifies the Security Management Server - by IP address or HostName. If you do not specify this parameter, the dbedit utility asks how to connect. |
|
Specifies the username, with which the dbedit utility connects to the Security Management Server. Mandatory parameter when you specify the |
|
Specifies the user's certificate file, with which the dbedit utility connects to the Security Management Server. Mandatory parameter when you specify the |
|
Specifies the user's password, with which the dbedit utility connects to the Security Management Server. Mandatory parameter when you specify the |
|
Specifies the file that contains the applicable dbedit internal commands (see the section "dbedit Internal Commands" below):
Note - Each command is limited to 4096 characters |
|
Continues to execute the dbedit internal commands in the file and ignores errors. You can use it when you specify the |
|
Continues to update the modified objects, even if the operation fails for some of the objects (ignores the errors and runs the You can use it when you specify the |
|
Specifies the reason for opening the database in read-write mode (default mode). |
|
Specifies the name of the database, to which the dbedit utility should connect (for example, |
|
The dbedit utility "listens" for changes (use this mode for advanced troubleshooting with the assistance of Check Point Support). The dbedit utility prints its internal messages when a change occurs in the management database. |
|
Specifies to open the management database in read-only mode. |
|
Session Connectivity. |
dbedit
Internal Commands
Command |
Description, Syntax, Examples |
---|---|
|
Description: Prints the general help. Syntax:
|
|
Description: Quits from dbedit. Syntax:
Examples:
|
|
Description: Saves the specified object in the specified table (for example, " Note - To see the available tables, connect to Management Server with GuiDBedit Tool. Syntax:
Example: Save the object My_Service in the table services:
|
|
Description: Saves all the modified objects. Syntax:
|
|
Description: Prints the specified object from the specified table (for example, " Note - To see the available tables, connect to Management Server with GuiDBedit Tool. Syntax:
Example: Print the object My_Obj from the table network_objects:
|
|
Description: Prints the list of attributes of the specified object from the specified table (for example, " Note - To see the available tables, connect to Management Server with GuiDBedit Tool. Syntax:
Examples:
|
|
Description: Prints in XML format the list of attributes of the specified object from the specified table (for example, " You can export the settings from a Management Server to an XML file that you can use later with external automation systems. Note - To see the available tables, connect to Management Server with GuiDBedit Tool. Syntax:
Examples:
|
|
Description: Prints the attributes of the object specified by its UID (appears in the Syntax:
Example: Print the attributes of the object with the specified UID:
|
|
Description: Prints all the objects in the specified table. Optionally, you can query for objects with specific attribute and value - query is separated by a comma after " Note - To see the available tables, attributes and values, connect to Management Server with GuiDBedit Tool. Syntax:
Examples:
|
|
Description: Checks where the specified object used in the database. Prints the number of places, where this object is used and relevant information about each such place. Syntax:
Example: Check where the object My_Obj is used:
|
|
Description: Creates an object of specified type (with its default values) in the database. Restrictions apply to the object's name:
Note - To see the available tables and their class names (object types), connect to Management Server with GuiDBedit Tool. Syntax:
Example: Create the service object My_Service of the type tcp_service (with its default values):
|
|
Description: Deletes an object from the specified table. Syntax:
Example: Delete the service object My_Service from the table services:
|
|
Description: Modifies the value of specified attribute in the specified object in the specified table (for example, " Note - To see the available tables, connect to Management Server with GuiDBedit Tool. Syntax:
Examples:
|
|
Description: Locks the specified object (by administrator) in the specified table (for example, " For example, if you connect from a remote computer to this Management Server with admin1 and lock an object, you are be able to connect with admin2, but are not able to modify the locked object, until admin1 releases the lock. Note - To see the available tables, connect to Management Server with GuiDBedit Tool. Syntax:
Example: Lock the object My_Service_Obj in the table services in the database:
|
|
Description: Adds a specified multiple field / container (with specified value) to a specified object in specified table. Note - To see the available tables and their class names (object types), connect to Management Server with GuiDBedit Tool. Syntax:
Examples:
|
|
Description: Removes a specified multiple field / container (with specified value) from a specified object in specified table. Note - To see the available tables and their class names (object types), connect to Management Server with GuiDBedit Tool. Syntax:
Examples:
|
|
Description: Renames the specified object in specified table. Note - To see the available tables, connect to Management Server with GuiDBedit Tool. Syntax:
Example: Rename the network object london to chicago in the table network_objects:
|
|
Description: Removes an element from a container by element's index. Note - To see the available tables, connect to Management Server with GuiDBedit Tool. Syntax:
Example: Remove the element backup_log_servers from the container log_servers by element index 1 in the table network_objects:
|
|
Description: Adds an owned object (and removes its name) to a specified owned object field (or container). Note - To see the available tables, connect to Management Server with GuiDBedit Tool. Syntax:
Example: Add the owned object My_Gateway (and remove its name) to the owned object field (or container) my_external_products:
|
|
Description: Checks if the specified object can be deleted from the specified table (object cannot be deleted if it is used by other objects). Note - To see the available tables, connect to Management Server with GuiDBedit Tool. Syntax:
Example: Check if the object MyObj can be deleted from the table network_objects:
|
|
Description: Sets specified password for specified user. Notes:
Syntax:
Example: Set the password 1234 for the user abcd:
|
|
Description: Saves the database. You can run this command only when the database is locked globally (when you start the dbedit utility with the " Syntax:
|
|
Description: Saves the session. You can run this command only when you start the dbedit utility in session mode (with the " Syntax:
|