Автор Тема: airscan - оключить поиск сканеров в сети.  (Прочитано 776 раз)

Оффлайн vvsvv

  • Начинающий
  • *
  • Сообщений: 2
Добрый день.
В локалке много мфу, при запуске xsane или simplescan устройства на экране не помещаются.
1) Раскомментировал параметр discovery = disable

2) Скопировал вывод airscan-discovery в раздел [device] и после имени поставил disable, кроме нужного мне

3) в разделе [blacklist] указал ip = айпи_адреса оставшихся 3-х устройств.
написал model = "CANON*"

Но эти оставшиеся 3 canon  живее всех живых -  всё равно отображаются в списке.
Подскажите, пожалуйста, какие ещё есть варианты фильтрации, что бы их не было в списке у программы xsane?
Или как этой программе указать конкретное устройство, с которым надо работать?

Заранее спасибо!

Конфиг файла. Вместо ХХ стоят циферки ip адреса.

# sane-airscan example configuration file

# You can add scanners manually, using the following syntax:
# [devices]
#   name1 = url1           ; add eSCL device
#   name2 = url2, protocol ; protocol can be escl or wsd
#   name2 = disable        ; disable the device
#
# The following utility helps to discover scanners for manual
# addition:
#
#   https://github.com/alexpevzner/airscan-discover

[devices]
  CANON = disable
  Canon MF420 Series (71:b3:4a) = disable
  Canon MF420 Series (71:b3:4a) = disable
  Canon MF420 Series (71:b5:67) = disable
  Canon MF420 Series (71:b5:67) = disable
  Canon MF420 Series (76:7e:f3) = disable
  Canon MF420 Series (76:7e:f3) = disable
  Canon MF440 Series (f8:5b:25) = disable
  Canon MF440 Series (f8:5b:25) = disable
  Canon MF450 Series = disable
  Canon MF450 Series = disable
  Canon MF450 Series (21:36:76) = http://XX.XX.XX.45:80/eSCL/, eSCL
  Canon MF450 Series (21:36:76) = disable
  Canon MF450 Series (21:c2:fb) = disable
  Canon MF450 Series (21:c2:fb) = disable
  HP LaserJet MFP M236sdn (0FCBB8) = disable
  HP LaserJet MFP M236sdn (0FCBB8) = disable
  HP LaserJet MFP M236sdn (0FCBB8) = disable
  HP LaserJet MFP M236sdn (0FCBB8) = disable
  HP LaserJet MFP M426fdn (0D9079) = disable
  HP LaserJet MFP M426fdn (0D9079) = disable
  HP LaserJet MFP M426fdn (0D9079) = disable
  HP LaserJet MFP M426fdn (131635) = disable
  HP LaserJet MFP M426fdn (2569AD) = disable
  HP LaserJet MFP M426fdn (2569AD) = disable
  HP LaserJet MFP M426fdn (2569AD) = disable
  HP LaserJet MFP M426fdn (528F34) = disable
  HP LaserJet MFP M426fdn (528F34) = disable
  HP LaserJet MFP M426fdn (528F34) = disable
  Kyocera ECOSYS M2040dn = disable
  Kyocera ECOSYS M8130cidn = disable
  Kyocera ECOSYS M8130cidn = disable
  Kyocera ECOSYS M8130cidn = disable
  Kyocera ECOSYS M8130cidn = disable


# Various options
#
# Automatic discovery may be enabled (the default) or disabled:
#   discovery = enable  ; Enable automatic device discovery
   discovery = disable ; Disable both DNS-SD and WS-Discovert
#
# Protocol choice (eSCL vs WSD if both are available)
#   protocol = auto     ; Best protocol is chosen automatically, the default
#   protocol = manual   ; Manual choice is offered
   protocol = manual   ; Manual choice is offered
#
# WS-Discovery mode
#   ws-discovery = fast ; Fast discovery, the default
#   ws-discovery = full ; Full discovery, slow and accurate
#   ws-discovery = off  ; Disable WS-Discovery
   ws-discovery = off  ; Disable WS-Discovery
#
# Scanner "model" is a string that most of SANE apps display in a list
# of devices. It may be more convenient to use scanner network name
# for this purpose:
#   model = network     ; use network device name (default)
#   model = hardware    ; use hardware model name
#
# socket_dir gives an optional path to a directory where local (UNIX) sockets
# can be found.  If an eSCL device's URL is in the form unix://socket/eSCL/,
# traffic will be sent through socket_dir/socket instead of TCP.  If not
# specified, sockets will be searched for in /var/run.

[options]
#discovery = enable
#model = network
#protocol = auto
#ws-discovery = fast
#socket_dir = /var/run

# Configuration of debug facilities
#   trace = path        ; enables protocol trace and configures output
#                       ; directory. The directory will be created
#                       ; automatically. Path may start with tilde (~)
#                       ; character, which means user home directory
#
#   enable = true|false ; enable or disable console logging
[debug]
#trace = ~/airscan/trace
enable = true

# Blacklisting devices
#   model = pattern     ; Blacklist devices by model name
#   name  = pattern     ; Blacklist devices by network name
#   ip    = addr[/mask] ; Blacklist devices by IP addresses
#
# Notes
#   In model and network names glob-style wildcards can be used
#   (i.e., model = "Xerox*")
#
#   Network names come from DNS-SD, WS-Discovery doesn't provide this
#   information. For filtering by network name to work, Avahi must be
#   enabled and device must be discoverable via DNS-SD (not necessarily
#   as a scanner, it's enough if WSD scanner is discoverable as a printer
#   via DNS-SD).
#
#   If netmask is not set, address assumed to be device address,
#   not address of the entire subnet
#
#   Blacklisting only affects automatic discovery, and doesn't
#   affect manually configured devices
[blacklist]
ip    = XX.XX.XX.34
ip    = XX.XX.XX.58
ip    = XX.XX.XX.52
ip    = XX.XX.XX.95
model  = "HP*"          ; blacklist by network name
model  = "Hewlett*"          ; blacklist by network name
model  = "Canon MF420*"
model  = "CANON*"
name  = "*i-SENSYS*"
#ip    = 192.168.0.1    ; blacklist by address
#ip    = 192.168.0.0/24 ; blacklist the whole subnet
#model = "Xerox*"       ; blacklist by model name
« Последнее редактирование: 26.06.2023 06:52:56 от ruslandh »

Оффлайн Александр Ерещенко

  • Завсегдатай
  • *
  • Сообщений: 1 161
А в секции [options] явно выставить discovery = disable ?

Оффлайн vvsvv

  • Начинающий
  • *
  • Сообщений: 2
День добрый.
Не, не помогает.
Выкидываю из папки sane.d и dll.d  конфигурационные файлики не нужных устройств, чуток сократил список.

Другая беда, по сети сканнер находится, а подключенный по usb никак.
lsusb  такое показывает:  Bus 001 Device 009: ID 04a9:2881 Canon, Inc. MF450 Seriesуже  usb 0x04a9 0x2881 понатыкал во все возможные файлы. А толку мало.
sane-find-scanner  пишет :found possible USB scanner (vendor=0x04a9 [Canon], product=0x2881 [MF450 Series]) at libusb:001:009
а всё равно sane не находит его :(
« Последнее редактирование: 26.06.2023 06:54:36 от ruslandh »

Онлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 251
  • Учиться .... Телепатами не рождаются, ими ....
    • Email
Как вы определили, что не находит?
На каком основании ?
Вы можете приложить логи этого "ненахождения" ?