Latest ams do not work as expected with old Gen8 (iLO 4) servers.
Install the one from focal and install outdated dependencies:
curl https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | gpg --dearmor -o /etc/apt/trusted.gpg.d/hpe-key.gpg
echo "deb https://downloads.linux.hpe.com/SDR/repo/mcp focal/current non-free" > /etc/apt/sources.list.d/hpe-mcp.list
wget http://security.ubuntu.com/ubuntu/pool/main/j/json-c/libjson-c4_0.13.1+dfsg-7_amd64.deb
dpkg -i libjson-c4_0.13.1+dfsg-7_amd64.deb
apt update -y && apt install amsd -y
systemctl enable --now amsd(obviously NEVER do this outside of a homelab)