Added a format string example to the man page. While the documentation is clear, it is nice to see an example to get started. Single quotes are used to prevent the shell from running our bmon patterns as commands, and to prevent it from doing wildcard expansion for the interface string.
This commit is contained in:
@ -220,6 +220,14 @@ and eth1:
|
||||
.RS 4
|
||||
\fBbmon \-p eth0,eth1 \-o curses\fP
|
||||
.RE
|
||||
.PP
|
||||
To run bmon in format mode, monitoring any eth* interfaces, with a specified
|
||||
format string:
|
||||
.PP
|
||||
.RS 4
|
||||
\fBbmon \-p \(aqeth*\(aq \-o format:fmt=\(aq$(element:name) $(attr:rxrate:packets)\en\(aq\fP
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SH "FILES"
|
||||
/etc/bmon.conf
|
||||
|
Reference in New Issue
Block a user