service configdb (Database)
Syntax
service configdb <option>
Description
Use this command to:
-
Dump the database to another server
-
Restart, repair and restore database service
-
Check the logs and status of database service.
Options
dump |
Dump the database to a remote server. Add the remote server path in the format: [[user@]host1:]directory. For example, root@10.12.12.12:/tmp/ |
log |
Display the logs of configdb service. |
repair |
Repair the configdb service. |
restart |
Restart the configdb service. |
restore |
Restore the configdb service. Specify the SCP URL from where the file needs to be copied. For example,
|
status |
Check the status of configdb service. |
Required Privilege Level
CLI Administrator
Sample Output
service configdb
log
$ service configdb log 2024-10-28 10:09:20,316 INFO: no action. I am (patroni-0), the leader with the lock 2024-10-28 10:09:30,316 INFO: no action. I am (patroni-0), the leader with the lock 2024-10-28 10:09:31.125 UTC [33] LOG {ticks: 0, maint: 0, retry: 0} 2024-10-28 10:09:40,312 INFO: no action. I am (patroni-0), the leader with the lock 2024-10-28 10:09:50,312 INFO: no action. I am (patroni-0), the leader with the lock 2024-10-28 10:10:00,316 INFO: no action. I am (patroni-0), the leader with the lock 2024-10-28 10:10:01.126 UTC [33] LOG {ticks: 0, maint: 0, retry: 0} 2024-10-28 10:10:10,366 INFO: no action. I am (patroni-0), the leader with the lock 2024-10-28 10:10:20,316 INFO: no action. I am (patroni-0), the leader with the lock 2024-10-28 10:10:30,313 INFO: no action. I am (patroni-0), the leader with the lock 2024-10-28 10:10:31.157 UTC [33] LOG {ticks: 0, maint: 0, retry: 0} 2024-10-28 10:10:40,312 INFO: no action. I am (patroni-0), the leader with the lock 2024-10-28 10:10:50,311 INFO: no action. I am (patroni-0), the leader with the lock 2024-10-28 10:11:00,315 INFO: no action. I am (patroni-0), the leader with the lock 2024-10-28 10:11:01.157 UTC [33] LOG {ticks: 0, maint: 0, retry: 0} ........
service configdb
status
$ service configdb status Running Expected Leader Node Backup 1 1 patroni-0 tejas-juss no backup
Release Information
Command introduced in Juniper Security Director Release 24.4.1.