4 Replies Latest reply on Jun 21, 2019 4:41 AM by NOCUKCloud

    Downloading Edge tech support logs using API

    NOCUKCloud Lurker

      Hi,

       

      I'm using powershell to try and collect the techsupport logs for edges by running this:

       

      Invoke-WebRequest -Uri "https://<nsxmanagerIP>/api/4.0/edges/<edge-id>/techsupportlogs" -Method Get -Headers $Headers -ContentType "application/xml"

       

      This command works but I can't seem to get anything useful out of what is returned. If I output this to a file, it is not a log file. If i dive into the content of the returned XML, it looks like a compressed file to me -  which is what I would expect. However, if I try to output this content into a .gz file, every archive tool i've tried says that it is corrupted. I'm at a loss!