1 # Copyright (C) 2009 Nicira Networks, Inc.
3 # Copying and distribution of this file, with or without modification,
4 # are permitted in any medium without royalty provided the copyright
5 # notice and this notice are preserved. This file is offered as-is,
6 # without warranty of any kind.
8 alias vswitch='service vswitch'
11 watch cat /etc/ovs-vswitchd.conf
15 watch ovs-dpctl show "$@"
18 function watchdpflows {
25 watch "ovs-dpctl dump-flows $dp $grep"
32 bridge=$(ovs-dpctl show $dp | grep 'port 0:' | cut -d' ' -f 3)
36 watch "ovs-ofctl dump-flows unix:/var/run/$bridge.mgmt $grep"
39 function monitorlogs {
42 grep="| grep --line-buffered '^==> .* <==$"
48 cmd="tail -F /var/log/messages /var/log/ovs-vswitchd.log /var/log/xensource.log $grep | tee /var/log/monitorlogs.out"