Tag FreeBSD
HDD Performance Information
Get performance information from Hdd: $diskinfo -tv /dev/da1 /dev/da1 512 # sectorsize 299966445568 # mediasize in bytes (279G) 585871964 # mediasize in sectors 0 # stripesize 0 # stripeoffset 71798 # Cylinders according to firmware. 255 # Heads according to firmware. 32 # Sectors according to firmware. HP RAID 0 # Disk descr. PDZVU0MLM8P2E7 # Disk ident. No # TRIM/UNMAP support Unknown # Rotation rate in RPM Not_Zoned # Zone Mode Seek times: Full stroke: 250 iter in 3.
Capturing whole packet with tcpdump for analysis with wireshark
Capturing the hole packet on your NIC for later analysis with wireshark $tcpdump -nnvvXSs 1514 -i em0 -w /tmp/em0.dumptcp Will capture 1514 bytes of all packets on interface “em0” and dump it to the file “/tmp/em0.dumptcp”. You can then import the file into wireshark for analysis. Explanation of Parameters Text below is copied from tcpdump man page -nn Don’t convert protocol and port numbers etc. to names either. -vv Even more verbose output.
List all mass storage devices with FreeBSD
Get a list of installed mass storage devices with FreeBSD egrep 'ad[0-9]|da[0-9]|cd[0-9]|acd[0-9]' /var/run/dmesg.boot where: ad -> IDE HDD da -> SCSI HDD cd -> IDE CD/DVD acd-> SCSI CD/DVD Here’s an example output: da0 at ciss0 bus 0 scbus0 target 0 lun 0 da0: <COMPAQ RAID 0 VOLUME OK> Fixed Direct Access SCSI-5 device da0: 135.168MB/s transfers da0: Command Queueing enabled da0: 139979MB (286677120 512 byte sectors: 255H 32S/T 35132C) da1 at ciss0 bus 0 scbus0 target 1 lun 0 da1: <COMPAQ RAID 0 VOLUME OK> Fixed Direct Access SCSI-5 device da1: 135.
FreeBSD watch network interface usage
If you want to know the current network bandwith usage on a FreeBSD host, this will help you. systat -ifstat 1 $systat -ifstat 1 /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average |||||| Interface Traffic Peak Total lo0 in 0.000 KB/s 0.000 KB/s 308.224 MB out 0.000 KB/s 0.000 KB/s 308.224 MB bce1 in 2.850 MB/s 2.850 MB/s 157.746 GB out 234.496 KB/s 234.496 KB/s 19.