Bug 3126 - net rpc printer MIGRATE do not work as expected.
Summary: net rpc printer MIGRATE do not work as expected.
Status: RESOLVED LATER
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Printing (show other bugs)
Version: 3.0.20
Hardware: All Windows XP
: P3 normal
Target Milestone: none
Assignee: Guenther Deschner
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-30 14:39 UTC by Aarti Varshney
Modified: 2006-04-08 07:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aarti Varshney 2005-09-30 14:39:20 UTC
I am trying to test migrating printers from microsoft print server to a samba
share but encountering problems.
 
net rpc printer MIGRATE PRINTERS "printerName" -U Administrator%password -S
SourceIP -I TargetIP -p 50139

cannot open printer \\SourceIP\LocalOne on server \\SourceIP:
WERR_INVALID_PRINTER_NAME

The SourceIP is the ipaddress of a microsoft print server and the printerName is
the name of a printer that is shared as printerName
Comment 1 Gerald (Jerry) Carter (dead mail address) 2005-09-30 14:45:06 UTC
Guenther, this one should be yours I think.
Comment 2 Guenther Deschner 2005-10-04 06:10:22 UTC
Maybe you just got the syntax wrong.

-I is to define an ip-address (corresponding to the name given in -S), not to
define the ip-address of the destination server (try using --destination=1.2.3.4
for that).
Comment 3 Aarti Varshney 2005-10-04 07:53:58 UTC
(In reply to comment #2)
> Maybe you just got the syntax wrong.
> 
> -I is to define an ip-address (corresponding to the name given in -S), not to
> define the ip-address of the destination server (try using --destination=1.2.3.4
> for that).

I tried the following command but still doesnt seem to work

debugshell# net rpc printer MIGRATE PRINTERS "LocalOne" -U
Administrator%password -S source  --destination=dest         
migrating printer queue for:    [\\source\LocalOne] / [LocalOne]
cannot open printer \\dest\LocalOne on server \\dest: WERR_INVALID_PRINTER_NAME
cannot get printer-info: DOS code 0x0000001f
could not get printer, creating printer.
creating printer: \\source\LocalOne
could not create printer

source is a microsoft print server. dest is the samba server 
Comment 4 Aarti Varshney 2005-10-04 14:57:01 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Maybe you just got the syntax wrong.
> > 
> > -I is to define an ip-address (corresponding to the name given in -S), not to
> > define the ip-address of the destination server (try using --destination=1.2.3.4
> > for that).
> 
> I tried the following command but still doesnt seem to work
> 
> debugshell# net rpc printer MIGRATE PRINTERS "LocalOne" -U
> Administrator%password -S source  --destination=dest         
> migrating printer queue for:    [\\source\LocalOne] / [LocalOne]
> cannot open printer \\dest\LocalOne on server \\dest: WERR_INVALID_PRINTER_NAME
> cannot get printer-info: DOS code 0x0000001f
> could not get printer, creating printer.
> creating printer: \\source\LocalOne
> could not create printer
> 
> source is a microsoft print server. dest is the samba server 

OK i made some more progress here but not there yet
I added a addprinter command to the smb.conf and the value=smbaddprinter.pl
(found in samba-3.0.20\examples\scripts\printing\cups)

debugshell# net rpc printer MIGRATE ALL "test1" -U Administrator%passwd -S s1
--destination d1
migrating printer queue for:    [\\s1\test1] / [test1]
cannot open printer \\d1\test1 on server \\d1: WERR_INVALID_PRINTER_NAME
cannot get printer-info: WERR_GENERAL_FAILURE
could not get printer, creating printer.
creating printer: \\s1\test1
printer [\\s1\test1] successfully added.
migrating printer driver for:   [\\s1\test1] / [test1]

This seems like it worked but the URI of the printer doesnt get migrated
correctly. what should i do to fix this.

Comment 5 Gerald (Jerry) Carter (dead mail address) 2006-01-18 08:51:40 UTC
Guenther, what's the status here?  Can we close this?
Comment 6 Gerald (Jerry) Carter (dead mail address) 2006-04-08 07:54:57 UTC
Closing this bug and focusing on printmig.exe