]>
git.proxmox.com Git - mirror_ovs.git/blob - xenserver/etc_profile.d_vswitch.sh
1 # Copyright (C) 2009, 2010 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 ovs-dpctl show
"$@"
14 function watchdpflows
{
21 watch
"ovs-dpctl dump-flows $dp $grep"
28 bridge
=$
(ovs-dpctl show
$dp |
grep 'port 0:' | cut
-d' ' -f 3)
32 watch
"ovs-ofctl dump-flows unix:/var/run/$bridge.mgmt $grep"
35 function monitorlogs
{
38 grep="| grep --line-buffered '^==> .* <==$"
44 cmd
="tail -F /var/log/messages /var/log/ovs-vswitchd.log /var/log/xensource.log $grep | tee /var/log/monitorlogs.out"