Can't scan Documents from hp printer

this first command gives this
device hpaio:/usb/HP_LaserJet_Pro_MFP_M125nw?serial=CNB6GDR4Z9' is a Hewlett-Packard HP_LaserJet_Pro_MFP_M125nw all-in-one device hpaio:/net/hp_laserjet_pro_mfp_m125nw?ip=192.168.1.17&queue=false’ is a Hewlett-Packard hp_laserjet_pro_mfp_m125nw all-in-one
the second one gives that
Output format is not set, using pnm as a default.
scanimage: open of device hpaio:/usb/HP_LaserJet_Pro_MFP_M125nw?serial=CNB6GDR4Z9 failed: Error during device I/O

note"the printer is connected wirlessly"
and the scaning programs gives the their is two printers with the same name