[Samba] rpcclient 'adddriver issue HP Deskjet 1220C - Samba

This is a discussion on [Samba] rpcclient 'adddriver issue HP Deskjet 1220C - Samba ; Hello all, I am trying to add a printer driver for a HP Deskjet 1220C with following command to samba: rpcclient -c 'adddriver "Windows NT x86" \ "HPDJ1220C:HPW8KMD.DLL:HPW8KMD.DLL:HPW8KMD.DLL:HPW8 DRV.HLP:NULL:RAW: \ HPW8c32.dll,HPW8mon.dll,HPW8r24.dll,HPW8res.dll,HP W8win.dll, \ HPW8ime.dll,HPW8ddi.dll,HPW8img.dll,HPW8sum.dll,HP W8gui.dll, \ HPW8wps.dll,HPW8svb.dll" ' novalx01 -d3 ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: [Samba] rpcclient 'adddriver issue HP Deskjet 1220C

  1. [Samba] rpcclient 'adddriver issue HP Deskjet 1220C

    Hello all,

    I am trying to add a printer driver for a HP Deskjet 1220C
    with following command to samba:

    rpcclient -c 'adddriver "Windows NT x86" \
    "HPDJ1220C:HPW8KMD.DLL:HPW8KMD.DLL:HPW8KMD.DLL:HPW8 DRV.HLP:NULL:RAW: \
    HPW8c32.dll,HPW8mon.dll,HPW8r24.dll,HPW8res.dll,HP W8win.dll, \
    HPW8ime.dll,HPW8ddi.dll,HPW8img.dll,HPW8sum.dll,HP W8gui.dll, \
    HPW8wps.dll,HPW8svb.dll" ' novalx01 -d3


    when I do this I get following error message:

    lp_load: refreshing parameters
    Initialising global parameters
    params.cm_process() - Processing configuration file "/etc/samba/smb.conf"
    Processing section "[global]"
    Password:
    Connecting to host=novalx01
    Connecting to 10.2.1.5 at port 445
    error connecting to 10.2.1.5:445 (Verbindungsaufbau abgelehnt)
    Connecting to 10.2.1.5 at port 139
    Doing spnego session setup (blob length=121)
    got OID=1 2 840 113554 1 2 2
    got OID=1 2 840 48018 1 2 2
    got OID=1 3 6 1 4 1 311 2 2 10
    got principal=cifs/novalx01.novanetwork.loc@NOVANETWORK.LOC
    Got challenge flags:
    Got NTLMSSP neg_flags=0x60898215
    NTLMSSP: Set final flags:
    Got NTLMSSP neg_flags=0x60088215
    NTLMSSP Sign/Seal - Initialising with flags:
    Got NTLMSSP neg_flags=0x60088215
    rpc_pipe_bind: Remote machine novalx01 pipe \lsarpc fnum 0x72bd bind
    request returned ok.
    lsa_io_sec_qos: length c does not match size 8
    rpc_pipe_bind: Remote machine novalx01 pipe \spoolss fnum 0x72be bind
    request returned ok.
    result was WERR_BADFILE


    I have copied the driver files to /var/lib/printers prior to executing
    the adddriver command !


    I figured out the needed drivers by doing:

    rpcclient -c 'getdriver "HPDJ1220C" 3' novaws100

    this gave following result:

    [Windows NT x86]
    Printer Driver Info 3:
    Version: [3]
    Driver Name: [HP DeskJet 1220C Printer]
    Architecture: [Windows NT x86]
    Driver Path: [\\NOVAWS10\print$\W32X86\3\HPW8KMD.DLL]
    Datafile: [\\NOVAWS10\print$\W32X86\3\HPW8KMD.DLL]
    Configfile: [\\NOVAWS10\print$\W32X86\3\HPW8KMD.DLL]
    Helpfile: [\\NOVAWS10\print$\W32X86\3\HPW8DRV.HLP]

    Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8c32.dll]
    Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8mon.dll]
    Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8r24.dll]
    Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8res.dll]
    Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8win.dll]
    Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8ime.dll]
    Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8ddi.dll]
    Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8img.dll]
    Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8sum.dll]
    Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8gui.dll]
    Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8wps.dll]
    Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8svb.dll]

    Monitorname: []
    Defaultdatatype: []


    Any ideas ?

    Thank you for your help

    regards

    Andreas

    --
    To unsubscribe from this list go to the following URL and read the
    instructions: https://lists.samba.org/mailman/listinfo/samba

  2. Re: [Samba] rpcclient 'adddriver issue HP Deskjet 1220C

    On Wednesday 09 July 2008 05:40:19 am Andreas Oster wrote:
    > I have copied the driver files to /var/lib/printers prior to executing
    > the adddriver command !


    The drivers need to be copied to the directory returned by the "getdriverdir"
    rpc command. On my system the output looks like:

    rpcclient $> getdriverdir
    rpc_pipe_bind: Remote machine localhost pipe \spoolss fnum 0x772d bind request
    returned ok.
    Directory Name:[\\LOCALHOST\print$\W32X86]

    Where the network share maps to /var/lib/printers. My interpretation is that
    you need to create two new directories on your system.

    i. /var/lib/printers/W32X86
    ii. /var/lib/printers/W32X86/3

    And the directories need to be writeable over the print$ share by the user you
    run rpcclient as.

    If you don't mind changing your arrangement so that the print jobs are
    rendered on the Linux host and a standard PostScript driver is distributed to
    the clients, you might have a look at the following article:

    http://www.enterprisenetworkingplane...le.php/3621876

    Regards,

    Mark Gannon

    --
    Character is doing the right thing when nobody's looking.
    There are too many people who think that the only thing
    that's right is to get by, and the only thing that's wrong
    is to get caught.

    J.C. Watts

    --
    To unsubscribe from this list go to the following URL and read the
    instructions: https://lists.samba.org/mailman/listinfo/samba
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.9 (GNU/Linux)

    iEYEABECAAYFAkh1ErYACgkQcDtGkR4u3fZucACg3c3C8irw8I PXECanmfEcA9La
    B6kAoLsNrKDBko6Z+4v1ujuLvx3JW+hR
    =iCmu
    -----END PGP SIGNATURE-----


  3. [Samba] Re: rpcclient 'adddriver issue HP Deskjet 1220C

    Hello Mark,

    thank you for the directory hint. I had actually placed the files into
    the wrong directory, so the 'WERR_BADFILE' was actually a 'file not
    found' error :-(

    Thank you for your kind help

    regards

    Andreas

    Mark Gannon schrieb:
    > On Wednesday 09 July 2008 05:40:19 am Andreas Oster wrote:
    >> I have copied the driver files to /var/lib/printers prior to executing
    >> the adddriver command !

    >
    > The drivers need to be copied to the directory returned by the "getdriverdir"
    > rpc command. On my system the output looks like:
    >
    > rpcclient $> getdriverdir
    > rpc_pipe_bind: Remote machine localhost pipe \spoolss fnum 0x772d bind request
    > returned ok.
    > Directory Name:[\\LOCALHOST\print$\W32X86]
    >
    > Where the network share maps to /var/lib/printers. My interpretation is that
    > you need to create two new directories on your system.
    >
    > i. /var/lib/printers/W32X86
    > ii. /var/lib/printers/W32X86/3
    >
    > And the directories need to be writeable over the print$ share by the user you
    > run rpcclient as.
    >
    > If you don't mind changing your arrangement so that the print jobs are
    > rendered on the Linux host and a standard PostScript driver is distributed to
    > the clients, you might have a look at the following article:
    >
    > http://www.enterprisenetworkingplane...le.php/3621876
    >
    > Regards,
    >
    > Mark Gannon
    >
    >


    --
    To unsubscribe from this list go to the following URL and read the
    instructions: https://lists.samba.org/mailman/listinfo/samba

+ Reply to Thread