Verifying an Instance Can Connect to Autonomous Linux

Verify an instance can reach the Autonomous Linux service to help troubleshoot connectivity and registration issues.

OCI instance

Oracle Linux

  1. Connect to the instance by using SSH.
  2. Run the following:
    curl -s -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/regionInfo > /tmp/curl.out
    REGION=`cat /tmp/curl.out | jq -r ".regionIdentifier"` ; export REGION
    DOMAIN=`cat /tmp/curl.out | jq -r ".realmDomainComponent"` ; export DOMAIN
    curl -s https://osmh.$REGION.oci.$DOMAIN &>/dev/null ; [ $? == 0 ] && echo "Success" || echo "Failure"
  3. If the test reports 'Failure':
    • Verify the VCN subnet used by your instances has an OCI service gateway.