ViPR 2.1 - View Commodity Capacity with the ViPR CLI

Table of Contents

View Commodity capacity with the CLI

Use the ViPR CLI to view the raw storage capacity of a Commodity system, ECS Appliance, service, node, or drive.

viprcli fabric capacity

Returns the total raw storage capacity of the fabric.

In this example, the command returns the capacity for the entire fabric in GB.

./viprcli fabric capacity
{
   "total_capacity": 30000
}

viprcli fabricservice capacity

Returns the raw storage capacity assigned to a named service.

The service parameter is required. It specifies the name of a fabric service: either Object or Block. The option names are case sensitive.

In this example, the command returns the capacity for the Object service in GB.

./viprcli fabricservice capacity -service Object
{
   "total_capacity": 30000
}

viprcli fabricnode capacity

Returns the raw storage capacity that the specified node manages.

The node parameter is required. It specifies the system ID of the node.

In this example, first use viprcli fabricnode list to return the list of nodes in the fabric. Then use the viprcli fabricnode capacity command to return the raw storage capacity for the node in GB.

./viprcli fabricnode list
 NAME
  layton-cyan
./viprcli fabricnode capacity -node layton-cyan             
{
   "total_capacity": 30000
}

viprcli fabricdisk capacity

Returns the raw storage capacity of the specified drive.

The disk parameter is required. It specifies the device name of a drive. Use the optional node parameter to specify the drive's node to avoid ambiguity.

In this example, first use viprcli fabricnode disks to return the list of drives for a node. Then use the viprcli fabricnode capacity command to return the raw capacity for the node.

./viprcli fabricnode disks -node layton-cyan                {
   "disk": [
      {
         "id": "urn:fabric:disk:13ccdb86-da59-de47-931d-b8db3b483b8d:",
         "link": {
            "href": "/vdc/fabric/disks/urn:fabric:disk:13ccdb86-da59-de47-931d-b8db3b483b8d:",
            "rel": "self"
         },
         "name": "/dev/sdx1"
      },
.
.
.
      {
         "id": "urn:fabric:disk:fe7f6faf-2aaa-5841-8e81-56afb898093a:",
         "link": {
            "href": "/vdc/fabric/disks/urn:fabric:disk:fe7f6faf-2aaa-5841-8e81-56afb898093a:",
            "rel": "self"
         },
         "name": "/dev/sdl1"
      }
   ]
}
./viprcli fabricdisk capacity -disk "/dev/sd11" -node layton-cyan
{
   "total_capacity": 1000
}

Back to Top