Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HP Printers on AS/400 1

Status
Not open for further replies.

CFeyrer

MIS
Jul 10, 2003
54
US
I have several Laserjets of varying model numbers and I want to get them working on an AS/400. I have their information in TCP/IP configuration -- they are all using Jetdirect 170X's...and I am getting the following error when I attempt to assign a print job to them:
Code 2301 a device that is not attached to a controller description cannot be varied on.

Please let me know how to resolve this issue!
 
I don't think this is really the right forum for this, but the problem is this: You have configured the printers as an AS/400 controller, not as a TCP/IP printer. It's trying to vary on the device (which it does with such things as physical and network devices). There are two ways that you can do this.

1) Use an AS/400 compliant print device, Axis makes one that the AS/400 sees as a regular AS/400 device, and also works as a TCP/IP print server for windows applications (this box is like an external JetDirect box, but with AS/400 operability as well)

2) If you have Auto-config turned on, it should see the printer on it's own.

3) OK, here's the manual instructions (I just spoke to an AS/400 guru friend of mine)

do a CRTDEVPRT (Create Device Description - Printer)
Device description ..... (name of device i.e. PRT123)
Device class .... * LAN
Device type ..... (use the prompt)
Device Model .... (use the prompt F4 again)
LAN attachment .... *IP
Port Number .... 2501 (I think)
Online at IPL .... *YES
Font:
Identifier .... 11
Point Size .... *NONE
Form Feed .... *CUT
Spearator drawer ... *FILE
Separator Program ... *NONE
Library .... *LIBL
Printer error message ... *INQ

... now do a STRPRTWTR and press F4=Prompt ... type the name of the printer PRT123 for the parameter value and type the name of the output queue from which you want to print spooled output files. You may need to create the output queue before this, if you don't have one already set up.



Just my $.02

"In order to start solving a problem, one must first identify it's owner." --Me
--Greg
 
I have an as400 that I am trying to figure out how to hook up a printer to so that I do not keep getting the messages that say prt01 is not available. The system generates this message every 5-10 seconds and it kills the system eventually. I have a number of different HP laserjet printers that can be hooked up. I need to find out how to physically do this. The as400 is on a token ring network.

Thanks in advance.

as400hater
 
This should really be in an AS/400 group...

BUT, since I know a little (note: LITTLE) about the AS/400, I'll join that group as well.



Just my $.02

"In order to start solving a problem, one must first identify it's owner." --Me
--Greg
 
I had trouble finding a group specifically for AS/400's, except the RPG programming group. Does one exist?
 
Hmm... can't find a forum specific to AS/400 OS/400.... guess I'll have to start one! :)

By the time you read this, I'll have it created... jump on in.


Just my $.02

"In order to start solving a problem, one must first identify it's owner." --Me
--Greg
 
Whooops... I can't create a forum... I have to create a GROUP. Who do I talk to about getting a new forum created for the AS/400 running OS/400?



Just my $.02

"In order to start solving a problem, one must first identify it's owner." --Me
--Greg
 
Go to "contact us" and email the tektips forum manager
 
Did it. Hopefully we'll have an AS/400 forum soon.


Just my $.02

"In order to start solving a problem, one must first identify it's owner." --Me
--Greg
 
I've configured everything except do not know what to put in for my printer definition as far as "attached controller". It's asking for a Name and I'm not sure what to give it. Tech support has told me to put"whatever you have set up as the TCP/IP controller"....okay...ideas?

THanks.

Chris
 
We have 50+ HP printers hooked to our AS/400, this is how I do it. These are screenshots from the CHGDEVPRT command, the parameters will have to be changed a bit to fit the CRTDEVPRT command.

Sorry so big.

