git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
204f61f
)
ovs-bugtool: Dump dpkg-related information as well as RPM-related info.
author
Ben Pfaff
<blp@nicira.com>
Thu, 30 Jun 2011 21:55:28 +0000
(14:55 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 12 Jul 2011 16:38:14 +0000
(09:38 -0700)
utilities/ovs-bugtool
patch
|
blob
|
history
diff --git
a/utilities/ovs-bugtool
b/utilities/ovs-bugtool
index
61cc3ca
..
c730e37
100755
(executable)
--- a/
utilities/ovs-bugtool
+++ b/
utilities/ovs-bugtool
@@
-67,6
+67,8
@@
OS_RELEASE = platform.release()
# Files & directories
#
# Files & directories
#
+APT_SOURCES_LIST = "/etc/apt/sources.list"
+APT_SOURCES_LIST_D = "/etc/apt/sources.list.d"
BUG_DIR = "/var/log/ovs-bugtool"
PLUGIN_DIR = "/etc/openvswitch/bugtool"
GRUB_CONFIG = '/boot/grub/menu.lst'
BUG_DIR = "/var/log/ovs-bugtool"
PLUGIN_DIR = "/etc/openvswitch/bugtool"
GRUB_CONFIG = '/boot/grub/menu.lst'
@@
-143,6
+145,7
@@
DF = 'df'
DMESG = 'dmesg'
DMIDECODE = 'dmidecode'
DMSETUP = 'dmsetup'
DMESG = 'dmesg'
DMIDECODE = 'dmidecode'
DMSETUP = 'dmsetup'
+DPKG_QUERY = 'dpkg-query'
ETHTOOL = 'ethtool'
FDISK = 'fdisk'
FIND = 'find'
ETHTOOL = 'ethtool'
FDISK = 'fdisk'
FIND = 'find'
@@
-633,6
+636,9
@@
exclude those logs from the archive.
file_output(CAP_YUM, [YUM_LOG])
tree_output(CAP_YUM, YUM_REPOS_DIR)
cmd_output(CAP_YUM, [RPM, '-qa'])
file_output(CAP_YUM, [YUM_LOG])
tree_output(CAP_YUM, YUM_REPOS_DIR)
cmd_output(CAP_YUM, [RPM, '-qa'])
+ file_output(CAP_YUM, [APT_SOURCES_LIST])
+ tree_output(CAP_YUM, APT_SOURCES_LIST_D)
+ cmd_output(CAP_YUM, [DPKG_QUERY, '-W', '-f=${Package} ${Version} ${Status}\n'], 'dpkg-packages')
try:
load_plugins()
try:
load_plugins()