Configuring the non-transparent proxy details in the bash_profile file

Last Updated : Dec 30, 2020 |
Prolog information
If your IT infrastructure uses a non-transparent proxy, then before you install the Usage Metering Collector, you must configure the non-transparent proxy details in the bash_profile file.
Depending on the protocol used, you can use the http_proxy or https_proxy environment variables of Linux to configure the non-transparent proxy details in the bash_profile file.
After you install the Usage Metering Collector, you must configure these proxy details in the Usage Metering Collector. This allows Usage Metering Collector to access the cloud services by using the proxy server.
If your proxy server requires authentication, configure the user name and password of the proxy server in the bash_profile file.
  1. On the CLI command prompt of the server on which you will install Usage Metering Collector, run the following command to edit the bash_profile file:
    ADDITIONAL INFORMATION:
    vi ~/.bash_profile
  2. To configure an HTTP proxy, do any of the following:
    • If the HTTP proxy server does not require authentication, run the following command:
      export http_proxy=http://<proxy IP address>:<proxy port number>
    • If the HTTP proxy server requires authentication, run the following command:
      export http_proxy=http://<proxy user name>:<proxy password>@<proxy IP address>:<proxy port number>
      Where,
      <proxy IP address> is the IP address of the HTTP proxy server.
      <proxy port number> is the port number of the HTTP proxy server.
      <proxy user name> is the user name to access the HTTP proxy server.
      <proxy password> is the password to access the HTTP proxy server.
  3. To configure an HTTPS proxy, do any of the following:
    • If the HTTPS proxy server does not require authentication, run the following command:
      export https_proxy=http://<proxy IP address>:<proxy port number>
    • If the HTTPS proxy server requires authentication, run the following command:
      export https_proxy=http://<proxy user name>:<proxy password>@<proxy IP address>:<proxy port number>
      Where,
      <proxy IP address> is the IP address of the HTTPS proxy server.
      <proxy port number> is the port number of the HTTPS proxy server.
      <proxy user name> is the user name to access the HTTPS proxy server.
      <proxy password> is the password to access the HTTPS proxy server.
  4. Run the following command for the changes in the bash_profile file to take effect at run time, without restarting the system:
    ADDITIONAL INFORMATION:
    source ~/.bash_profile
Next steps
  • After you perform the pre-installation configuration, install the Usage Metering Collector.
  • Configure these non-transparent proxy details in the Usage Metering Collector.