service clusterdb (etcd)
Syntax
service clusterdb <option>
Description
Use this command to:
-
Restart and repair the clusterdb (etcd) service
-
Check the status and version of clusterdb (etcd) service
-
Check the logs of clusterdb (etcd) service.
Options
log |
Display the logs of clusterdb (etcd) service. |
repair |
Repair the clusterdb (etcd) service. |
restart |
Restart the clusterdb (etcd) service. |
status |
Display the status of clusterdb (etcd) service. |
version |
Display the version of clusterdb (etcd) service. |
Required Privilege Level
CLI Administrator
Sample Output
service clusterdb
log
$ service clusterdb log Oct 27 11:14:19 tejas-juss etcd[1468]: Starting auto-compaction at revision 10871 (retention: 2 revisions) Oct 27 11:14:19 tejas-juss etcd[1468]: store.index: compact 10871 Oct 27 11:14:19 tejas-juss etcd[1468]: Finished auto-compaction at revision 10871 Oct 27 11:14:19 tejas-juss etcd[1468]: finished scheduled compaction at 10871 (took 58.155µs) Oct 27 11:19:19 tejas-juss etcd[1468]: Starting auto-compaction at revision 10877 (retention: 2 revisions) Oct 27 11:19:19 tejas-juss etcd[1468]: store.index: compact 10877 Oct 27 11:19:19 tejas-juss etcd[1468]: Finished auto-compaction at revision 10877 Oct 27 11:19:19 tejas-juss etcd[1468]: finished scheduled compaction at 10877 (took 40.528µs) Oct 27 11:24:19 tejas-juss etcd[1468]: Starting auto-compaction at revision 10883 (retention: 2 revisions) Oct 27 11:24:19 tejas-juss etcd[1468]: store.index: compact 10883 Oct 27 11:24:19 tejas-juss etcd[1468]: Finished auto-compaction at revision 10883 Oct 27 11:24:19 tejas-juss etcd[1468]: finished scheduled compaction at 10883 (took 41.875µs) Oct 27 11:29:19 tejas-juss etcd[1468]: Starting auto-compaction at revision 10889 (retention: 2 revisions) Oct 27 11:29:19 tejas-juss etcd[1468]: store.index: compact 10889 Oct 27 11:29:19 tejas-juss etcd[1468]: Finished auto-compaction at revision 10889 Oct 27 11:29:19 tejas-juss etcd[1468]: finished scheduled compaction at 10889 (took 53.655µs) Oct 27 11:34:19 tejas-juss etcd[1468]: Starting auto-compaction at revision 10895 (retention: 2 revisions) Oct 27 11:34:19 tejas-juss etcd[1468]: store.index: compact 10895 Oct 27 11:34:19 tejas-juss etcd[1468]: Finished auto-compaction at revision 10895 Oct 27 11:34:19 tejas-juss etcd[1468]: finished scheduled compaction at 10895 (took 45.815µs) Oct 27 11:39:19 tejas-juss etcd[1468]: Starting auto-compaction at revision 10901 (retention: 2 revisions) Oct 27 11:39:19 tejas-juss etcd[1468]: store.index: compact 10901 ..........
service clusterdb
status
$ service clusterdb status Clusterdb: running ● etcd.service - etcd - highly-available key value store Loaded: loaded (/lib/systemd/system/etcd.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2024-10-21 01:04:23 UTC; 1 week 0 days ago Docs: https://etcd.io/docs man:etcd Main PID: 1468 (etcd) Tasks: 22 (limit: 96381) Memory: 33.5M CPU: 33min 40.166s CGroup: /system.slice/etcd.service └─1468 /usr/bin/etcd Oct 28 07:49:19 tejas-juss etcd[1468]: Finished auto-compaction at revision 12333 Oct 28 07:49:19 tejas-juss etcd[1468]: finished scheduled compaction at 12333 (took 29.424µs) Oct 28 07:54:19 tejas-juss etcd[1468]: Starting auto-compaction at revision 12339 (retention: 2 revisions) Oct 28 07:54:19 tejas-juss etcd[1468]: store.index: compact 12339 Oct 28 07:54:19 tejas-juss etcd[1468]: Finished auto-compaction at revision 12339 Oct 28 07:54:19 tejas-juss etcd[1468]: finished scheduled compaction at 12339 (took 33.791µs) Oct 28 07:59:19 tejas-juss etcd[1468]: Starting auto-compaction at revision 12345 (retention: 2 revisions) Oct 28 07:59:19 tejas-juss etcd[1468]: store.index: compact 12345 Oct 28 07:59:19 tejas-juss etcd[1468]: Finished auto-compaction at revision 12345 Oct 28 07:59:19 tejas-juss etcd[1468]: finished scheduled compaction at 12345 (took 34.124µs)
service
clusterdb version
$ service clusterdb version etcdctl version: 3.3.25 API version: 2
Release Information
Command introduced in Juniper Security Director Release 24.4.1.