News

QNAP, disks, shares and modules via SSH

It's often useful to fnd out 'stuff' about a QNAP NAS via SSH.. Here are a few examples.

[~] # df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/ramdisk             32.9M     16.7M     16.2M  51% /
tmpfs                    64.0M    204.0k     63.8M   0% /tmp
/dev/sda4               371.0M    371.0M         0 100% /mnt/ext
/dev/md9                509.5M    138.0M    371.4M  27% /mnt/HDA_ROOT
/dev/md0                  5.4T      3.3T      2.1T  61% /share/MD0_DATA
tmpfs                     1.0M         0      1.0M   0% /mnt/rf/nd
[~] # echo "Firmware: $(getcfg system version) Build $(getcfg system 'Build Number')"
Firmware: 4.3.3 Build 20221124
[~] # echo "Base Directory: $(dirname $(getcfg -f /etc/config/smb.conf Public path))"
Base Directory: /share/MD0_DATA
[~] # cat /etc/config/qpkg.conf
[MalwareRemover]
Name = MalwareRemover
Class = null
Status = complete
Display_Name = Malware Remover
Version = 3.6.1.1
Author = QNAP Systems, Inc.
QPKG_File = MalwareRemover.qpkg
Date = 2022-01-12
Shell = /share/MD0_DATA/.qpkg/MalwareRemover/MalwareRemover.sh
Install_Path = /share/MD0_DATA/.qpkg/MalwareRemover
WebUI = /malware_remover/
Web_Port = -1
RC_Number = 199
Build = 20210407
Desktop = 1
Win_Min_Width = 600
Win_Min_Height = 372
Force_Visible = 1
App_ID = A227
Win_MAX_Width = 600
Win_MAX_Height = 372
Sys_App = 2
Enable = TRUE
Task_Info = /cgi-bin/malware_remover/background_task
[QcloudSSLCertificate]
Status = complete
Name = QcloudSSLCertificate
Version = 2.2.18
Author = QNAP Systems, Inc.
QPKG_File = QcloudSSLCertificate.qpkg
Date = 2023-01-18
Alt_Shell = /mnt/ext/opt/QcloudSSLCertificate/QcloudSSLCertificate.sh
Install_Path = /mnt/ext/opt/QcloudSSLCertificate
RC_Number = 101
Desktop = 1
WebUI = null
Display_Name = QTS SSL Certificate
Open_In = MyCloudNas,6
Sys_App = 2
Enable = FALSE
[~] # testparm -s -l --section-name=Public --parameter-name=path >/dev/null
Load smb config files from /etc/config/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "null passwords" option is deprecated
WARNING: The "server schannel" option is deprecated
Processing section "[Multimedia]"
Processing section "[Download]"
Processing section "[Recordings]"
Processing section "[Web]"
Processing section "[Usb]"
Processing section "[Public]"
Processing section "[Network Recycle Bin 1]"
Processing section "[homes]"
Processing section "[Archives_TV]"
Processing section "[NewDrive]"
Processing section "[home]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
[~] #

 

<< Go back to the previous page