meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sw:opnsense:shell [2020/05/13 09:35]
niziak
sw:opnsense:shell [2020/05/25 17:04] (current)
niziak
Line 3: Line 3:
 It is based on FreeBSD It is based on FreeBSD
  
-====== shell menu ======+====== OPNSense custom ====== 
 +<code bash> 
 +pkg update 
 + 
 + 
 +pkg upgrade 
 +pkg upgrade dnsmasq 
 + 
 +opnsense-update 
 + 
 + 
 +</​code>​ 
 + 
 +===== shell menu =====
 <code bash> <code bash>
 # opnsense-shell # opnsense-shell
Line 20: Line 33:
 ====== webgui ====== ====== webgui ======
  
 +<code bash>
 /​usr/​local/​etc/​rc.restart_webgui /​usr/​local/​etc/​rc.restart_webgui
 /​var/​etc/​cert.pem /​var/​etc/​cert.pem
 cat /​var/​etc/​lighty-webConfigurator.conf cat /​var/​etc/​lighty-webConfigurator.conf
 +
 +# Reinitialize circular log file (clog) after size change in webui:
 +/​usr/​local/​opnsense/​scripts/​systemhealth/​clearlog -m core -f dhcpd
 +
 +</​code>​
  
 ====== firewall ====== ====== firewall ======
Line 62: Line 81:
 # seek time and transfer rates benchmark # seek time and transfer rates benchmark
 diskinfo -tv /dev/cd0 diskinfo -tv /dev/cd0
 +</​code>​
 +
 +===== networking =====
 +<code bash>
 +sockstat -4 -l
 +</​code>​
 +
 +===== system / ps =====
 +<code bash>
 +# top with command line names
 +top -a
 +
 +swapinfo
 +
 +pkg install sysinfo
 +sysinfo mem
 +sysinfo storage
 +
 +iostat -x 1
 +
 +mount -t procfs proc /proc
 +
 +$ fetch https://​raw.githubusercontent.com/​ocochard/​myscripts/​master/​FreeBSD/​freebsd-memory.sh
 +## or use curl command ##
 +## $ curl -O https://​raw.githubusercontent.com/​ocochard/​myscripts/​master/​FreeBSD/​freebsd-memory.sh
 +$ sh freebsd-memory.sh
 +
 +# Check who is performing huge disk IO: run top and switch to '​m'​
 </​code>​ </​code>​