summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-07-18 13:23:33 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-07-18 13:23:33 -0400
commitcf1a79203cd5e52a17f1e3228c137c8bd20132fc (patch)
tree7289a008ae49b71d7ebe8c32d0b00d63200bfa67 /src/sbin
parent259c84f9ddaaf0233a65e686bd8f3346ab0972b0 (diff)
downloadbcfg2-cf1a79203cd5e52a17f1e3228c137c8bd20132fc.tar.gz
bcfg2-cf1a79203cd5e52a17f1e3228c137c8bd20132fc.tar.bz2
bcfg2-cf1a79203cd5e52a17f1e3228c137c8bd20132fc.zip
bcfg2-info: added expirecache command to expire metadata cache
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg2-info10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index 539ae3115..badf637e8 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -482,6 +482,16 @@ Bcfg2 client itself.""")
('Logging', self.setup['logging'])]
print_tabular(output)
+ def do_expirecache(self, args):
+ """ expirecache [<hostname> [<hostname> ...]]- Expire the
+ metadata cache """
+ alist = args.split()
+ if len(alist):
+ for client in self._get_client_list(alist):
+ self.metadata_cache.expire(client)
+ else:
+ self.metadata_cache.expire()
+
def do_probes(self, args):
""" probes [-p] <hostname> - Get probe list for the given
host, in XML (the default) or human-readable pretty (with -p)