summaryrefslogtreecommitdiff
path: root/utilities/bugtool
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-07-06 10:26:57 -0700
committerBen Pfaff <blp@nicira.com>2011-07-13 12:44:50 -0700
commit7a35bf89e26ca0834cb3d4c09be2e0e75d30803a (patch)
treeeedd08b0025c5f582228f3aa70f5f054936fffcc /utilities/bugtool
parentb2df0225a3575e2a15cdf67adc4b2dd9656fed19 (diff)
downloadopenvswitch-7a35bf89e26ca0834cb3d4c09be2e0e75d30803a.tar.gz
ovs-bugtool: Add an OVSDB snapshot to ovs-bugtool output.
The ovs-bugtool output already includes a copy of the configuration database file, but this file omits many instantaneous details. For example, it does not include any information about controller connection status or interface statistics. This commit adds a snapshot of the database contents that does include these details.
Diffstat (limited to 'utilities/bugtool')
-rw-r--r--utilities/bugtool/automake.mk4
-rwxr-xr-xutilities/bugtool/ovs-bugtool-ovsdb-dump19
-rw-r--r--utilities/bugtool/plugins/network-status/openvswitch.xml1
3 files changed, 23 insertions, 1 deletions
diff --git a/utilities/bugtool/automake.mk b/utilities/bugtool/automake.mk
index 8cfbda2bb..1d4f94e10 100644
--- a/utilities/bugtool/automake.mk
+++ b/utilities/bugtool/automake.mk
@@ -8,7 +8,9 @@ bugtool_plugins = \
utilities/bugtool/plugins/system-configuration.xml \
utilities/bugtool/plugins/system-configuration/openvswitch.xml
-bugtool_scripts = utilities/bugtool/ovs-bugtool-tc-class-show
+bugtool_scripts = \
+ utilities/bugtool/ovs-bugtool-tc-class-show \
+ utilities/bugtool/ovs-bugtool-ovsdb-dump
scripts_SCRIPTS += $(bugtool_scripts)
bugtoolpluginsdir = $(sysconfdir)/openvswitch/bugtool-plugins
diff --git a/utilities/bugtool/ovs-bugtool-ovsdb-dump b/utilities/bugtool/ovs-bugtool-ovsdb-dump
new file mode 100755
index 000000000..9e4d6620b
--- /dev/null
+++ b/utilities/bugtool/ovs-bugtool-ovsdb-dump
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of version 2.1 of the GNU Lesser General
+# Public License as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA
+#
+# Copyright (C) 2011 Nicira Networks.
+
+ovsdb-client -f csv dump unix:/var/run/openvswitch/db.sock Open_vSwitch
diff --git a/utilities/bugtool/plugins/network-status/openvswitch.xml b/utilities/bugtool/plugins/network-status/openvswitch.xml
index 8b280aa2b..1ae5d9d82 100644
--- a/utilities/bugtool/plugins/network-status/openvswitch.xml
+++ b/utilities/bugtool/plugins/network-status/openvswitch.xml
@@ -18,4 +18,5 @@
<collect>
<command label="tc-class-show">/usr/share/openvswitch/scripts/ovs-bugtool-tc-class-show</command>
+ <command label="dump-ovsdb">/usr/share/openvswitch/scripts/ovs-bugtool-ovsdb-dump</command>
</collect>