|
|
(17 intermediate revisions by the same user not shown) |
Line 5: |
Line 5: |
| <pre> | | <pre> |
| LYSH@MyHostName# configure | | LYSH@MyHostName# configure |
− | configure# help
| + | LYSH@MyHostName(config)# help |
| + | |
| + | Documented commands (use 'help -v' for verbose/'help <topic>' for details): |
| + | =========================================================================== |
| + | database dhcpv6 help ip loghost ntp timezone |
| + | datetime fail2ban history log nameserver rtlog ufw |
| + | dhcpv4 failover hostname logexp netplan system user |
| </pre> | | </pre> |
| | | |
Line 12: |
Line 18: |
| | | |
| === datetime === | | === datetime === |
− | To change the system time and date, enter the <code>datetime {format}</code>. The format must be 'yyyy-mm-dd hh24:mi:ss'. Note that if you manually change the system time and date while the NTP is enabled, you encounter the "Failed to set time: Automatic time synchronization is enabled" error. Therefore you need to disable the NTP before configuring the system time and date manually.
| + | Please refer to the [[CLI - System]] section. |
− | LYSH@MyHostName# configure
| |
− | configure# datetime 2021-04-27 13:00:00
| |
− | Local time: Tue 2021-04-27 13:00:00:49 KST
| |
− | Universal time: Tue 2021-04-27 04:00:00 UTC
| |
− | RTC time: Tue 2021-04-27 04:00:00
| |
− | Time zone: Asia/Seoul (KST, +0900)
| |
− | System clock synchronized: yes
| |
− | NTP service: active
| |
− | RTC in local TZ: no
| |
| | | |
| === dhcpv4, dhcpv6 === | | === dhcpv4, dhcpv6 === |
Line 39: |
Line 36: |
| | | |
| === log === | | === log === |
− | ==== sort ====
| + | Please refer to the [[CLI - Log]] section. |
− | You can specify the order of logs display. This configuration affects when if you execute the <code>show log</code> command without -w option. you can verify current setting by executing <code>show system logsort</code>. If the sort is "desc," it shows logs in descending order. If the sort is "asc", it shows logs in ascending order.
| |
− | LYSH@MyHostName# show system logsort
| |
− | logsort : desc // logs are shown in descending order.
| |
− | | |
− | You can change the order in the configuration mode.
| |
− | LYSH@MyHostName# configure
| |
− | configure# log sort asc
| |
− | configure# exit
| |
− | LYSH@MyHostName# show system logsort
| |
− | logsort : asc // logs are shown in descending order.
| |
| | | |
| === logexp === | | === logexp === |
Line 55: |
Line 42: |
| | | |
| === loghost === | | === loghost === |
− | It is the configuration for syslog to log remotely.
| + | Please refer to the [[CLI - Log]] section. |
− | <pre>
| |
− | LYSH@MyHostName# configure
| |
− | configure# loghost add -h
| |
− | usage: loghost add [-h] <A.B.C.D|WORD> [<[1-65535]>] [<[WORD]>]
| |
− | </pre>
| |
| | | |
− | To send all logs to the remote server whose address is 192.168.0.100 and port is the default Syslog port(514).
| + | === mysql_tls === |
− | <pre>
| + | Please refer to the [[CLI - Database]] section. |
− | configure# loghost add 192.168.0.100
| |
− | </pre>
| |
− | | |
− | To send all logs to the remote server whose address is 192.168.0.100 and port is 1000.
| |
− | <pre>
| |
− | configure# loghost add 192.168.0.100 1000
| |
− | </pre>
| |
− | | |
− | To send logs whose level is greater than or equal to "notice" to the remote server whose address is 192.168.0.100 and port is 1000.
| |
− | <pre>
| |
− | configure# loghost add 192.168.0.100 1000 notice
| |
− | </pre>
| |
| | | |
| === nameserver === | | === nameserver === |
− | You can add or delete a nameserver of a network interface.
| + | Plese refer to the [[CLI - Networking]] section. |
− | <pre>
| |
− | LYSH@MyHostName# configure
| |
− | configure# nameserver add eth0 8.8.8.8 // add a nameserver, 8.8.8.8, into the eth0 interface.
| |
− | configure# nameserver delete eth0 8.8.4.4 // delete a nameserver, 8.8.8.8, from the eth0 interface.
| |
− | </pre>
| |
| | | |
| === netplan === | | === netplan === |
− | You can apply the network configuration immediately.
| + | Please refer to the [[CLI - Networking]] section. |
− | <pre>
| |
− | LYSH@MyHostName# configure
| |
− | configure# netplan apply
| |
− | </pre>
| |
| | | |
| === ntp === | | === ntp === |
− | You can configure the Network Time Protocol (NTP) server. Note that the system has already an NTP server that is "ntp.ubuntu.com".
| + | Please refer to the [[CLI - NTP]] section. |
− | If you add an NTP server, the system synchronizes the time using added NTP server. If the Time synchronization failed from the added server, the system
| |
− | <pre>
| |
− | LYSH@MyHostName# configure
| |
− | configure# ntp add asia.pool.ntp.org
| |
− | configure# exit
| |
− | LYSH@MyHostName# show ntp servers
| |
− | NTP Servers : asia.pool.ntp.org
| |
− | | |
− | LYSH@MyHostName# show ntp status
| |
− | ● systemd-timesyncd.service - Network Time Synchronization
| |
− | Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
| |
− | Active: active (running) since Tue 2021-04-27 13:10:36 KST; 12s ago
| |
− | Docs: man:systemd-timesyncd.service(8)
| |
− | Main PID: 18321 (systemd-timesyn)
| |
− | Status: "Initial synchronization to time server 157.119.108.165:123 (asia.pool.ntp.org)."
| |
− | Tasks: 2 (limit: 9387)
| |
− | Memory: 1.6M
| |
− | CGroup: /system.slice/systemd-timesyncd.service
| |
− | └─18321 /lib/systemd/systemd-timesyncd
| |
− | | |
− | </pre>
| |
− | | |
− | | |
− | You can disable the System clock synchronizing using the NTP server.
| |
− | <pre>
| |
− | LYSH@MyHostName# configure
| |
− | configure# ntp disable
| |
− | Local time: Tue 2021-04-27 10:26:03 KST
| |
− | Universal time: Tue 2021-04-27 01:26:03 UTC
| |
− | RTC time: Tue 2021-04-27 01:26:03
| |
− | Time zone: Asia/Seoul (KST, +0900)
| |
− | System clock synchronized: no
| |
− | NTP service: inactive
| |
− | RTC in local TZ: no
| |
− | </pre>
| |
− | | |
− | You can also enable it. Note that the status of the "System clock synchronized" may show "inactive" for a while after enabling the NTP and the status will be changed to "active" in few seconds.
| |
− | <pre>
| |
− | LYSH@MyHostName# configure
| |
− | configure# ntp enable
| |
− | Local time: Tue 2021-04-27 10:26:03 KST
| |
− | Universal time: Tue 2021-04-27 01:26:03 UTC
| |
− | RTC time: Tue 2021-04-27 01:26:03
| |
− | Time zone: Asia/Seoul (KST, +0900)
| |
− | System clock synchronized: active
| |
− | NTP service: active
| |
− | RTC in local TZ: no
| |
− | </pre>
| |
| | | |
| === rtlog=== | | === rtlog=== |
Line 150: |
Line 63: |
| | | |
| === timezone=== | | === timezone=== |
− | You can configure the timezone of the device.
| + | Please refer to the [[CLI - System]] section. |
− | <pre>
| |
− | LYSH@MyHostName# configure
| |
− | configure# tiemzone
| |
− | </pre>
| |
| | | |
| === ufw === | | === ufw === |
| It is the default firewall configuration tool. Please refer to the [[CLI - ufw]] section. | | It is the default firewall configuration tool. Please refer to the [[CLI - ufw]] section. |
| + | |
| + | === user === |
| + | Please refer to the [[CLI - User and Session]] section. |
| | | |
| === References === | | === References === |
You can add, change, or delete configuration variables in the Configuration Mode. You can enter the configuration mode using the configure
command. To exit from the configuration mode, enter the exit
command.
If you enter the help
command in the configuration mode, you can see all commands of the mode.
LYSH@MyHostName# configure
LYSH@MyHostName(config)# help
Documented commands (use 'help -v' for verbose/'help <topic>' for details):
===========================================================================
database dhcpv6 help ip loghost ntp timezone
datetime fail2ban history log nameserver rtlog ufw
dhcpv4 failover hostname logexp netplan system user
database
Please refer to the CLI - Database section.
datetime
Please refer to the CLI - System section.
dhcpv4, dhcpv6
Please refer to the CLI - Services(daemons) section.
fail2ban
Please refer to the CLI - fail2ban section.
failover
Please refer to the CLI - System Failover section.
hostname
Please refer to the CLI - Hostname section.
ip
Please refer to the CLI - Networking section.
log
Please refer to the CLI - Log section.
logexp
Please refer to the CLI - Services(daemons) section.
loghost
Please refer to the CLI - Log section.
mysql_tls
Please refer to the CLI - Database section.
nameserver
Plese refer to the CLI - Networking section.
netplan
Please refer to the CLI - Networking section.
ntp
Please refer to the CLI - NTP section.
rtlog
Please refer to the CLI - Services(daemons) section.
system
Please refer to the CLI - System.
timezone
Please refer to the CLI - System section.
ufw
It is the default firewall configuration tool. Please refer to the CLI - ufw section.
user
Please refer to the CLI - User and Session section.
References