Course Hero Logo

How do we authenticate to vmanage i dont suppose the

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 85 - 88 out of 88 pages.

How do we authenticate to vManage? I don’t suppose the API is unprotected for anyone to justsend API calls as they please, but the docs for the reboot API did not mention any authentication atall.This devideid in the template – I don’t know what value to put thereWhy is the ‘deviceIP’ pair enclosed in the square [] brakets? They seems to simply double thecurly [] brackets which I see point forThanks.AvonaFABD2 RP/WAN team.
天津新盟教育-华为、思科、Linux等全套课程腾讯课堂在线培训中心QUESTION 38Refer to the new resource(s) available.Which two of the following changes to the script would shorten its running time without impairingits functionality? (Choose two.)a) Construct the JSON body of the request manually instead of using the json.dumps0 method.b) Execute the loginAPI0 only once and reuse the session for multiple API calls.c) Use the put0 method instead of post0 to pass the reboot API call.d) Combine device IP/ID pairs into a list and pass them all in a single API call.e) Refer to the vManage by its DNS FQDN instead of its IP address.SolutionAnswer: b,dResourcesRE: Questions regarding SD-WAN API callsFrom: ‘Travis Handerson’To: ‘CCIE candidate’Subject: RE: Questions regarding SD-WAN API callsHi,Thanks a lot! It worked!I have one more question if you don’t mind. I’ve been looking at the performance of my script, andto stand the API calls to reload 2 vEdges, it takes the script around 2 seconds to complete. I playedaround with the script, adding more vEdge IPs and IDs to find out how the amount of vEdge playsa role in the script execution time, and it seems that sending a reload request for any single vEdgetakes about 1 second, the time growing linearly with the number of vEdge to reload. That feels waytoo long to be honest. Something’s wrong here that’s delaying the run of my script, but I cannot findout what. Can you have a look at it? Oh, I’ve omitted the body of the loginAPI() function to keepthe below output short.Import requestImport sysImport jsonFrom requests.packages.erilliso.exceptio.import.InsecurerequestwarningRequests.packages.er 1lip3.fixavle_warning (InsecureRequestWarning).def .loginAPI (host, username, password) :
天津新盟教育-华为、思科、Linux等全套课程腾讯课堂在线培训中心* body omittedReturn sessionDef reloadAPI (host, username, password, ip, id)session * LoginAPI (host, username,password)request * (‘action’ : ‘reboot’ , ‘deviceType’ : ‘vedge’ , ‘devices’ I [] }request | ‘device’ | append ( {‘deviceIP’ : IP , ‘deviceId’ : id ) }sp1 – ‘https://’’ * host – ‘/dataservice/device/action/reboot’headers * ( ‘Content - Type’ | ‘application’json’ )return session.port (SP1 SPI 1, data*json.dumps (request), headers header, verifyfalse)device * {}devices update ( ( ‘1.1.2.3’ : ‘o7c150fb-1tbe-2tb4-2be1-2sbdcb9?afc3’ ) )devices update ( ( ‘1.1.2.3’ : ‘2e24c1de-7tbe-2235-abc9-93492abccdb’ ) )For ip in devicesResponse : reloadAPI (’10.2.263.11’. ‘admin’, ‘admin’ , ip , devices {ip} ) )Print (response-content)Thanks!AvonaFABD2 RP/WAN team
天津新盟教育-华为、思科、Linux等全套课程腾讯课堂在线培训中心QUESTION 39You have reached the end of exam module 1. Click “End Exam Section” in the mainscreen in order to proceed to module 2.
End of preview. Want to read all 88 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
IP address, Dynamic Host Configuration Protocol, multicast address, Travis Handerson

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture