Skip to content
Snippets Groups Projects
Commit d32f6204 authored by Seblu's avatar Seblu
Browse files

add command cache

parent a8fb42a5
No related branches found
No related tags found
No related merge requests found
......@@ -18,3 +18,4 @@ from cccli.command.vm import *
# by command module
from cccli.command.list import Command_list
from cccli.command.expert import Command_expert
from cccli.command.cache import Command_cache
#!/usr/bin/env python
#coding=utf8
'''
CloudControl cache command
'''
from cccli.exception import *
from sjrpc.core.exceptions import *
from cccli.printer import Printer, color
from cccli.command.command import Command
class Command_cache(Command):
'''Show server cache statistics'''
def __call__(self, argv):
try:
d = self.cli.rpc.call("dbstats")
for i,v in d.items():
self.printer.out("%s: %s"%(i,v))
except RpcError as e:
raise cmdError("RPCError: %s"%str(e))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment