Embedded System Checker (ESC) – Usage & Troubleshooting KB
Overview
This tool is used to gather basic information and detect common bugs.
Installation
Kod:
[~] # wget https://www.dropbox.com/s/73oh4qqmgv0cgkq/EmbeddedSysChecker_1.3.qpkg
[~] # chmod +x EmbeddedSysChecker_1.3.qpkg
[~] # ./EmbeddedSysChecker_1.3.qpkg
Configuration
Kod:
[~] # vim /etc/config/esc.conf
- LOG_FILENAME – generated log file name
- LOG_SAVE_PATH_EXTERNAL – log storage path
- DATE_LIMIT – date range for log analysis
- CLIENT_IP – target IP (client, AD server, etc.)
- LOG_LEVEL – log verbosity (0–10)
- COLLECTION_METHOD – method used when LOG_LEVEL >= 2
Usage
Kod:
[~] # esc [OPTION]
[~] # esc help
If errors are detected, return:
LOG_FILENAME from LOG_SAVE_PATH_EXTERNAL
Fallback path:
Kod:
/var/log
Uninstall
Kod:
[~] # esc uninstall
Case Workarounds
Symptom:
CONFIG_ERROR(0) on LUN
Fix:
Edit file:
Before:
After:
Update firmware:
CONFIG_ERROR(0) on LUN
Fix:
Edit file:
Kod:
/etc/config/hero_zfs_lun.json
Before:
Kod:
"status": 0
After:
Kod:
"status": 1
Update firmware:
Kod:
h5.0.0.1925_20220122 or newer
Applicable only for standalone or domain member.
NOT for Domain Controller.
Method 1:
Method 2:
- Backup tdb files
- Delete corrupted files
- Restart SMB
NOT for Domain Controller.
Method 1:
Kod:
/etc/init.d/smb.sh stop
rm -rf /share/CACHEDEV1_DATA/.samba/
/etc/init.d/smb.sh start
Method 2:
- Backup tdb files
- Delete corrupted files
- Restart SMB
Problem:
User RID exceeds NAS domain range
Steps:
1. Check login format
- Domain\\USERNAME or Domain+USERNAME
2. List users:
3. Get SID:
4. Extract RID from SID
Example:
User RID = 305428740
5. Backup configs:
6. Modify RID range:
File:
Before:
Calculate:
New max = (user RID + min) rounded to nearest 10M
After example:
7. Update Samba config:
Match new RID ranges
8. Restart service:
User RID exceeds NAS domain range
Steps:
1. Check login format
- Domain\\USERNAME or Domain+USERNAME
2. List users:
Kod:
wbinfo -u
3. Get SID:
Kod:
wbinfo -n DOMAIN\\USERNAME
4. Extract RID from SID
Example:
Kod:
S-1-5-21-XXXX-XXXX-XXXX-305428740
User RID = 305428740
5. Backup configs:
Kod:
cp /etc/config/uLinux.conf /etc/config/uLinux.conf.bak
cp /etc/config/smb.conf /etc/config/smb.conf.bak
6. Modify RID range:
File:
Kod:
/etc/config/uLinux.conf
Before:
Kod:
Main_Domain_Rid_Range = 10000001-20000000
Trust_Domain_User_Index = 30000001
Calculate:
New max = (user RID + min) rounded to nearest 10M
After example:
Kod:
Main_Domain_Rid_Range = 10000001-320000000
Trust_Domain_User_Index = 330000001
7. Update Samba config:
Kod:
/etc/config/smb.conf
Match new RID ranges
8. Restart service:
Kod:
/etc/init.d/smb.sh restart
Notes:
- If log path missing → saved to /var/log
- Always backup configs before changes