Discussion:
[Samba] samba print server and driver snmp request
cyril
2014-07-15 13:55:50 UTC
Permalink
Hi,

I try a samba print server like it's explain on the wiki

https://wiki.samba.org/index.php/Samba_as_a_print_server

It's work fine for many printers but some windows drivers try to make
SNMP request towards the printer.

Is there a way to route the SNMP request between the windows driver and
the printer through Samba and Cups ?

Thanks
Cyril
cyril
2014-07-20 16:59:10 UTC
Permalink
Hi,

A traffic analysis show that the windows client driver try to send snmp
request to the samba server ip address but these snmp packets are not
routed to the printers.

A windows print server use a standard tcp ip port with an otpion to use
snmp.
Is there a way to enable snmp on the samba printer port and make the
windows printer driver can communicate with the printers ?

Thanks
Cyril
Post by cyril
Hi,
I try a samba print server like it's explain on the wiki
https://wiki.samba.org/index.php/Samba_as_a_print_server
It's work fine for many printers but some windows drivers try to make
SNMP request towards the printer.
Is there a way to route the SNMP request between the windows driver
and the printer through Samba and Cups ?
Thanks
Cyril
Achim Gottinger
2014-07-20 20:32:52 UTC
Permalink
Post by cyril
Hi,
A traffic analysis show that the windows client driver try to send
snmp request to the samba server ip address but these snmp packets are
not routed to the printers.
A windows print server use a standard tcp ip port with an otpion to
use snmp.
Is there a way to enable snmp on the samba printer port and make the
windows printer driver can communicate with the printers ?
Thanks
Cyril
Hi Cyril,

I'd like to add a few notes. Kyocera Universal Drivers behave similar to
the way you describe it, if i use them on an windows pc, the driver is
able to read the required settings from the printer. If i use em on
samba i have to enter the printers ip address manuall once.
HP universal drivers also seem to require snmp and newer drivers need to
be modified with hp's admin toolkit to get them working on samba.
To me it seems more like the drivers try to identify the printer
address/name to make snmp queries and this does not work with samba atm.

achim~
Tonči Stipičević
2014-07-20 21:36:48 UTC
Permalink
Hello to all

I've been testing Samba4 for a while and noticed non critical issues so far.
My plan would be to use one samba4 DC as additional DC in win2008 network

So I do have 4 win DCs in 4 separated sites (one domain and 4 sites)
and I want to use this Samba4 as DC in 5th separate site .
It will be acting only as AD DC , Fileserver and print server.


Since I noticed (from the forum) that Filesharing is kind a more stable
in Samba3 than 4 , I decided to use Freenas as Fileserver (joined to
the domain, and using samba4 as domain dns )
and I must say the cooperation between S4 and FreeNas (in my test-lab)
(just joined to domain without using freenas-samba4) is pretty stable (I
virtualized Samba4-Centos and Freenas9 on the same "metal")

There is only one issue I noticed regarding replication (in my lab
also): If I turn off replication beetween DC in AD sites-and-services
console , the Samba4DC and WINDC are still replicating . How come ?

The main question would be :
If I join Samba4 DC in this productional Win2008 Domain (4 sites) , is
there any chance that this Samba4 DC endangers the WIN domain ?
If Samba4 site,for some reason, does not work , it is acceptable
because this is not critical site and I always have time to fix it somehow.
But if potential problem in Samba4DC causes problem in WIN-part of the
domain (fsmo goes down because of some false replication or something
like that)
than it would mean high risk for me

So does joining Samba4DC in windomain represents any kind of danger or not ?

I really appreciate, and congratulate on, Samba4 work and hopefully
replace very big part of windows portion of customers intranet

Thank you very much in advance

and

/
/
/srda?an pozdrav / best regards/

Ton?i Stipi?evi?
/direktor / manager/**
**



d.o.o.
ltd.

*podr?ka / upravljanje
**IT*/ sustavima za male i srednje tvrtke/

