mosys0815 commented on issue #10996:
URL: https://github.com/apache/cloudstack/issues/10996#issuecomment-2959501272

   yes, I thought so, a one-liner using structured data could like this:
   
   ```
   ip -j a | jq -r '.[] | .addr_info | map(select(.local == "'"$(ip -j r s 
default | jq -r '.[0] | .prefsrc')"'")) | .[].label'
   ```
   
   output on my L2-network test virtual machine:
   ```
   ~# ip -j a | jq -r '.[] | .addr_info | map(select(.local == "'"$(ip -j r s 
default | jq -r '.[0] | .prefsrc')"'")) | .[].label'
   ens3
   ```
   
   output on L3-network server:
   ```
   ~# ip -j a | jq -r '.[] | .addr_info | map(select(.local == "'"$(ip -j r s 
default | jq -r '.[0] | .prefsrc')"'")) | .[].label'
   hostip
   ```
   
   Feel free to use and adapt :)
   
   But for now, is there anything I can do to get the certificate, even 
manually?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to