Hitachi Content Platform​

 View Only

 HCP Object Ingested count for each tenant in CLI

  • Object Storage
  • Hitachi Content Platform HCP
  • Object Storage
Gogul Natarajan's profile image
Gogul Natarajan posted 04-15-2019 08:36

Hi All,

I would like to know the command to know the HCP Object Ingested count for each tenant in CLI.

I can able to collect the tenant details "admin jvm tenant ", but I need Object Ingested count too.


#HitachiContentPlatformHCP
#ObjectStorage
Dia Ali's profile image
Dia Ali

first find the tenant uuid. I normally use: admin jvm tenant list |egrep "uuid|'name'"

then run this command: admin jvm metrics <uuid from the above command> |grep objectCount

Gogul Natarajan's profile image
Gogul Natarajan

Hi Dia Ali,

Thanks for your reply !!

1)  I got UUID..

               # admin jvm tenant list  |egrep "uuid|'name'"

                        'name' : 'myname',

                        'uuid' : 'b2bb4dfb-c676-4375-a046-dc1273bea990',

2) but I am unable to run "admin jvm metrics <uuid from the above command> |grep objectCount " command.Please correct me ..

               # admin jvm metrics 'b2bb4dfb-c676-4375-a046-dc1273bea990'

               Unknown metrics command: b2bb4dfb-c676-4375-a046-dc1273bea990

Dia Ali's profile image
Dia Ali

I don't know why the keyboard sometimes does not follow what you are saying in tour head.

here is the command:

# admin jvm metrics tenantStatistics <tenant uuid> |grep objectCount

Gogul Natarajan's profile image
Gogul Natarajan

From GUI for same tenant objuct count is 2,507,156,670, but In CLI "0"..Please advice.

# admin jvm metrics tenantStatistics ee6152d4-7816-4bd1-9eb5-d0d239e63595 |grep objectCount

                'objectCount' : '0',

# admin jvm metrics tenantStatistics ee6152d4-7816-4bd1-9eb5-d0d239e63595

{

        'ee6152d4-7816-4bd1-9eb5-d0d239e63595' : {

                'compressedCount' : '0',

                'compressedSavedSize' : '0',

                'customMetadataCount' : '0',

                'customMetadataSize' : '0',

                'erasureCodedCount' : '0',

                'erasureCodedSize' : '0',

                'ingestedVolume' : '0',

                'metadataOnlyFileCount' : '0',

                'metadataOnlyFileSize' : '0',

                'multipartObjectCount' : '0',

                'multipartObjectPartsCount' : '0',

                'multipartObjectSize' : '0',

                'multipartUploadCount' : '0',

                'multipartUploadPartsCount' : '0',

                'multipartUploadSize' : '0',

                'objectCount' : '0',

                'shredCount' : '0',

                'shredSize' : '0',

                'storageCapacityUsed' : '0',

                'tieredToExternalFileCount' : '0',

                'tieredToExternalFileSize' : '0'