How can I capture and keep a log of network traffic on a Solaris 11 box? I can use vnStat on Linux but is there a solution for Solaris?
The vnStat homepage ( http://humdi.net/vnstat/ ) lists the following as 'Similar Programs', under their 'Links' heading:
I've had experience with IPTraf (ages ago), but it still works fairly well. And it looks like a majority of them are able to be compiled and packaged for Solaris 11. http://www.unixpackages.com/ has a subscription service that will do that for you, should you want to avail yourself of their services. Otherwise,
configure; make; make install away!
You can use snoop on all versions of Solaris, but since you note v11, you can also easily install wireshark or use the cmdline version tshark.
pkg add diagnostic/wireshark
You also may want to check out this article on Advanced Network Monitoring Using Oracle Solaris 11 Tools which shows some Solaris 11 specific commands including how to have some output be in a format read by gnuplot.
In addition, you want to see if there are any other tools, including some of those mentioned by Thomas N. available in the Solaris 11 support or GA repos.