We are trying to obtain the repo URL for RHEL based Linux hosts so we can install the SolarWinds agent from a central location. Our central location is a Red Hat Satellite server.
What is also confusing is that the repo listed in the generated command says RHEL5 when we have RHEL7 or newer hosts.
We have tried using these instructions:
https://documentation.solarwinds.com/en/success_center/orionplatform/Content/Core-Deploy-Linux-agent-from-repositories.htm
Which ended up generating this command:
if [ "`id -u`" = "0" ]; then ESH='sh'; export SWR=''; else ESH='su'; export SWR='switch to root and '; echo "You will be prompted for root password."; fi; ${ESH} -c 'D=rhel-5;P=/Orion/AgentManagement/LinuxPackageRepository.ashx?path=;U="https://oursolarwindsinstall.com http://host:80 http://host:80 https://host ip.address";L=/.../swiagent-${D}.mirrors;mkdir -p ${L};for u in ${U};do echo "${u}${P}/dists/${D}/\$basearch";done>$M;printf "[swiagent]\nname=SolarWinds Agent\nmirrorlist=file://%s\nenabled=1\ngpgcheck=0\n" $M>${L}/swiagent-${D}.repo; echo "Repository for SolarWinds agent was added. To install agent ${SWR}use following commands:"; echo " yum clean all && yum install swiagent"'
It successfully created the local repo:
# cat /etc/yum.repos.d/swiagent-rhel-5.mirrors
https://solarwindsinstall.com/Orion/AgentManagement/LinuxPackageRepository.ashx?path=/dists/rhel-5/$basearch
hostname:80/.../LinuxPackageRepository.ashx
hostname:80/.../LinuxPackageRepository.ashx
hostname/.../LinuxPackageRepository.ashx
ip/.../LinuxPackageRepository.ashx
# cat /etc/yum.repos.d/swiagent-rhel-5.repo
[swiagent]
name=SolarWinds Agent
mirrorlist=file:///etc/yum.repos.d/swiagent-rhel-5.mirrors
enabled=1
gpgcheck=0
I’m able to access that URL, but there are no packages present:
# wget --no-check-certificate https://oursolarwinds.com/Orion/AgentManagement/LinuxPackageRepository.ashx?path=/dists/rhel-5/x86_64/repodata/repomd.xml
--2020-09-29 11:40:56-- https://oursolarwinds.comm/Orion/AgentManagement/LinuxPackageRepository.ashx?path=/dists/rhel-5/x86_64/repodata/repomd.xml
Resolving ourswinstance.com ... ip addy
Connecting to ourswinstance.com|ip addy|:443... connected.
WARNING: cannot verify ourswinstance's certificate, issued by CA
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 951 [application/octet-stream]
Saving to: ‘LinuxPackageRepository.ashx?path=%2Fdists%2Frhel-5%2Fx86_64%2Frepodata%2Frepomd.xml’
100%[=============================================================================================>] 951 --.-K/s in 0s
2020-09-29 11:40:56 (61.0 MB/s) - ‘LinuxPackageRepository.ashx?path=%2Fdists%2Frhel-5%2Fx86_64%2Frepodata%2Frepomd.xml’ saved [951/951]
# ll
total 204
-rw-------. 1 root root 29854 May 19 09:14 anaconda-ks.cfg
-rwxr--r--. 1 root root 73090 Dec 5 2019 bootstrap.py
-rw-r--r--. 1 root root 60320 May 19 09:14 install.post.log
-rw-r--r--. 1 root root 54 May 19 09:06 install.postnochroot.log
-rw-r--r--. 1 root root 951 Sep 29 11:40 LinuxPackageRepository.ashx?path=%2Fdists%2Frhel-5%2Fx86_64%2Frepodata%2Frepomd.xml
-rw-------. 1 root root 28966 May 19 09:14 original-ks.cfg
# cat LinuxPackageRepository.ashx\?path\=%2Fdists%2Frhel-5%2Fx86_64%2Frepodata%2Frepomd.xml
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo">
<data type="other">
<location href="repodata/other.xml.gz"/>
<checksum type="sha">658aa56fb2cdb3740c1bc234154ee02e60f91f85</checksum>
<timestamp>1596004648</timestamp>
<open-checksum type="sha">78c11928f2702b498ed064464dc4f6a485524699</open-checksum>
</data>
<data type="filelists">
<location href="repodata/filelists.xml.gz"/>
<checksum type="sha">87883386daeb664d74c2db0f8982ff4a5bb80112</checksum>
<timestamp>1596004648</timestamp>
<open-checksum type="sha">715b4285f8feb64bfa68a78a3ab2b030c4a2ab16</open-checksum>
</data>
<data type="primary">
<location href="repodata/primary.xml.gz"/>
<checksum type="sha">8e9a277f6e28afa41eb567054a8f5b6874fc08c3</checksum>
<timestamp>1596004648</timestamp>
<open-checksum type="sha">1e2c035a38ea30909f51b56cb5c26d45d3d2b790</open-checksum>
</data>
</repomd>
So to reiterate and summarize a bit:
• Is the repo/packages available on the SolarWinds server?
• Is there a way to provide a URL?
o I expect to see something like this.
http://mirror.pit.teraswitch.com/centos/7.8.2003/isos/x86_64/
• Why is this labeled RHEL5 whenever it’s RHEL7?
http://ourswinstance.com:80/Orion/AgentManagement/LinuxPackageRepository.ashx?path=/dists/rhel-5/x86_64/repodata/repomd.xml