Загрузка данных
[ismestieva_mn@MO-PC-97 ~]$ lpinfo -m | grep -i '1102'
foomatic:HP-LaserJet_Pro_P1102-foo2zjs-z2.ppd HP LaserJet Pro P1102 Foomatic/foo2zjs-z2
foomatic:HP-LaserJet_Pro_P1102w-foo2zjs-z2.ppd HP LaserJet Pro P1102w Foomatic/foo2zjs-z2
drv:///hp/hpijs.drv/hp-laserjet_professional_p_1102w-hpijs.ppd HP LaserJet Professional p 1102w hpijs, 3.25.6
drv:///hp/hpcups.drv/hp-laserjet_professional_p_1102w.ppd HP LaserJet Professional p 1102w, hpcups 3.25.6
lsb/usr/HP/hp-laserjet_professional_p_1102w.ppd.gz HP LaserJet Professional p 1102w, hpcups 3.25.6
drv:///hp/hpijs.drv/hp-laserjet_professional_p1102-hpijs.ppd HP LaserJet Professional p1102 hpijs, 3.25.6, requires proprietary plugin
drv:///hp/hpcups.drv/hp-laserjet_professional_p1102.ppd HP LaserJet Professional p1102, hpcups 3.25.6, requires proprietary plugin
lsb/usr/HP/hp-laserjet_professional_p1102.ppd.gz HP LaserJet Professional p1102, hpcups 3.25.6, requires proprietary plugin
drv:///hp/hpijs.drv/hp-laserjet_professional_p1102w-hpijs.ppd HP LaserJet Professional p1102w hpijs, 3.25.6, requires proprietary plugin
drv:///hp/hpcups.drv/hp-laserjet_professional_p1102w.ppd HP LaserJet Professional p1102w, hpcups 3.25.6, requires proprietary plugin
lsb/usr/HP/hp-laserjet_professional_p1102w.ppd.gz HP LaserJet Professional p1102w, hpcups 3.25.6, requires proprietary plugin
[ismestieva_mn@MO-PC-97 ~]$ lpstat -i
lpstat: Ошибка - неизвестный параметр "i".
Usage: lpstat [options]
Параметры:
-E Encrypt the connection to the server
-h server[:port] Connect to the named server and port
-l Show verbose (long) output
-U username Specify the username to use for authentication
-H Show the default server and port
-W completed Show completed jobs
-W not-completed Show pending jobs
-a [destination(s)] Show the accepting state of destinations
-c [class(es)] Show classes and their member printers
-d Show the default destination
-e Show available destinations on the network
-o [destination(s)] Show jobs
-p [printer(s)] Show the processing state of destinations
-r Show whether the CUPS server is running
-R Show the ranking of jobs
-s Show a status summary
-t Show all status information
-u [user(s)] Show jobs queued by the current or specified users
-v [printer(s)] Show the devices for each destination
[ismestieva_mn@MO-PC-97 ~]$ lpstat -t
планировщик запущен
назначение системы по умолчанию: Pantum-M7300FDN
устройство для HP-LaserJet-Pro-P1102w: ipp://172.22.38.125:631/printers/HP_LaserJet_Professional_P1102w
устройство для Pantum-M7300FDN: socket://172.22.38.174:9100
HP-LaserJet-Pro-P1102w принимает запросы с момента Пн 21 сен 2026 10:55:49
Pantum-M7300FDN принимает запросы с момента Пт 11 сен 2026 15:47:51
принтер HP-LaserJet-Pro-P1102w свободен. Включен с момента Пн 21 сен 2026 10:55:49
Process is dying with "ERROR: The value of the key FoomaticRIPOptionSetting is not among the allowed values - see foomatic-rip man page for more instructions.
принтер Pantum-M7300FDN свободен. Включен с момента Пт 11 сен 2026 15:47:51
[ismestieva_mn@MO-PC-97 ~]$ su
Пароль:
[root@MO-PC-97 ismestieva_mn@udmr.gosdom]# tail -150 /var/log/cups/
tail: ошибка чтения '/var/log/cups/': Это каталог
[root@MO-PC-97 ismestieva_mn@udmr.gosdom]# error_log
bash: error_log: команда не найдена
[root@MO-PC-97 ismestieva_mn@udmr.gosdom]# which foomatic-hash
/usr/bin/foomatic-hash
[root@MO-PC-97 ismestieva_mn@udmr.gosdom]# mkdir -p /etc/foomatic/hashes.d
[root@MO-PC-97 ismestieva_mn@udmr.gosdom]# foomatic-hash --ppd-paths /etc/cups/ ppd file_to_review local_hashes
Usage:
foomatic-hash --ppd <ppdfile> <scanoutput> <hashes_file>
foomatic-hash --ppd-paths <path1,path2...pathN> <scanoutput> <hashes_file>
Finds values of FoomaticRIPCommandLine, FoomaticRIPPDFCommandLine
and FoomaticRIPOptionSetting from the specified PPDs, appends them
into the specified scan output for review, and hashes the found values.
--ppd <ppdfile> - PPD file to read
--ppd-paths <path1,path2...pathN> - Paths to look for PPDs, available only with libppd
<scanoutput> - Found required values from drivers
<hashes_file> - Output file with hashes
[root@MO-PC-97 ismestieva_mn@udmr.gosdom]# foomatic-hash --ppd-paths /etc/cups/ppd file_to_review local_hashes
[root@MO-PC-97 ismestieva_mn@udmr.gosdom]# cat file_to_review
-q1
-qas
-qwts
-t
-10
-12
-14
-15
-16
-18
-2
-3
-4
-6
-8
-T1
-T2
-T3
-T4
-T5
-m1
-m2
-m258
-m260
-m261
-m262
-m263
-m265
-m267
-m273
-m282
-m283
-m512
-m513
-m514
-m515
-m516
-ol
-os
-p1
-p11
-p13
-p20
-p257
-p258
-p263
-p264
-p27
-p28
-p34
-p37
-p43
-p5
-p7
-p70
-p82
-p9
-pCustom.%0x%1
-r1200x600
-s1
-s2
-s3
-s4
-s5
-s7
foo2zjs-wrapper -z2 -P -L0 %A
[root@MO-PC-97 ismestieva_mn@udmr.gosdom]# ls -l local_hashes
-rw-r--r-- 1 root root 4431 сен 21 11:02 local_hashes
[root@MO-PC-97 ismestieva_mn@udmr.gosdom]#