1 # Copyright (C) 2009, 2010, 2011 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 openvswitch'
9 alias openvswitch='service openvswitch'
12 watch ovs-dpctl show "$@"
15 function watchdpflows {
22 watch "ovs-dpctl dump-flows $dp $grep"
29 bridge=$(ovs-dpctl show $dp | grep 'port 0:' | cut -d' ' -f 3)
33 watch "ovs-ofctl dump-flows unix:/var/run/$bridge.mgmt $grep"
36 function monitorlogs {
39 grep="| grep --line-buffered '^==> .* <==$"
45 cmd="tail -F /var/log/messages /var/log/openvswitch/ovs-vswitchd.log /var/log/openvswitch/ovsdb-server /var/log/xensource.log $grep | tee /var/log/monitorlogs.out"