0

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?

Romeo Ninov
  • 5,263
  • 4
  • 20
  • 26
  • You ask two questions here. From the title, the package `libxml2` provides `xmllint`. You can find this by the command `dnf whatprovides xmllint`. The command parameters are the same on both distributions so your Ubuntu command should work on Rocky. `man xmllint` also gives pretty good documentation. – doneal24 Jan 22 '23 at 16:47

0 Answers0