NetWorker: REST API jobs GET request shows incorrect dataSize unit
Zhrnutie: NetWorker provides Representational State Transfer (REST) Application Programming Interface (API) which can be used for gather data from the NetWorker application. The "jobs" based GET request reports the dataSize unit as "KB"; However, the value shown is the backup size in bytes not KB. ...
Tento článok sa vzťahuje na
Tento článok sa nevzťahuje na
Tento článok nie je viazaný na žiadny konkrétny produkt.
V tomto článku nie sú uvedené všetky verzie produktov.
Symptómy
- A REST API GET request is used to collect "jobs" information from the NetWorker server.
curl -k -u Administrator:'PASSWORD' -X GET https://NETWORKER-SERVER-ADDRESS:9090/nwrestapi/v3/global/jobs/JOBID
- The dataSize unit shows as kilobytes; however, the value shown is in bytes:
"clientHostname": "win-client01.amer.lan",
"completionStatus": "Succeeded",
"dataSize": {
"unit": "KB",
"value": 96637437263
},
"dependentJobIds": [
0
],
"endTime": "2025-07-09T23:12:29-04:00",
"exitCode": 0,
Assuming the value is in kilobytes as shown, the converted value of the Virtual Machine (VM) to another unit reports a larger size than the VM is. For example, converting the value to GB suggests the VM is 94 TB.
[root@nsr ~]# echo "scale=6; 96637437263 / 1000 / 1024" | bc
94372.497327
- The
mminfooutput for this save set the correct VM size is shown:
[root@nsr ~]# mminfo -kot -q vmname=win-client01.amer.lan
volume type vm_name date time size ssid fl backup_size
ddve02VMdata.001 Data Domain win-client01.amer.lan 07/09/2025 11:12:29 PM 94 GB 3933240894 cr 94 GB
Converting the value shown in the jobsdb (REST API output) from bytes matches the VM size recording in the media database (
mminfo):
[root@nsr ~]# echo "scale=6; 96637437263 / 1000 / 1024 / 1000" | bc
94.372497
NOTE: This is observed for 19.9.0.6 and 19.10.0.3 and later. Prior to these versions the opposite is observed. Meaning, the unit reported is Bytes, but the value shown is in kilobytes. The conversion results in a smaller value than expected.
Príčina
This issue was raised to NetWorker engineering.
Riešenie
A future code fix will address this issue. This KB will be updated once fix details are posted.
You can continue using the jobs GET request until a code fix is applied. However, note that the value is in bytes, not kilobytes. Any conversion to a larger unit (such as GB or TB) must be done from bytes.
Ďalšie informácie
Dotknuté produkty
NetWorkerProdukty
NetWorker Family, NetWorker SeriesVlastnosti článku
Číslo článku: 000221479
Typ článku: Solution
Dátum poslednej úpravy: 30 dec 2025
Verzia: 5
Nájdite odpovede na svoje otázky od ostatných používateľov spoločnosti Dell
Služby podpory
Skontrolujte, či sa na vaše zariadenie vzťahujú služby podpory.