nice column format for openvpn servers log file

column -ts , /etc/openvpn/openvpn-status.log
Formats nicely the Openvpn log file.
Sample Output
OpenVPN CLIENT LIST
Updated                       Tue May 17 12:17:42 2016
Common Name                   Real Address              Bytes Received        Bytes Sent                Connected Since
router                        25.123.12.14:2053         106406                119750                    Tue May 17 07:26:02 2016
laptop                        25.123.12.15:58976        21651                 23552                     Tue May 17 11:15:58 2016
desktop-debian                25.123.12.16:60921        3128193               3283546                   Wed May 11 13:07:03 2016
raspberry1                    25.123.12.14:48731        106919                113373                    Tue May 17 07:26:34 2016
desktop-centos                25.123.12.17:56043        123061                156395                    Tue May 17 07:18:14 2016
raspberry2                    25.123.12.10:51085        4108                  3924                      Tue May 17 12:15:40 2016
ROUTING TABLE
Virtual Address               Common Name               Real Address          Last Ref
10.254.253.38                 raspberry1                25.123.12.14:48731    Tue May 17 07:26:41 2016
10.254.253.54                 raspberry2                25.123.12.10:51085    Tue May 17 12:16:18 2016
10.254.253.22                 router                    25.123.12.14:2053     Tue May 17 07:26:43 2016
10.254.253.10                 laptop                    25.123.12.15:58976    Tue May 17 11:15:59 2016
10.254.253.50                 desktop-debian            25.123.12.16:60921    Wed May 11 13:07:27 2016
10.254.253.70                 desktop-centos            25.123.12.17:56043    Tue May 17 12:12:32 2016
GLOBAL STATS
Max bcast/mcast queue length  6
END

0
2016-05-17 09:36:58

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: