ryran / xsos

sosreport examiner - instantly summarize system info from a sosreport or a running system
337 stars 121 forks source link

RFE - Include port number along with RHSM hostname when I execute xsos -a command. #263

Open dhavaljos opened 3 years ago

dhavaljos commented 3 years ago

Hi,

I will try to explain the requirement for filing this RFE:

A host can be connected to the RH Satellite server or RH Capsule server. When a host is connected to the Satellite server or CDN, the port number used is 443. But when a host is connected to the Capsule server port number is 8443. By checking the RHSM hostname and the port number, we identify if the host is connected to the Satellite server or Capsule server.

When we run "xsos -a ." command, I can see RHSM hostname. But to find out if the host is connected to the capsule or Satellite server, we have to check /etc/rhsm/rhsm.conf file for the port number.

Cropped output from rhsm.conf fle:


Server port:

port = 443

Please see the below example of what is expected.

OS Hostname: host. example.com Distro: [redhat-release] Red Hat Enterprise Linux Server release 7.9 (Maipo) [os-release] Red Hat Enterprise Linux Server 7.9 (Maipo) 7.9 (Maipo) RHN: serverURL = https://enter.your.server.url.here/XMLRPC enableProxy = 0 RHSM: hostname = capsule.example.com port = 8443 <---- port parameter from rhsm.conf file proxy_hostname =

I believe we can save some time if everyone can see the port number by running xsos command itself.