Blogs Classifieds Downloads FlashChat Gallery Googlemap Invite Friends Links Projects Reviews Wiki
 


Welcome to the pSeries Tech Forums, our free peer-based support site for administrators, engineers and architects working with IBM pSeries servers and software.

You are currently viewing our site as a guest which gives you limited access to view most discussions, articles, tutorials and access our other free features. By joining our community you will be able to collaborate with administrators, engineers and architects charged with designing, delivering or maintaining IBM pSeries server environments.

Founded by a recognized IBM pSeries consultant and IBM Redbook author, pSeries Tech Forums was developed with the single mission of bringing IBM pSeries professionals together into a single self-help community.

Registration is fast, simple and absolutely free to all IT professionals with responsibility for or interest in IBM pSeries servers. We invite you to join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Our Sponsors
Want to advertise?  


Reply
 
LinkBack Thread Tools
  #1  
Old December 4th, 2006
alansc9's Avatar
alansc9 Offline
Junior Member
 
Join Date: November 2006
Posts: 1
Printing to attached Windows printer

All,

We need to be able to print from an AIX print queue to local printers attached to Windows PC's (W2K and XP Professional).

If I define an AIX print queue AND change the local printer name (on the PC)to the same network name as the PC then I can print successfully. Without changing the local printer name to print job does not print.

Is there a way in SMIT or command line to define the local printer without having to change the name?

Thanks,

Alan Nichols
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old December 4th, 2006
dmoore's Avatar
dmoore Offline
Junior Member
 
Join Date: December 2006
Location: Albuquerque, NM
Posts: 2
Re: Printing to attached Windows printer

Alan,
I can think of a couple of ways that you might approach this.

Do you know what the printer name is on the windows PC?
Is it shared?
Are you using DHCP for the PCs in your network?
Are the PCs registered in DNS?

These are a few of the questions you want to know answers to. For the moment, let us assume that the printers are configured to be shared, that you know the shared name of the printer, and that the PCs are in DNS. Let's also keep it straightforward and assume lpr to the printer.

Smit | printers (fastpath)
Print Spooling
Add a print queue
remote (for a remote host)
Standard Processing
- Name of Queue to add (Any name you want, I suggest using the printer name with a designator that you are using the local printer such as PCNAME_LOCAL)
- Hostname of remote server (FQDN if mixing domains - If PC is in DNS)
- Name of Queue on remote server (Add in the printer share name)
- Type of print spooler on remote server (For a windows system, I have better success with BSD.)
- Backend Timeout (I would bump this to 3+ minutes so you have fewer downed queues waiting for the PC to respond if you are using slow WAN connections.)

When spooling several jobs to windows servers, you may need to drop some windows registry entries in place as well.

I suspect your issues with needing to change the printer name stem from not having the printer set to be shared. Or, the shared name is a long name with spaces and is not parsed correctly. To be honest, I have never tried that. If I am sending output to a windows printer, I always make sure the printer names don't have any spaces.

Is that a sufficient answer or did I misunderstand the question?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old December 27th, 2006
b00tsie's Avatar
b00tsie Offline
Junior Member
 
Join Date: October 2006
Posts: 26
Re: Printing to attached Windows printer

And a service in Windows should be running, something called lpr printspooler or printservice.

I guess it is running by default...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old January 24th, 2007
yogeeraj's Avatar
yogeeraj Offline
Junior Member
 
Join Date: August 2006
Location: Mauritius
Posts: 17
Re: Printing to attached Windows printer

the service is called "Print services for Unix"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old March 13th, 2007
buaa_kyle's Avatar
buaa_kyle Offline
Junior Member
 
Join Date: March 2007
Posts: 14
Re: Printing to attached Windows printer

Hi, I too am trying to set printing from AIX5.3 box to windows 2000 box, after I searched the comp.unix.aix I found lots of similar cases and useful directions but still there's no luck for me. Here's the descriptions:

