cancel
Showing results for 
Search instead for 
Did you mean: 

API call catalog/images

uncleAIroh
Level 3

can anyone let us know why we API call catalog/images get back image id of client seems from replication, not local master backup, how we get local master server image id of backup client?

32 REPLIES 32

uncleAIroh
Level 3

also we can add host from GUIAPI, while we wrote python code with payload {"hostName": "host"}, we can add host to master too, but reponse.json() "Expecting value: line 1 column 1 (char 0)", error message, also the response file is all hosts in master not only for new host just add

uncleAIroh
Level 3

we can add client to policy with API successful right now, but need to put hardware type,

we need to add 100s client by API for one script run, the question if add client to policy, the NBU client installed later, what would be happen? can master server smarter to update status of client info in master?

Having the client hardware type accurate is not critical in a policy - it does have implications when you use NetBackup to upgrade (either of vxupdate or install_client), but for just running backups, not so much.

uncleAIroh
Level 3

do you mean we can add all backup clients to policy, and install backup clients later would be fine, isn't it? when backup client installed, client will use certificate connect mater and update client information, am I correct?

Adding clients to policy - all good, but you will need to manage those clients that don't yet have an agent (disable the polciy or deactivate the client until you install it) or have backup failures to those clients without an agent. There may be an API (/config/paused-clients) if your NBU version is high enough. 

When you install the NetBackup agent, it should then be able to get the host certificate (and CA cert) from the master without a token (unless you have security set very high). This will NOT update anything in the policy though (client or otherwise) - you would need to do that separately. 

do you mean if we deactive those client we will not get error message? using /config/paused-clients API to deactive? what is Netbackup version needed

Hi @uncleAIroh 

I've not used this API so do not know if it will do as you want. Anyway, it seems to have been added in 10.1. You can go here for the available API calls for all NBU versions. The link starts you at 10.1, but other versions can be selected.

https://sort.veritas.com/public/documents/nbu/10.1/windowsandunix/productguides/html/hostproperties/

David

Thanks, that help!!

another API question, is when we API call alerlog, it seems come back only client backup alert, not include catalog backup alert, this is suppose to be, or we did something wrong?

 

HI

I do not know not having used this API - but if you are going to ask about an API, you need to actually give the APi path (as in I have no idea what call you are asking about)

David

 

Arre you aware of the github repository of example code - there may be something in there that might help - the link is this: https://github.com/VeritasOS

 

uncleAIroh
Level 3

we did reference code frim GitHub sample, work is perfect for client alert, somehow can't find catalog backup error, which we always have

uncleAIroh
Level 3

we found solution, we have to put sub catalog Thanks!

we using payload to pausing-client based the doc you provided, got 404 error not found client, we check json file of policy, only have hostName, no displayName, we replace displayName by hostname still got same error, we also tried to us uuid form host table, input to clientidentifier, same 404 error too, our master version is 10.1, but no swage provided to test for hostproperities... could you let us know which part is wrong?

{  "data": [    {
      "type": " ",      "attributes": {
        "displayName": "clientnameg",
        "reason": "string",
      }
    }
  ]
}