cmdiag is a Docsis cable modem diagnostic tool.
· To successfully install and run this tool you will need these two libraries, Ncurses and Net-SNMP installed on your system.
· Those two libraries have packages for most every Linux distro so don't worry.
Just uncompress the archive cmdiag-0.1.tar.gz:
Step 1. tar xzf cmdiag-0.1.tar.gz
Step 2. cd cmdiag/
Step 3. make clean
Step 4. make
Step 5. make install : This will install the cmdiag binary on /usr/sbin/cmdiag