I am setting up monitor for bind service on Rocky Linux.
I need to parse xml output of bind statistics.
On ubuntu I can run the next command and get valid output
root@ubuntu:~# curl -s 172.19.0.30:8053 | xml2
/statistics/memory/contexts/context/maxinuse=158976
/statistics/memory/contexts/context/blocksize=262144
/statistics/memory/contexts/context/pools=7
/statistics/memory/contexts/context/hiwater=801324922
.......
What will be equivalent command on CentOS / Rocky to parse xml output of bind9.
Did not find the correct command after a hour of googling.
Is there any parameters on xmllint
will help me?