/Small & Medium Business
/*IT*//*support / management*

Badali?eva 27 / 10000 Zagreb / Hrvatska ? Croatia
url: www.suma-informatika.hr
mob: +385 91 1234003
fax: +385 1 5560007
Post by Achim Gottinger
Post by cyril
Hi,
A traffic analysis show that the windows client driver try to send
snmp request to the samba server ip address but these snmp packets
are not routed to the printers.
A windows print server use a standard tcp ip port with an otpion to
use snmp.
Is there a way to enable snmp on the samba printer port and make the
windows printer driver can communicate with the printers ?
Thanks
Cyril
Hi Cyril,
I'd like to add a few notes. Kyocera Universal Drivers behave similar
to the way you describe it, if i use them on an windows pc, the driver
is able to read the required settings from the printer. If i use em on
samba i have to enter the printers ip address manuall once.
HP universal drivers also seem to require snmp and newer drivers need
to be modified with hp's admin toolkit to get them working on samba.
To me it seems more like the drivers try to identify the printer
address/name to make snmp queries and this does not work with samba atm.
achim~
Tonči Stipičević
2014-07-21 20:34:27 UTC
Permalink
//
Post by Tonči Stipičević
Hello to all
I've been testing Samba4 for a while and noticed non critical issues so far.
My plan would be to use one samba4 DC as additional DC in win2008 network
So I do have 4 win DCs in 4 separated sites (one domain and 4 sites)
and I want to use this Samba4 as DC in 5th separate site .
It will be acting only as AD DC , Fileserver and print server.
Since I noticed (from the forum) that Filesharing is kind a more
stable in Samba3 than 4 , I decided to use Freenas as Fileserver
(joined to the domain, and using samba4 as domain dns )
and I must say the cooperation between S4 and FreeNas (in my
test-lab) (just joined to domain without using freenas-samba4) is
pretty stable (I virtualized Samba4-Centos and Freenas9 on the same
"metal")
There is only one issue I noticed regarding replication (in my lab
also): If I turn off replication beetween DC in AD sites-and-services
console , the Samba4DC and WINDC are still replicating . How come ?
If I join Samba4 DC in this productional Win2008 Domain (4 sites) , is
there any chance that this Samba4 DC endangers the WIN domain ?
If Samba4 site,for some reason, does not work , it is acceptable
because this is not critical site and I always have time to fix it somehow.
But if potential problem in Samba4DC causes problem in WIN-part of the
domain (fsmo goes down because of some false replication or something
like that)
than it would mean high risk for me
So does joining Samba4DC in windomain represents any kind of danger or not ?
I really appreciate, and congratulate on, Samba4 work and hopefully
replace very big part of windows portion of customers intranet
Thank you very much in advance
and
/
/
/srda?an pozdrav / best regards/
Ton?i Stipi?evi?
/direktor / manager/**
**
d.o.o.
ltd.
*podr?ka / upravljanje
**IT*/ sustavima za male i srednje tvrtke/
/Small & Medium Business
/*IT*//*support / management*
Badali?eva 27 / 10000 Zagreb / Hrvatska ? Croatia
url: www.suma-informatika.hr
mob: +385 91 1234003
fax: +385 1 5560007
cyril
2014-07-31 19:16:43 UTC
Permalink
Hi,

this method has answered my question

In the smb.conf global section use

enumports command = /var/scripts/listports.sh

create the script /var/scripts/listports.sh and make it executable :

#!/bin/bash
echo "printer1"
echo "printer2"
echo "printer3"

Now, It's possible to use the printer hostname or ip address

Now, samba don't just show the only one Samba local port for all the
printer and i can associate one printer to one port.

Now the SNMP query of the windows driver now can have an anwser from
the printer.

:)

Cyril
Post by cyril
Hi,
A traffic analysis show that the windows client driver try to send
snmp request to the samba server ip address but these snmp packets
are
not routed to the printers.
A windows print server use a standard tcp ip port with an otpion to
use snmp.
Is there a way to enable snmp on the samba printer port and make the
windows printer driver can communicate with the printers ?
Thanks
Cyril
Post by cyril
Hi,
I try a samba print server like it's explain on the wiki
https://wiki.samba.org/index.php/Samba_as_a_print_server
It's work fine for many printers but some windows drivers try to make
SNMP request towards the printer.
Is there a way to route the SNMP request between the windows driver
and the printer through Samba and Cups ?
Thanks
Cyril
Loading...