Synology Cheatsheet

Print workgroup for NAS:
Join a new workgroup for NAS:
Print general info:
Setup mail via cli:
Check upgrades:
Dump data about your nas:
Print network info incl. current duplex:
Print current hostname:
Set a new hostname:
Set a new gateway:
WOL Wakeup:
Print the partition layout table.
Sharing
Print info about a share:
Mount an shared encrypted folder:
Unmount an encrypted folder:
Allowed to delete:
Set an description for a shared folder (viewed in comments in file browser)
Allow browsing of shared folder
Rename a shared folder:
Set users that is allowed to browse shared folder:
User
Print main data about a user
sh-4.3# synouser --get wuseman
User Name : [wuseman]
User Type : [AUTH_LOCAL]
User uid : [1026]
Primary gid : [100]
Fullname : []
User Dir : [/var/services/homes/wuseman]
User Shell : [/bin/sh]
Expired : [false]
User Mail : []
Alloc Size : [82]
Member Of : [2]
(100) users
(101) administrators
Set a new password/Change password
Rename a user
Add a username with full info:
Notifications
Send an email about storage:
Lock managment
Tuning functionality:
Get current tuning profile:
Outut: Current Profile: performance_throughput
Set a new functionality, options:
Dump info about your synology nas:
Upgrade
Set your nas to handle upgrades auto:
Check your current upgrade settings:
Download latest upgrade if there is a new one:
Start upgrade
Check the partition layout table
View synology NFS Monitor

