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