문서 편집 권한이 없습니다. 다음 이유를 확인해주세요: 요청한 명령은 다음 권한을 가진 사용자에게 제한됩니다: 사용자. 문서의 원본을 보거나 복사할 수 있습니다. __FORCETOC__ === CLI - System === If you want to see system information, variables such as, name, serial number, configuration values, resources usages and so on, run the <code>show system</code> command. <pre> 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 : </pre> You can also execute the command with keywords. <pre> LYSH@MyHostName# show system :Serial number" Serial number : B1211KR0290P </pre> ==== apache2 ==== If you execute <code>show apache2</code> command, you can the runtime status of the apache2 service. <pre> 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 ... </pre> ==== configuration ==== To verity the [[Variables of Global Configurations | global configurations]] of the imRAD, enter the <code>show config</code> command. LYSH@MyHostName# show config # # system serial number # sn=B1211KR0290P ....... If you want to verity a [[Variables of Global Configurations | global configuration]], enter the <code>show config {keyword}</code> 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 <code>show datetime</code>. 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 [[CLI - Configuration Mode | configuration mode]] using "datetime" or "timezone" command. ==== hardware ==== You can verify the hardware information of a device by the <code>show hardware</code> command <pre> 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 ...... .... </pre> ==== listen ==== To print all socket ports that are open or use, enter the <code>show listen</code> command. <pre> 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) ..... </pre> ==== loghost ==== The "loghost" is a remote log server that can save logs from devices. To verify loghost, enter the <code>show loghost</code> in the user mode. <pre> LYSH@MyHostName# show loghost *.notice @192.168.0.100:1000 </pre> You can configure it in the [[CLI - Configuration Mode | 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. <pre> LYSH@MyHostName# show PHP apache2 </pre> ==== reset ==== It is the Factory reset.<ref>https://en.wikipedia.org/wiki/Factory_reset</ref> <pre> 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): </pre> {| class="wikitable" ! style='width:150px' | 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 <code>system storage</code> 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 <code>system storage cleanup</code> command and it will delete the backup files for data ending in an asterisk. <pre> 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 </pre> ==== 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. <ref>http://manpages.ubuntu.com/manpages/xenial/man1/uptime.1.html</ref> <pre> LYSH@MyHostName# show uptime 19:07:17 up 87 days, 11:00, 7 users, load average: 0.30, 0.17, 0.16 </pre> === References === 이 문서에서 사용한 틀: 틀:Note (원본 보기) CLI - System 문서로 돌아갑니다.