I have one hp LaserJet 1000 printer which is attached to a windows 2000 server, everything must be done had been done on the windows box side:

1) lpd service is running on;
2) the printer is shared, and the queue name is 'hpLaserJ'

Also neccessary things had been checked out on the AIX box side:

1) I'v added the queue, with right configurations(see /etc/qconfig below)
2) the network connectivity is confirmed, with the right host name appended in /etc/hosts
3) the lpd service on win2k box is checked with the command ' telnet win2kserver 515' and I get what's supposed to get: ' ..connected....'

************** /etc/qconfig ********************
/etc/qconfig:
rmtq:
device = @win2kserver
up = TRUE
host = win2kserver
s_statfilter = /usr/lib/lpd/bsdshort
l_statfilter = /usr/lib/lpd/bsdlong
rq = hpLaserJ
@win2kserver:
backend = /usr/lib/lpd/rembak -D /tmp/rmtq.log
************** /etc/qconfig ********************

when I tried to print from AIX, it seems that the file had been sent to windows succesfully, but there's nothing happend on the printer side! I tried to monitor the queue on windows 2000, found that the queue did receive the print job but take it as a 'local downlevel document' and processed it silently. Finally the file to print went nowhere and nothing is printed, and there's no job record in the queue monitor window too.

Then I tried to change the queue configuration on the windows box, I opened the 'properties-->advanced--->printing processor' panel, found that the defaut set is 'IMFPrinter' and 'IMF'. After I changed it to 'WinPrint' and 'Raw', I tested again from AIX box with the command '#lp -drmtq /etc/hosts', then the job was recorded in the queue monitor window on win2k box, showing how the job was processed, but still nothing get printed on the printer side.

After an exhausted test, an conclusion could be formulated:

1. if the queue configuration is 'IMFPrinter', then the windows queue takes any job from AIX box as the 'local downlevel document' and keeps no record in the queue monitor window, nothing gets printed

2. if the queue configuration is 'WinPrinter', then the windows queue keeps a process record of any job from AIX box, still nothing gets printed

could anyone kindly give me any clue? anything would be appreciated
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old March 14th, 2007
rzs0502's Avatar
rzs0502 Offline
System Engineer/Developer
 
Join Date: July 2006
Location: Johannesburg, South Africa
Posts: 26
Re: Printing to attached Windows printer

I've done this a few months ago. here's a doc I wrote explaining the process. Hope it works for you...

Steps to install.

On Windows :
1. Install Unix Print Services on Windows Server (eg. cibjnbprn101).
2. On the Windows shared printer (eg. \\cibjnbprn101\cibprnfaso40) create an LPD device (eg. faso40)
3. Allow 'Everyone' print access on the printer permissions

On AIX:

1. smitty mkpq
2. Select [ remote Printer Attached to Remote Host ] from the attachment type
3. Select [ Local filtering before sending to print server ] from the printing type
4. Select [ Other ] from the printer type
5. Select [ generic Generic Printer ]
6. Enter AIX local queue name in the [ ASCII ] field ( eg. faso40 )
7. Enter the Windows hostname in the HOSTNAME field
8. Enter the Windows queue name ( here is the trick with AIX - do not use the LPD device name. Enter the Windows share name eg. cibprnfaso40 ) * Using the LPD device name will crash the queue when you attempt to print.
9. Choose BSD as the 'Type of print spooler on remote server'
10. Enter 120 for 'Backend TIME OUT period (minutes)' - The default of 90 seconds may cause queue crashes as well.

'enq -e' should produce an output similar to the following

/> enq -e
Queue Dev Status Job Files User PP % Blks Cp Rnk
------- ----- --------- --- ------------------ ---------- ---- -- ----- --- ---
cibprnf @cibj READY cibprnfaso40:
cibprnfaso40: Windows LPD Server
cibprnfaso40: Printer \\x.x.x.x\cibprnfaso40
cibprnfaso40:
cibprnfaso40: Owner Status Jobname Job-Id Size Pages Priority
cibprnfaso40: ----------------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old March 15th, 2007
buaa_kyle's Avatar
buaa_kyle Offline
Junior Member
 
