CLI - System
If you want to see system information such as name, serial number, configuration values, resources usages, and so on, run the show system
command.
LYSH@MyHostName# show system ! Contact : supports@basein.net, https://wiki.basein.net Serial number : B1211KR0290P Model : B100 System id : 21 System package version : 1.2.74 .... Disk usage : Filesystem Type Size Used Avail Use% Mounted on /dev/sda2 ext4 98G 21G 72G 23% / ! end :
You can also execute the command with keywords.
LYSH@MyHostName# show system :Serial number" Serial number : B1211KR0290P
apache2
If you execute show apache2
command, you can the runtime status of the apache2 web service.
LYSH@MyHostName# show apache2 ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2021-04-22 17:01:17 KST; 4h 11min ago ...
configuration
To verity the global configurations of the imRAD, enter the show config
command.
LYSH@MyHostName# show config # # system serial number # sn=B1211KR0290P .......
If you want to verity a global configuration, enter the show config {keyword}
command.
LYSH@MyHostName# show config version # lyon system version(package) and imange version version=1.2.74 image_version=
datetime
To verify the system time, date, and timezone, enter the show datetime
.
LYSH@MyHostName# show datetime Local time: Tue 2020-12-15 15:56:33 KST Universal time: Tue 2020-12-15 06:56:33 UTC RTC time: Tue 2020-12-15 06:56:33 Time zone: Asia/Seoul (KST, +0900) System clock synchronized: yes systemd-timesyncd.service active: yes RTC in local TZ: no
If the Local time or Tiem zone is incorrect to your locale, you should change it in the configuration mode using "datetime" or "timezone" command.
hardware
You can verify the hardware information of a device by the show hardware
command
LYSH@MyHostName# show hardware *-memory description: System Memory physical id: 11 slot: System board or motherboard size: 8GiB *-disk description: SCSI Disk product: Virtual Disk ..... *-network description: Ethernet interface ...... ....
listen
To print all socket ports that are open or use, enter the show listen
command.
LYSH@MyHostName# show listen COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME sshd 362800 root 4u IPv4 498959339 TCP 192.168.4.40:22->192.168.5.15:50560 (ESTABLISHED) sshd 362812 baseindev 4u IPv4 498959339 TCP 192.168.4.40:22->192.168.5.15:50560 (ESTABLISHED) sshd 362812 baseindev 10u IPv6 498963275 TCP [::1]:6010 (LISTEN) sshd 362812 baseindev 11u IPv4 498963276 TCP 127.0.0.1:6010 (LISTEN) .....
loghost
The "loghost" is a remote log server that can save logs from devices. To verify loghost, enter the show loghost
in the user mode.
LYSH@MyHostName# show loghost *.notice @192.168.0.100:1000
You can configure it in the configuration mode.
PHP
You can verify the configuration of the Hypertext Preprocessor (PHP). There are two configurations: "apache2" and "cli". "apache2" is for the PHP plugin used by the Apache2 service and "cli" is for the CLI program coded in PHP.
LYSH@MyHostName# show PHP apache2
reset
It is the Factory reset.[1]
LYSH@MyHostName# configure configure# system reset log FACTORY RESET WARNING!! All of the configurations will be restored and you will lose data. Do you really continue?(y/n):
argument | Description |
---|---|
all | all of them. |
conf | It will restore all configurations including the imRAD global configuration. |
database | It will delete all data in the database and restore to default data. |
log | It will be clearing all the Runtime log and the imRAD Syslog(lsyslog). |
lyonconf | It will restore the imRAD global configuration. |
net | It will restore the network configuration. The IP address in the device will be lost. |
radius | It will restore the radius configuration. |
storage
You can verify the disk utilization of a device by entering system storage
command in the user mode.
The imRAD disk consists of two partitions. One is for the operating systems, another is for data. It also displays the disk usage for specific data files. To increase the available disk size, you can delete backup files by entering the system storage cleanup
command and it will delete the backup files for data ending in an asterisk.
LYSH@MyHostName# system storage mount total used free free% OS 14.70G 5.96G 8.74G 59.43% Data 97.44G 22.68G 74.75G 76.72% 1 System Logs* :248M 2 imRAD Logs* :2.4G 3 RADIUS Logs* :36M 4 Apache2 Logs* :20K 5 MySQL Logs* :1.2M 6 MySQL Binary Logs :1.2G 7 MySQL Relay Logs :0 8 MySQL Data :2.8G 9 Apt caches* :75M 10 Libraries :2.6G
uptime
The uptime gives a one-line display of the following information. The current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes. [2]
LYSH@MyHostName# show uptime 19:07:17 up 87 days, 11:00, 7 users, load average: 0.30, 0.17, 0.16