Implement query command for ONOS metrics in ONOS CLI

Change-Id: I6202b0dd31b5ac006a9b826fe8b1840c261357ab
diff --git a/onoscli b/onoscli
index 6bfa9d0..cd8d34a 100755
--- a/onoscli
+++ b/onoscli
@@ -190,6 +190,10 @@
             #
             Command("show link all", "Show all links", self.show_link_all),
             #
+            Command("show metrics", "Show ONOS metrics"),
+            #
+            Command("show metrics all", "Show all ONOS metrics", self.show_metrics_all),
+            #
             Command("show path", "Show a path"),
             #
             Command("show path shortest",
@@ -358,6 +362,14 @@
                     dst_port = str(v['dst-port'])
                 self.print_result("%s %s -> %s %s" % (src_dpid, src_port, dst_dpid, dst_port))
 
+    def show_metrics_all(self, args):
+        "CLI command callback: show metrics all"
+
+        url = "http://%s:%s/wm/onos/metrics" % (self.onos_ip, self.onos_port)
+        result = get_json(url)
+        #
+        self.print_json_result(result)
+
     def show_path_shortest(self, args):
         "CLI command callback: show path shortest"