Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



QNAP - SSH: How to ...
 
Share:
Notifications
Clear all

[Solved] QNAP - SSH: How to get the base path of your shares and other info

1 Posts
1 Users
0 Reactions
9,895 Views
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2859
Topic starter  

The following command's can help you retrieve some important information from the command-line (SSH):

Firmware version:

echo "Firmware: $(getcfg system version) Build $(getcfg system 'Build Number')"

Example output:

Firmware: 4.2.0 Build 20150925

Base path of your shares:

echo "Base Directory: $(dirname $(getcfg -f /etc/config/smb.conf Public path))"

Example output:

Base Directory: /share/MD0_DATA

Installed QPKG's and related info:

cat /etc/config/qpkg.conf

Partial example output:

[MusicStation]
Version = 4.8.0
Enable = FALSE
QPKG_File = MusicStation.qpkg
Date = 2015-09-25
Shell = /etc/init.d/ImRd.sh musicstation
Install_Path = /share/MD0_DATA/.qpkg/musicstation
WebUI = /musicstation/
Author = QNAP Systems, Inc.
Sys_App = 1
Name = MusicStation
Display_Name = Music Station
Desktop = 1
Class = null
Status = complete
RC_Number = 100
Web_Port = -1
Build = 20141229
... [phpMyAdmin]
Name = phpMyAdmin
Class = null
Status = complete
Version = 4.1.13.1
Author = QNAP Systems, Inc.
QPKG_File = phpMyAdmin.qpkg
Date = 2014-07-11
Shell = /share/MD0_DATA/.qpkg/phpMyAdmin/phpMyAdmin.sh
Install_Path = /share/MD0_DATA/.qpkg/phpMyAdmin
WebUI = /phpMyAdmin
RC_Number = 101
Enable = TRUE

SMB Shares

testparm -s -l --section-name=Public --parameter-name=path >/dev/null

Partial example output:

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
Processing section "[Recordings]"
Processing section "[Usb]"
Processing section "[Public]"
Processing section "[Network Recycle Bin 1]"
Processing section "[Documents]"
Processing section "[Applications]"
Processing section "[Development]" ...

Source: QNAP Forum post by PWilson


   
ReplyQuote
Share: