diff options
| author | Ben Pfaff <blp@nicira.com> | 2011-06-30 14:55:28 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-07-12 09:38:14 -0700 |
| commit | a004a607c7561e1f42d4196e48412f6edee6d99a (patch) | |
| tree | d42872d58f83454c178d3e58ed484f6cb3bceefa /utilities | |
| parent | 204f61fb1a0d30fe023001d4527554721e493065 (diff) | |
| download | openvswitch-a004a607c7561e1f42d4196e48412f6edee6d99a.tar.gz | |
ovs-bugtool: Dump dpkg-related information as well as RPM-related info.
Diffstat (limited to 'utilities')
| -rwxr-xr-x | utilities/ovs-bugtool | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utilities/ovs-bugtool b/utilities/ovs-bugtool index 61cc3ca60..c730e373c 100755 --- a/utilities/ovs-bugtool +++ b/utilities/ovs-bugtool @@ -67,6 +67,8 @@ OS_RELEASE = platform.release() # 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' @@ -143,6 +145,7 @@ DF = 'df' DMESG = 'dmesg' DMIDECODE = 'dmidecode' DMSETUP = 'dmsetup' +DPKG_QUERY = 'dpkg-query' 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, [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() |
