Solved

API - VM backup report vs console

  • 8 September 2022
  • 4 replies
  • 114 views

Badge +1

Hello,

When I use the rest API : {{ServerUrl}}/VM  to get all the VM’s state, I have different result from console interface.

Part of result for one VM : dvbvcnsxeu0e002.

        {
            "type"9,
            "vmStatus"2,
            "slaStatus"2,
            "subclientId"2158,
            "name""dvbvcnsxeu0e002",
            "storagepolicyName""IN_NTR_CIT_GRID_A01_A01_STD",
            "slaCategory"4,
            "latestBackupTimeCatalogedSuccessfully"0,
            "isIndexingV2"false,
            "vmBackupJob"0,
            "strOSName""Ubuntu Linux (64-bit)  ",
            "isDeleted"false,
            "osType"2,
            "slaCategoryDescription""No Schedule",
            "retireClientPhase"0,
            "isContentIndexded"false,
            "isBackupAllowed"true,
            "vmHardwareVer""vmx-13",
            "strGUID""50335735-240e-0201-6b4f-e2c0dcdc1e51",
            "subclientName""default",
../..
            "vsaSubClientEntity": {
                "backupsetId"575,
                "subclientId"2158,
                "subclientName""default",
                "entityInfo": {
                    "companyId"0,
                    "companyName""",
                    "multiCommcellId"0
                }
            },
            "client": {
                "clientId"935,
                "clientName""dvbvcnsxeu0e002",
                "displayName""dvbvcnsxeu0e002",
                "entityInfo": {
                    "companyId"0,
                    "companyName""",
                    "multiCommcellId"0
                }
            },
../..
            "lastBackupJobInfo": {
                "jobID"101677,
                "commCellID"2,
                "failureReasonMessageEnglish""",
                "status"1,
                "startTime": {
                    "time"1652112203,
                    "entityInfo": {
                        "companyId"0,
                        "companyName""",
                        "multiCommcellId"0
                    }
                },
                "endTime": {
                    "time"1652112329,
                    "entityInfo": {
                        "companyId"0,
                        "companyName""",
                        "multiCommcellId"0
                    }
                }
            },

 

As you can see, the last job backup info status give us : "jobID"101677 , with "status"1

But in the console, the only job I have is :

 

The backup jobid is 101828 and not the same with the API . In the other hand, the backup jobid from APi 101677 is unknown into console (righ click on commcell name / view / job history with aged option).

 

So my questions are :

  • Why there are not the same ?
  • Can you give me all the status value/signification for “lastbackupjobinfo” struct ?
  • Why "vmBackupJob"0 I hope here a valid value

From you documentation,

The field vmstatus meaning : “the status of the backup for virtual machine” , and the value “2” mean “in progress”. But this still completed since May.

 

Regards,

icon

Best answer by chrisknows 12 September 2022, 12:34

View original

4 replies

Userlevel 2
Badge +7

@mjc  - Would you provide us with the Commvault version being used (please include maintenance pack)? 

Badge +1

Hello,

 

My current version is : 11.24.60

 

Thanks,

Userlevel 3
Badge +10

My guess is v1 vs v2 indexing.

 

every virtual machine backup consists of two job ids. The subclient backup of the vcenter instance and the jobid associated with the vcenter instance.

 

i would assume that they match on v2 indexing clients and disagree on v1 indexing or vice-versa.  

the reason why the jobid would be unknown is that the vcenter subclient job is considered an “admin job” and the pseudoclient job is considered a standard job.

 

i would search for the missing job under admin job history. 
 

just a guess though.

Badge +1

@chrisknows , thanks, for you answer. You’r right for the 2 jobs, but in my case, one of them is empty.

"vmBackupJob": 0,

Some time (no comment about this ^^) this field containt the jobid for the VM and lastBackupJobInfo containt effectivly the jobid for the subclient.

Reply