From cf1a79203cd5e52a17f1e3228c137c8bd20132fc Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Thu, 18 Jul 2013 13:23:33 -0400 Subject: bcfg2-info: added expirecache command to expire metadata cache --- src/sbin/bcfg2-info | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/sbin/bcfg2-info') 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 [ [ ...]]- 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] - Get probe list for the given host, in XML (the default) or human-readable pretty (with -p) -- cgit v1.2.3-1-g7c22