Useful FreeNAS FreeBSD Shell Commands

Useful FreeNAS FreeBSD Shell Commands

Recommend you connect to your FreeNAS server via SSH using PuTTY.
  • Basic information of pools: zpool list
  • Health status of pools: zpool status -v
  • AES status: dmesg | grep aes
  • Disk SMART long test: smartctl -t long /dev/da1
  • Disk SMART short test: smartctl -t short /dev/da1
  • Disk SMART and non-SMART information: smartctl -x /dev/da1
  • Last self test results: smartctl -l selftest /dev/da1
  • List of file systems and their corresponding ufsid labels: glabel status
  • IOps and R/W bandwidth: iostat da1
  • File copying tool: rsync
  • File copying tool: cp
  • IOps and R/W bandwidth every second: zpool iostat 1
  • FW and driver versions of HBA cards: dmesg | grep mps
  • UPS attributes: upsc ups
  • UPS names: upsc -l
  • UPS status: upsc [email protected]
  • System info: systat -vm
  • Show all devices: camcontrol devlist
  • Show all USB devices: usbconfig
  • FreeBSD version & hardware type: uname -mrs
  • 32 or 64 bit?: getconf LONG_BIT
  • CPU info: dmesg | grep CPU
  • Memory info: dmesg | grep memory
  • Memory info: sysctl -a | grep mem
  • Top processes: top
  • Uptime: uptime
  • Last reboot: last -1 reboot
  • Last shutdown: last -1 shutdown
  • Swap file usage: swapinfo -k
  • Logged in users: w
  • PCI bus info: pciconf -lv
  • Information about your system's hardware as described in your system BIOS: dmidecode -t 0 ## code for bios (see table below) ##

CodeDescription
0BIOS
1System
2Baseboard
3Chassis
4Processor
5Memory Controller
6Memory Module
7Cache
8Port Connector
9System Slots
10On Board Devices
11OEM Strings
12System Configuration Options
13BIOS Language
14Group Associations
15System Event Log
16Physical Memory Array
17Memory Device
1832-bit Memory Error
19Memory Array Mapped Address
20Memory Device Mapped Address
21Built-in Pointing Device
22Portable Battery
23System Reset
24Hardware Security
25System Power Controls
26Voltage Probe
27Cooling Device
28Temperature Probe
29Electrical Current Probe
30Out-of-band Remote Access
31Boot Integrity Services
32System Boot
3364-bit Memory Error
34Management Device
35Management Device Component
36Management Device Threshold Data
37Memory Channel
38IPMI Device
39Power Supply
40Additional Information
41Onboard Devices Extended Information
42Management Controller Host Interface

Popular Posts