Install the cups-ipp-utils package.
Get the printer's URI by the command
driverless
Then issue the command
ipptool -tv <URI> get-printer-attributes.test > attrs.txt
and replace <URI> by your printer's URI.
Check whether it exited without error
echo $?
Check the output file attrs.txt whether there are some errors in it.