In the command line, type scanimage --ip-address=<printers_ipaddress> /tmp/scan.pnm.
Adjust the scan settings, if necessary. For more information, see Adjust the scan settings using scanimage.