sudo
Use the sudo command to interact with the shell with root privileges, simulating a root login. It provides full administrative access until you exit the shell.
sudo -i
For more information, see sudo.
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
Use the sudo command to interact with the shell with root privileges, simulating a root login. It provides full administrative access until you exit the shell.
sudo -i
For more information, see sudo.
Use the setup-center-cli command to configure Cisco Cyber Vision Center.
setup-center-cli COMMAND [ args... ]
keymap KEYMAP | Configures the keyboard mapping for the Cyber Vision Center.
Usage:
KEYMAP : Specifies the keyboard mapping to use (for example, us, fr, de, it, es)
|
network |
Generates Usage:
Subcommands:
|
pki FQDN |
Generates certificates for the Cisco Cyber Vision Center. Usage:
|
renew-certificate |
Renews Center or sensor certificates. Usage:
Options:
|
webapp-certificate |
Manages the web application's TLS certificate. Usage:
Subcommands
|
authorized-keys |
Authorizes public SSH keys for access to the Center. If no arguments are provided, it reads keys from standard input. Usage:
Options
|
type |
Usage:
Arguments:
|
ntp |
Generates NTP (Network Time Protocol) configuration files. Usage:
Example:
|
center-id |
Changes the Center's unique ID, used for enrollment in a Global Center and for computing component IDs. Usage:
Example:
|
password |
Provides password-related utilities. Usage:
Subcommands
|
import |
Imports configuration settings from a JSON file. Usage:
Example:
|
Release |
Modification |
---|---|
4.3.0 |
This command was introduced. |
This example displays how to check the password strength:
root@center100:~# setup-center-cli password check
Password must be at least 16 characters long
Use the reboot command to restart the Cisco Cyber Vision Center.
reboot
This example displays how to restart the center:
root@center100:~# reboot
Connection to 10.2.3.100 closed by remote host.
For more information, see reboot.
Use the date command to check the current date on the Cisco Cyber Vision Center CLI or sensor application.
date
This example displays how to check the current date on center:
root@center100:~# date
Wed Jun 5 11:20:36 UTC 2024
This example displays how to check the current date on sensor:
sh-5.0# date
Wed Jun 5 11:20:54 UTC 2024
For more information, see date.
Use the poweroff command to shut down the Cisco Cyber Vision Center server.
poweroff
This example displays how to shut down the center:
root@center100:~# poweroff
Connection to 10.2.3.100 closed by remote host.
For more information, see poweroff.
Use the systemctl command to interact and manage the services running on the Cisco Cyber Vision Center server.
systemctl { status } | { start } | { stop } | { restart } | { --failed }
--failed |
Lists failed services on the system. |
status <name of the service> |
Checks the status of the specific service. |
restart <name of the service> |
Restarts the specific service. |
stop <name of the service> | Stops the specific service. |
This example displays how to check failed services:
root@center100:~# systemctl --failed
0 loaded units listed.
This example displays how to check the status of the "sbs-backend.service"service:
root@center100:~# systemctl status sbs-backend.service
sbs-backend.service - Cisco Cyber Vision Center Backend
Loaded: loaded (/lib/systemd/system/sbs-backend.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2024-06-05 16:32:32 UTC; 2s ago
Main PID: 5617 (sbs-backend-sta)
Tasks: 22 (limit: 77128)
Memory: 92.4M
This example displays how to restart the "sbs-backend.service" service:
root@center100:~# systemctl restart sbs-backend.service
For more information, see systemctl.
Crontab is a configuration file that schedules commands or scripts to run automatically at specific intervals.
Usage:
crontab [options] file
crontab [options]
crontab -n [hostname]
Options:
-u <user> define user
-e edit user's crontab
-l list user's crontab
-r delete user's crontab
-i prompt before deleting
-n <host> set host in cluster to run users' crontabs
-c get host in cluster to run users' crontabs
-V print version and exit
-x <mask> enable debugging
Syntax and Descriptions
Each line in a crontab file follows a specific syntax:
Cron Expression: The line begins with a cron expression consisting of five fields:
Minute (0-59)
Hour (0-23)
Day of the Month (1-31)
Month (1-12 or Jan-Dec)
Day of the Week (0-6 or Sun-Sat)
These fields represent the time and date when the scheduled command should be executed.
Command: The cron expression is followed by the command or script to be executed.
![]() Note |
If both the "day of month" and "day of week" fields are restricted (i.e., not "*"), then either or both of these fields must match the current day for the job to be executed. |
This is a crontab configuration for purging the components that are inactive for 90 days:
5 * * * * sbs-db purge-components --inactive-days 90
0 0 */2 * * sudo sbs-db-toolbox exec 'TRUNCATE TABLE dns_request;'
For more information, see crontab.
Use the journalctl command to interact and search through the log entries that are stored in the journal.
journalctl [ -r ] [ --since ] [ -f ] [ -p err ] [ -u <servicename> ]
-r |
Displays the latest logs first. |
--since |
Displays logs within a specified time range. |
-f |
Displays live logs for live troubleshooting. |
-p err |
Fecthes only the error logs. |
-u <servicename> |
Displays the logs for a specific service. |
--boot=0 |
Displays the logs from the last system boot. |
This example displays how to extract Linux journal for the "sbs-burrow" service:
root@center100:~# journalctl -u sbs-burrow
-- Logs begin at Mon 2024-05-13 12:28:06 UTC, end at Thu 2024-06-06 12:51:44 UTC. --
May 14 03:14:31 center burrow[6748]: burrow flow table analyzed in 0.00 secs [caller=flowtable_analyzer.go:153]
May 14 03:14:32 center burrow[6748]: burrow -- 1 files handled in 0.020166 seconds [caller=interfacer.go:71]
May 14 03:14:37 center burrow[6748]: burrow flow table analyzed in 0.01 secs [caller=flowtable_analyzer.go:153]
May 14 03:14:37 center burrow[6748]: burrow flow table analyzed in 0.00 secs [caller=flowtable_analyzer.go:153]
May 14 03:14:37 center burrow[6748]: burrow flow table analyzed in 0.00 secs [caller=flowtable_analyzer.go:153]
This example displays how to extract the live logs for the "sbs-burrow" service:
root@center100:~# journalctl -fu sbs-burrow
-- Logs begin at Mon 2024-05-13 12:28:06 UTC. --
Jun 06 12:52:31 center burrow[147743]: burrow flow table analyzed in 0.00 secs [caller=flowtable_analyzer.go:153]
Jun 06 12:52:31 center burrow[147743]: burrow flow table analyzed in 0.01 secs [caller=flowtable_analyzer.go:153]
Jun 06 12:52:31 center burrow[147743]: burrow -- 3 files handled in 0.049746 seconds [caller=interfacer.go:71]
Jun 06 12:52:36 center burrow[147743]: burrow flow table analyzed in 0.00 secs [caller=flowtable_analyzer.go:153]
Jun 06 12:52:36 center burrow[147743]: burrow -- 1 files handled in 0.013072 seconds [caller=interfacer.go:71]
Jun 06 12:52:46 center burrow[147743]: burrow flow table analyzed in 0.00 secs [caller=flowtable_analyzer.go:153]
Jun 06 12:52:46 center burrow[147743]: burrow -- 1 files handled in 0.009560 seconds [caller=interfacer.go:71]
Jun 06 12:52:51 center burrow[147743]: burrow flow table analyzed in 0.00 secs [caller=flowtable_analyzer.go:153]
Jun 06 12:52:51 center burrow[147743]: burrow flow table analyzed in 0.00 secs [caller=flowtable_analyzer.go:153]
Jun 06 12:52:51 center burrow[147743]: burrow -- 2 files handled in 0.028321 seconds [caller=interfacer.go:71]
This example displays how to extract the logs for the "sbs-burrow" service:
root@center100:~# journalctl -u sbs-burrow-- Logs begin at Mon 2024-05-13 12:28:06 UTC, end at Thu 2024-06-06 12:51:44 UTC. --
May 14 03:14:31 center burrow[6748]: burrow flow table analyzed in 0.00 secs [caller=flowtable_analyzer.go:153]
May 14 03:14:32 center burrow[6748]: burrow -- 1 files handled in 0.020166 seconds [caller=interfacer.go:71]
May 14 03:14:37 center burrow[6748]: burrow flow table analyzed in 0.01 secs [caller=flowtable_analyzer.go:153]
May 14 03:14:37 center burrow[6748]: burrow flow table analyzed in 0.00 secs [caller=flowtable_analyzer.go:153]
May 14 03:14:37 center burrow[6748]: burrow flow table analyzed in 0.00 secs [caller=flowtable_analyzer.go:153]
For more information, see journalctl.