@utils.arg('--cell', metavar='<cell-name>', help=_('Name of the cell to get the capacities.'), default=None)
def do_cell_capacities(cs, args):
 cell = cs.cells.capacities(args.cell)
 print((_('Ram Available: %s MB') % cell.capacities['ram_free']['total_mb']))
 utils.print_dict(cell.capacities['ram_free']['units_by_mb'], dict_property='Ram(MB)', dict_value='Units')
 print((_('\nDisk Available: %s MB') % cell.capacities['disk_free']['total_mb']))
 utils.print_dict(cell.capacities['disk_free']['units_by_mb'], dict_property='Disk(MB)', dict_value='Units')

@ utils . arg ( '--cell' , metavar = '<cell-name>' , help = _ ( 'Name of the cell to get the capacities.' ) , default = None ) def do_cell_capacities ( cs , args ) : cell = cs . cells . capacities ( args . cell ) print ( ( _ ( 'Ram Available: %s MB' ) % cell . capacities [ 'ram_free' ] [ 'total_mb' ] ) ) utils . print_dict ( cell . capacities [ 'ram_free' ] [ 'units_by_mb' ] , dict_property = 'Ram(MB)' , dict_value = 'Units' ) print ( ( _ ( '\nDisk Available: %s MB' ) % cell . capacities [ 'disk_free' ] [ 'total_mb' ] ) ) utils . print_dict ( cell . capacities [ 'disk_free' ] [ 'units_by_mb' ] , dict_property = 'Disk(MB)' , dict_value = 'Units' )
get cell capacities for all cells or a given cell .