Join Date: March 2007
Posts: 14
Re: Printing to attached Windows printer

hi rzs0502, thanks for your kindly help, I think the difference between your steps and mine is that you chose to filter the file on the AIX box before senting it to win2k box and I keep it as standard process, and I follow your steps, but still nothing works...anyway thanks again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old March 16th, 2007
rzs0502's Avatar
rzs0502 Offline
System Engineer/Developer
 
Join Date: July 2006
Location: Johannesburg, South Africa
Posts: 26
Re: Printing to attached Windows printer

There were 3 issues when I tried this.
The 1st time the NT admins did not allow group Everyone to print to the printer. They had Domain Users instead.
Another was I did not initially use BSD as the print spooler.
And on AIX I was using the Windows LPD sharename instead of the normal windows sharename.
If you're using Linux, try to set it up using CUPS. At least you'll be able to determine if it's Windows that's blocking you...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old March 28th, 2007
buaa_kyle's Avatar
buaa_kyle Offline
Junior Member
 
Join Date: March 2007
Posts: 14
Re: Printing to attached Windows printer

Quote:
Originally Posted by rzs0502
There were 3 issues when I tried this.
The 1st time the NT admins did not allow group Everyone to print to the printer. They had Domain Users instead.
Another was I did not initially use BSD as the print spooler.
And on AIX I was using the Windows LPD sharename instead of the normal windows sharename.
If you're using Linux, try to set it up using CUPS. At least you'll be able to determine if it's Windows that's blocking you...
hi rzs050, I want to thank you for your nice help, after long exhausted boring test, it turns out that the old printer(HP Laster Jet 1000) is all the evil. A week ago the HP printer's down forever(finally), and we replace it with a whole new one(also HP...), and with no extra intervention the tricky printing from AIX to win2k thing is done!... Could I be any more lucky?...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old March 28th, 2007
rzs0502's Avatar
rzs0502 Offline
System Engineer/Developer
 
Join Date: July 2006
Location: Johannesburg, South Africa
Posts: 26
Re: Printing to attached Windows printer

Good stuff!
Luckily they didn't give you an Epson dot matrix :-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

These are the 100 most searched terms
Search Cloud
0042-001 0042-001 nim 0513-001 the system resource controller daemon is not active 0513-001 the system resource controller daemon is not active. 0514-061 0514-061 cannot find a child device 0514-061 cannot find a child device. 0516-787 0516-787 extendlv 0516-787 extendlv: maximum allocation for logical volume 110000ac aa00e1f3 aio aix aix aio aix freeware aixif_arp_dup_addr b150f22a b181fb53 ba010004 c1001020 d133c002 dacnone dcb47997 dlpar fcp_array_err6 fget_config gnu tar aix gsclvmd gtar aix hi yall hmc root password hmc vmware hscl05db ibm p6 ibm p6 520 libpopt aix libpopt.a libpopt.a(libpopt.so.0) is needed by rsync-2.6.2-1 migratelv mksysb navisphere agent nim server pseries pseriestech rsync aix sc_disk_err4 scan_error_chrp vio server websm xhost file ... powered by Simple Search Cloud


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Windows 2003 Active Directory integration FASherman Tutorials 25 April 28th, 2008 07:14
PRINTING TO Cannon Imagerunners from Aix 5.3 jc8819 AIX for POWER Systems 0 April 19th, 2007 10:52
AIX to "Windows Printer Queue" Printing rainmystic AIX for POWER Systems 5 April 5th, 2007 07:14
Printer Filtering Lano AIX for POWER Systems 2 March 19th, 2007 10:12
AIX and Windows AD alexisl AIX for POWER Systems 8 February 19th, 2007 09:10



Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Powered by vbWiki Pro 1.3 RC5. Copyright ©2006-2007, NuHit, LLC

vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48