Reset your Synology NAS (Settings Only)
Reset your Synology Nas to Factory Default (OBS OBS OBS ALL DATA WILL BE WIPED)
Reinstall your Synology Nas Station, all data will be kept:
The proper way to restart SSHD of your NAS via cli:
List, uninstall or install a .spk package file (available locally)
Install a set a networking and ELF binary debugging tools (and drop into a root session)
Write and read an .ini style file with lines of key=value pairs
Shut down and power off the NAS (much like shutdown -h now)
Show installed packages
Uninstall a package
Synology Shutdown and Poweroff Too
Set/establish password to local user
Manage IP autoblock feature
Manage blog feature
Synology disk control device: something like /dev/hda or /dev/sda
Synology clear .tbd-File Tool
Different ways to print various info about your NAS
more /etc.defaults/VERSION
cat /etc/synoinfo.conf
cat /proc/cmdline
synoshare --enum ALL
synonet --show
synodisk --enum
synospace --enum -a
Restart index
Check for upgrades
Restart webserver
/usr/syno/sbin/synoservicecfg --restart httpd-user
/usr/syno/sbin/synoservicectl --restart pkgctl-WebStation
Generate a list for what you can control
DSM API - Provide DSM information
File Station API - Provide File Station information
File Station API - Enumerate files in a given folder
Download Station API - List download tasks
Download Station API - Create a download task
Audio Station API - Search a song
Video Station API - List movies
Video Station DTV API - List channels
Surveillance Station API - Get camera information
Restart, enable, stop samba
Get synology date
Printer stuff
Update index older
indexfolder --type={SHARE_CREATE|SHARE_REMOVE} --share=
Start mediaserver
/usr/syno/bin/mediaserver.sh start
Get 2FA key if lost
List disk info on a very fancy way
Synology Autoblock
I have seen many threads on synology forum about this topic, DON'T touch the DB file if you really don't need, use synoautoblock command instead, see examples below:
Add a IP to autoblock db
Reset a IP that has been added by mistake:
Add any IP to whitelist:
Debugging & System Health:
Debug fans and email the result (if email has been set)
Run a health check of your system and email the the result once done
Check ~remain lifetime:
Run smartmontools and send email once done:
Debug hibernation:
LED (Get min and max value in: /usr/syno/etc.defaults/led_brightness.xml)
Get current setup:
Set a new setting:
Bandwidth
Print a user bandwidth usage:
synobandwidth --status [<list=user|group|all(default)> <transfer=upload|download|all(default)>] <merge=0|1(default)>]
Set a new bandwidth limit for a user:
synobandwidth --set-global-conf <state=enabled|disabled> [<protocol=filestation|webdav|ftp|rsync|all(default)>
Print status user by user for all services:
sh-4.3# synobandwidth --preview wuseman
Protocol Upload Download
filestation 0.00 0.00
webdav 0.00 0.00
ftp 0.00 0.00
rsync 0.00 0.00
ISCI
Synology iSCSI Perfomance Analyzer

Fan
Set fan config (loudest will sound like an airplane)
More synology commands listed:
sync
synologconvert
syno-dbus-check.sh
synologrotated
syno-letsencrypt
synologset
syno-move-coredump
synologset1
syno8021Xtool
synolunbackup
synoRTCTime
synolunbkp
syno_adv_test
synoluntransform
syno_dc_ctrl_adapter.sh
synomediaparserd
syno_disk_config_check
synomkflv
syno_disk_ctl
synomkflvd
syno_disk_data_collector
synomkthumb
syno_disk_db_update
synomkthumbd
syno_disk_dsl
synomoduletool
syno_disk_health_record
synomount
syno_disk_information_daily_record
synomustache
syno_disk_log_convert
synomyds
syno_disk_log_import_from_xml
synonclient_send
syno_disk_remain_life_check
synonet
syno_disk_smart_mail_send
synonetd
syno_disk_test_log_import_from_xml
synonetdtool
syno_disk_test_scheduler_set
synonetseqadj
syno_disk_testlog_convert
synonfstop
syno_disk_wcache_config_init
synonotify
syno_dvb_admin.sh
synootp
syno_fan_debug
synoovstool
syno_hdd_util
synopartition
syno_hibernation_debug
synopasswordmail
syno_hw_video_transcoding.sh
synopayment
syno_iptables_common
synoperfeventd
syno_led_brightness
synoperformancediagnose
syno_mem_check
synopftest
syno_pkgicon_sprite.py
synophoto_acl
syno_poweroff_task
synophoto_acl_pgsql
syno_scemd_connector
synophoto_autoblock
syno_smart_result_collect
synophoto_backup
syno_smart_test
synophoto_config
syno_ssd_trim
synophoto_config_root
syno_system_dump
synophoto_dsm_user
synoabnormalloginmail
synophoto_external_access
synoacltool
synophoto_extract_preview
synoagentregisterd
synophoto_music
synoappbkp
synophoto_sdk_share_set
synoappnotify
synophoto_sns_utils
synoapppriv_updater
synophoto_update_db
synoarchivetool
synophoto_watermark_util
synoauth
synophotoio
synoautoblock
synopingpong
synobackup
synopkg
synobackupd
synopkgctl
synobandwidth
synopkghelper
synoblog_backup
synoplatform
synobootseq
synoportforward
synobootupcheck
synopoweroff
synobtrfssnap
synopreferencedir
synocacheclient
synoprint
synocachepinfiletool
synopsql
synocachepinfiletool-status
synoquota
synocachepinfiletoolha
synoraidtool
synocerttool
synorecycle
synocfgen
synorelayd
synocgid
synoretainer
synocgitool
synoretention-lun
synocheckhotspare
synoretentionconf
synocheckiscsitrg
synoretentiontest
synochecknetworkcfg
synoretentiontestutil.sh
synocheckshare
synorouterportfwd
synocheckswapconfig
synoroutertool
synocloudserviceauth
synorsyncdtool
synocmsclient
synosavetime
synocodectool
synoscgi
synoconfbkp
synoscgi________________________________________________________
synoconfd
synoschedtask
synocontentextract
synoschedtool
synocontentextractd
synoscimprofile
synocopy
synosdutils
synocredential
synosearch
synocrond
synosearchagent
synocrtregister
synoselfcheck
synocrtunregister
synoservice
synodatacollect
synoservicecfg
synodataverifier
synoservicectl
synodate
synoservicemigrate
synodctest
synosetkeyvalue
synodd
synoshare
synoddnsinfo
synosharequota
synoddsmtool
synosharesnapshot
synodisk
synosharesnaptool
synodiskdatacollect
synosharesnaptree
synodiskfind
synosharingbackup
synodiskpathparse
synosharingchecker
synodiskport
synosharingcron
synodriveencode
synosharingurl
synodrivehook
synosmartblock
synodriveindex
synosnapschedtask.sh
synodriveobject
synosnmpcd
synodrivesettings
synospace
synodriveversion
synospace.sh
synodrivevolume
synosshdutils
synodsdefault
synostgpool
synodsinfo
synostgsysraid
synodsmnotify
synostgvolume
synoeaupgrade
synostorage
synoethinfo
synostoragecore
synoexternal
synostoraged
synofanconfig
synosupportchannelchecker
synofileutil
synosyncdctime
synofirewall
synosyslogmail
synofirewallUpdater
synotc
synoflashcache
synotc_common
synoflvconv
synothumb
synofstool
synotifyd
synogear
synotifydutil
synogetkeyvalue
synotimecontrol
synogpoclientd
synotlstool
synogrinst
synotune
synogroup
synotunnelexec
synoguest
synoupgrade
synohacore
synoupnp
synoindex
synoups
synoindex_mgr
synoupscommon
synoindex_package.sh
synousbcam
synoindexd
synousbcopy
synoindexplugind
synousbdisk
synoindexscand
synousbmodemd
synoindexworkerd
synouser
synoiscsiep
synouserdir
synoiscsihook
synouserhome
synoiscsitool
synovolumesnapshot
synoiscsitop
synovpnc
synoiscsitop40
synovspace
synoiscsiunmap
synovspace_wrapper
synoiscsiwebapi
synow3
synoisns
synow3tool
synokerneltz
synowebapi
synolanstatus
synowifid
synoldapclient
synowin
synoldapclientd
synowireless
synologaccd
synowsdiscoveryd
synologand
synowstransferd
synologanutil
synozram
synologconfgen
Resource(s)