View network interface traffic on Nexenta

There is not a lot of information out there about viewing the network interface throughput in real-time via CLI on Nexenta out there on the internet, so I hope this helps someone.

I discovered you can view the throughput in real-time by using a flow control monitor, and flowadm.

First, enter expert mode:
option expert_mode=1
Hit (y) to confirm,

flowadm add-flow -l NETWORK_INTERFACE -a transport=tcp flow1
flowadm show-flow -S


flowadm add-flow -l igb0 -a transport=tcp flow1
flowadm show-flow -S

This will give you a nice real-time status of your network throughput.

flowadm show-flow -S
flowadm show-flow -S

To remove the flow monitor, simply type in:

flowadm remove-flow -l network_interface
EX:  flowadm remove-flow -l igb0

Please be aware that there is some overhead involved in using flowadm for this purpose, as demonstrated by @kdavyd:


How to change the root password on a SmartOS System

I had some trouble tracking down in the SmartOS wiki on how to change the root password. I figured it out, and here’s what you need to do:

  1.  1. Login to your SmartOS server as root
  2. 2. Type in "grep root /usbkey/shadow" and place the output somewhere safe in case you need to revert this change.
  3. 3. Type in "/usr/lib/cryptpass YOUR_NEW_PASSWORD" and copy the output. This is your encrypted new root password.
  4. 4. Modify /usbkey/shadow (vi /usbkey/shadow) replacing your previous encrypted password with the new one.
  5. 5. Save the file (ESC, wq!)
  6. 6. Open a new SSH session (Without closing the old one, just in case you messed this up) and test your new password. It should work!