Skip to main content

QNAP NAS

CLI Commands

系統資訊

[~] # getsysinfo
cputmp : get CPU temperature
systmp : get system temperature
sysfan [fan no] : get system fan speed
sysfannum : get total system fan number
hdnum : get total system SATA disk number
hdtmp [disk no] : get SATA disk temperature
hdstatus [disk no] : get SATA disk status
hdmodel [disk no] : get SATA disk model
hdcapacity [disk no] : get SATA disk capacity
hdsmart [disk no] : get SATA disk SMART summary
model : get system model name
sysvolnum : get system volume number
vol_desc [volume no] : get volume description
vol_fs [volume no] : get volume file system
vol_totalsize [volume no] : get volume total size
vol_freesize [volume no] : get volume free size
vol_status [volume no] : get volume status

[~] # getsysinfo model
TVS-1271U-RP[~] #

重啟主機

reboot

poweroff

重啟服務

# Restart SSH
/etc/rcS.d/S85login restart

# Restart Samba
/etc/rcS.d/S62smb restart

列出 NFS Client IP

netstat -antu | grep ESTABLISHED | awk {'print $5'} | cut -d: -f1 | grep -v -e 127.0.0.1