
FreeBSD comes with many different utilities, which can be use to gathered the information as per our requirements like
uname we use this command to print system information including kernel information
dmesg this command print out the kernel ring buffer information.
sysctl finally this command is use to configure kernel run time parameters as well as to read hardware information.
Following all commands you need to gather FreeBSD hardware information.
1) Gathering machine processor architecture:
# uname -p
2) Gathering the Hardware Type/platform:
# uname -m
3) Gathering FreeBSD release level:
# uname -r
We can get all information with single command.
# uname -mrs
Output:
FreeBSD 7.1-RELEASE-p4 i386
4) Gathering information such as processor speed, make etc
# dmesg | grep CPU
Output::
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0:on acpi0 cpu1: on acpi0 SMP: AP CPU #1 Launched!
5) Gathering physical & available memory:
# dmesg | grep memory
Output::
real memory = 1878851584 (1791 MB) avail memory = 1827946496 (1743 MB)
We can also grab the memory information through sysctl:
sysctl -a | grep hw.*mem sysctl -a | grep mem
Output:
hw.physmem: 194985984 hw.usermem: 167641088 hw.cbb.start_memory: 2281701376
To get rest information of sysctl command
# sysctl -a | less
6) System uptime information including load average:
# uptime
7) If you want to know about system last rebooted or shutdown:
last -1 shutdown last -1 reboot
Information regarding swap filesystem
# swapinfo -k