Code:
                    Change Device Desc (Printer) (CHGDEVPRT)                    
                                                                                
 Type choices, press Enter.                                                     
                                                                                
 Device description . . . . . . . > COLU35        Name                          
 Port number  . . . . . . . . . .   9100          0-65535, *SAME                
 Online at IPL  . . . . . . . . .   *YES          *SAME, *YES, *NO              
 Font:                                                                          
   Identifier . . . . . . . . . .   11            *SAME, 3, 5, 11, 12, 13, 18...
   Point size . . . . . . . . . .   *NONE         000.1-999.9, *SAME, *NONE     
 Form feed  . . . . . . . . . . .   *AUTOCUT      *SAME, *TYPE, *CONT...        
 Separator drawer . . . . . . . .   *FILE         1-255, *SAME, *FILE           
 Separator program  . . . . . . .   *NONE         Name, *SAME, *NONE            
   Library  . . . . . . . . . . .                 Name, *LIBL, *CURLIB          
 Printer error message  . . . . .   *INFO         *SAME, *INQ, *INFO            
 Message queue  . . . . . . . . .   *CTLD         Name, *SAME, *CTLD, *SYSOPR   
   Library  . . . . . . . . . . .                 Name, *LIBL, *CURLIB          
 Activation timer . . . . . . . .   1000          1-2550, *SAME, *NOMAX         
 Inactivity timer . . . . . . . .   *SEC30        1-30, *SAME, *ATTACH...       
 Line speed . . . . . . . . . . .   19200         *SAME, *TYPE, 150, 300...     
                                                                        More... 
 F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display    
 F24=More keys                                                                  
 Already at top of area.                                                        

------------------------------------------------------------
                    Change Device Desc (Printer) (CHGDEVPRT)                    
                                                                                
 Type choices, press Enter.                                                     
                                                                                
 Word length  . . . . . . . . . .   8             *SAME, *TYPE, 7, 8            
 Type of parity . . . . . . . . .   *NONE         *SAME, *TYPE, *EVEN, *ODD...  
 Stop bits  . . . . . . . . . . .   1             *SAME, *TYPE, 1, 2            
 Host print transform . . . . . .   *YES          *SAME, *NO, *YES              
 Manufacturer type and model  . .   *HP5SI                                      
 Paper source 1 . . . . . . . . .   *LETTER       *SAME, *MFRTYPMDL, *LETTER... 
 Paper source 2 . . . . . . . . .   *LETTER       *SAME, *MFRTYPMDL, *LETTER... 
 Envelope source  . . . . . . . .   *NUMBER10     *SAME, *MFRTYPMDL...          
 ASCII code page 899 support  . .   *NO           *SAME, *NO, *YES              
 Image configuration  . . . . . .   *NONE         *SAME, *NONE, *IMGA01...      
 Character identifier:                                                          
   Graphic character set  . . . .   *SYSVAL       1-32767, *SAME, *SYSVAL       
   Code page  . . . . . . . . . .                 1-32767                       
                                                                                
                                                                                
                                                                                
                                                                        More... 
 F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display    
 F24=More keys                                                                  

------------------------------------------------------------
                    Change Device Desc (Printer) (CHGDEVPRT)                    
                                                                                
 Type choices, press Enter.                                                     
                                                                                
 Remote location:                                                               
   Name or address  . . . . . . .   '10.2.3.35'                                 
                                                                                
                                                                                
                                                                                
 User-defined options . . . . . .   *SAME         Character value, *SAME, *NONE 
                + for more values                                               
 User-defined object:                                                           
   Object . . . . . . . . . . . .   *NONE         Name, *SAME, *NONE            
     Library  . . . . . . . . . .                 Name, *LIBL, *CURLIB          
   Object type  . . . . . . . . .                 *DTAARA, *DTAQ, *FILE...      
 Data transform program . . . . .   *NONE         Name, *SAME, *NONE            
   Library  . . . . . . . . . . .                 Name, *LIBL, *CURLIB          
 System driver program  . . . . .   *HPPJLDRV                                   
                                                                                
                                                                                
                                                                        More... 
 F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display    
 F24=More keys      

------------------------------------------------------------                                                           
                    Change Device Desc (Printer) (CHGDEVPRT)                    
                                                                                
 Type choices, press Enter.                                                     
                                                                                
 Publishing information:                                                        
   Support duplex . . . . . . . .   *UNKNOWN      *SAME, *SIMPLEX, *DUPLEX...   
   Support color  . . . . . . . .   *UNKNOWN      *SAME, *NOCOLOR, *COLOR...    
   Pages per minute black . . . .   *UNKNOWN      1-32767, *SAME, *UNKNOWN      
   Pages per minute color . . . .   *UNKNOWN      1-32767, *SAME, *UNKNOWN      
   Location . . . . . . . . . . .   *BLANK                                      
 Text 'description' . . . . . . .   'Printer HP5SI'       
                                                                                
                                                                                
                            Additional Parameters                               
                                                                                
 Workstation customizing object     HP4           Name, *SAME, *NONE            
   Library  . . . . . . . . . . .     QGPL        Name, *LIBL, *CURLIB          
                                                                                
                                                                                
                                                                                
                                                                         Bottom 
 F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display    
 F24=More keys
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top