diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-07-18 13:23:33 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-07-18 13:23:33 -0400 |
commit | cf1a79203cd5e52a17f1e3228c137c8bd20132fc (patch) | |
tree | 7289a008ae49b71d7ebe8c32d0b00d63200bfa67 /src/sbin/bcfg2-info | |
parent | 259c84f9ddaaf0233a65e686bd8f3346ab0972b0 (diff) | |
download | bcfg2-cf1a79203cd5e52a17f1e3228c137c8bd20132fc.tar.gz bcfg2-cf1a79203cd5e52a17f1e3228c137c8bd20132fc.tar.bz2 bcfg2-cf1a79203cd5e52a17f1e3228c137c8bd20132fc.zip |
bcfg2-info: added expirecache command to expire metadata cache
Diffstat (limited to 'src/sbin/bcfg2-info')
-rwxr-xr-x | src/sbin/bcfg2-info | 10 |
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) |