How does bpVMreq cmd collect vCloud metadata?
Hello, Can someone please tell me what is inside bpVMreq command and how the metadata for vCloud infrastructure is collected? Is it a vCloud API call or some other way? If its API call, which is it? We have Veritas enhancement request open and im trying to assist as much as possible, and this piece of information could lead to a successful solution. Thanks for any kind of help.455Views0likes0CommentsRequest API with filter option
Hello, I would like to filter from requesting API. curl -k -X GET https://master:1556/netbackup/catalog/images?filter%3DclientName%20eq%20%27CLIENT_NAME%27 -H 'Accept: application/vnd.netbackup+json;version=2.0' -H 'Authorization: MY_TOKEN_HERE' | json_pp But the result include the whole client name list? What i'm missing ? Thanks for your help.1.2KViews0likes3CommentsNetbackup Appliance API calls not working
Hi all, I am trying to run powershell script (based on API) to monitor Netbackup Appliance without success. Using the same script on the ordinary Netbackup was ok. So, what could be the difference between the Netbackup Appliance and Netbackup? Script to gather information about running services (https://github.com/VeritasOS/netbackup-api-code-samples/blob/master/recipes/powershell/admin/get_services.ps1) The error output from Netbackup Appliance: PS C:\Users\Administrator\Desktop> ./get_services.ps1 -MasterServer <hostname> -UserName <user_name> -Password <password> -Client <hostname> Sending a POST request to login to the NetBackup webservices... Login successful. Sending a GET request to get host UUID .. Invoke-WebRequest : Vzdálený server vrátil chybu: (401) Neověřeno. At C:\Users\cz.jcieslar\Desktop\get_services.ps1:111 char:14 + $response = Invoke-WebRequest ` + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc eption + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand Unable to get host UUID. At C:\Users\Administrator\Desktop\get_services.ps1:119 char:3 + throw "Unable to get host UUID.`n" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (Unable to get host UUID. :String) [], RuntimeException + FullyQualifiedErrorId : Unable to get host UUID. It seems according to error (401),that our user has not enough priviliges to be able to gain UUID of the Appliance. However the login was successful, so the API token was generated without problem. Do you have any idea how to increase user priviliges on the Netbackup Appliance? Do you have any experience with API powershell calls on the Netbackup Appliance? I am looking forward for any suggestions!Solved1.5KViews0likes3CommentsChecking RBAC (UUID permission) on Netbackup and Netbackup appliance
Hello, it is very likely that our user has not right to get UUID during the API call. How can I check if the user has UUID permission or not? For Netbackup appliance the address https://IP/webui is not working (or it is said, that user does not have RBAC to login). Is there any other commands for checking these permissions? The second question would be how to increase missing UUID permission? Any help much appriaciated!Solved1.1KViews0likes2CommentsAPI call from Windows
Hi all, could you please show there the way how to run API calls from Windows OS. I guess, the right way will be using Powershell (Although, it could be used Python scripts as well). So, what is the right syntax for gaining the token and how the simple command looks e.g. for showing running backup jobs in Powershell? Any help will be much appreciated!Solved865Views0likes1CommentNetBackup API call format works in Unix but not Windows
I am running NetBackup 8.2 on a Solaris master. I am writing a script to run on my existing Windows clients for when the server needs to be reinstalled and it needs to have a re-issue token to allow automated installation of the NetBackup software. I have a working version of the script for Linux but I am having an issue converting it to run as a PowerShell script. I have been able to convert all the other API calls but not the POST /security/securitytokens to create the new token. If I use the autogenerate API GUI when connecting to https://MASTER/api-docs/index.htmlin the security section it will only produce a Unix curl version. I even created a test Windows master server and it also only generates a Unix curl formatted output. I have checked the github site but I could not find a PowerShell example of this API command The generated code obtained is as follows: curl -X POST "https://MASTER/netbackup/security/securitytokens" -H "accept: application/vnd.netbackup+json;version=3.0" -H "Authorization: ABCDEFGHIJKLMNOPQRSTUVWXYZ" -H "Content-Type: application/vnd.netbackup+json;version=3.0" -d "{ \"tokenName\": \"test1\", \"hostId\": \"testid\", \"reason\": \"Re-Issue\", \"allowedCount\": 1, \"validFor\": 3600, \"type\": 1}" I had to change curl to curl.exe to use the true curl program not the alias to Invoke-WebRequest (which format is completely different) and add the -k option. This will produce the following error: {"errorCode":9926,"errorMessage":"Input JSON is invalid","attributeErrors":{},"fileUploadErrors":[],"errorDetails":[]} I have tried replacing the \" with ^" and also ' instead of \" but still get the JSON invalid message. Is there an option or any way to generate the output for Windows PowerShell? Any help will be greatly appreciated. Thank you.Solved2.3KViews0likes4Comments