MAKING QUEUES, VIRTUAL PRINTER DEFS AND TTY'S

ITEM: RTA000053753



QUESTION:                                                                       
Have a customer w/3 128-port adapters running w/3-wire cable and they           
have had LOTS of problems over the course of this past year.  Now this          
customer is moving to a new warehouse where supposedly we will be able          
to go w/8-wire cabling.  My first question is what should I be looking          
for in terms of changing the configurations of their printers and ttys          
in order to function now in an 8-wire environment.  I seem to remember          
setting altpin on the ports previously to get them working as they are          
today, but I would like to get as full an explanation of the differences        
as possible, with an exact understanding of how the settings should be          
in either case.  Also, any commands that could be easily executed from          
the command line or rolled into a ksh script would be greatly                   
appreciated as we are talking about 300+ devices.  TTY's and Printers           
please.                                                                         
                                                                               
Secondly, as part of rearranging tty and printer ports, I would like            
to get the most up-to-date info on adding these from the command line,          
again to most likely be incorporated into some shell scripts I'll write.        
I had run this same question by the folks in Lvl-2 a year ago and they          
actually faxed me a document/item called "HOWTO MAKE A VIRTUAL PRINTER          
/ QUEUE FROM THE COMMAND LINE.  Again, whatever you can do to help me           
come up w/a command line version for adding these will be greatly               
appreciated because we can't afford the time... or the probability of           
error that would be associated with doing this one-by-one, from within          
smit.                                                                           
Finally, are there any really outstanding ptf rollups out there for             
the printer/tty subsystem.  The customer is at 3.2.5 and as I said              
earlier, has continued to have some problems with these concentrators.          
For example, they continue to have ports get locked from time to time,          
where even a reboot will not clear the problem.  They simply label             
these ports appropriately and just move their printer/store tty to              
another concentrator... or to another port on the same concentrator.            
Have we seen this anywhere else??  Has this been documented/fixed??             
                                                                                
Any input regarding 128-ports would be appreciated in addition to               
complete answers for the above.  This work is scheduled to begin                
next week.  Thanks in advance for your assistance.                              
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
A:  When moving to 8-wire cabling, you should change the ports to ALTPIN        
    enabled.  Using 3-wire cables, you should not have ALTPIN set (it           
    doesn't really matter, but it does not need to be set).                     
                                                                                
    After reading your question, I am unsure if you are removing all of         
    the devices or just wanting to change them.  If you are making             
    tty's and printers, I will supply you with the 'mkdev' commands and         
    all of the parameters you will need.  It should be fairly easy to           
    do this via shell script.                                                   
                                                                                
    TTY'S AND PRINTER'S                                                         
    -------------------                                                         
                                                                                
    To make a serial RS-232 tty, you can use the command:                       
        mkdev -c tty -t 'tty' -s 'rs232' -p  -w                  
                -a term= -a login=                     
                                                                                
    An example would be:                                                        
        mkdev -c tty  -t 'tty' -s 'rs232' -p 'sa2' -w '4'                       
                -a term='ibm3151' -a login='enable'                             
                                                                               
    To make a serial RS-232 printer, you can use the command:                   
        mkdev -c printer -t  -s 'rs232' -p  -w             
                                                                                
    An example would be:                                                        
        mkdev -c printer  -t '2380' -s 'rs232' -p 'sa2' -w '5'                  
                                                                                
    For the ports and adapters, etc... you can create variables in              
    your script and have a file with the data.  You should be able              
    to redirect the input file to the script and have it create all             
    of the devices necessary.                                                   
                                                                                
    An example of a tty script would be (but in a loop until end of             
    file):                                                                      
                                                                                
    mkdev -c tty -t 'tty' -s 'rs232' -p $1 -w $2 -a term=$3 -a login=$4        
                                                                                
    You could have your input file as:                                          
        sa2 3 ibm3151 enable                                                    
        sa3 5 wyse50 disable                                                    
        ....and so on....                                                       
                                                                                
    QUEUE'S                                                                     
    -------                                                                     
                                                                                
    In order to make a virtual printer (see below), you will have to            
    have a queue associated with it.  The commands I will provide you           
    will make a queue device, too.  This is very necessary.                     
                                                                                
    The command for making a queue is more involved.  The form for              
    making a queue is:                                                         
                                                                                
        mkque -q  -a"up =" && mkqueuedev                     
                -q  -d  -a"file = "            
                -a"backend = "                                         
                                                                                
    And example of this is:  Queue = test   device = /dev/lp0                   
                             Queue device = lp0                                 
        mkque -q'test' -a"up = "'TRUE' && mkquedev -q'test' -d'lp0'             
                 -a"file = "'/dev/lp0' -a"backend = "'/usr/lpd/piobe'           
    NOTE:  You will need /usr/lpd/piobe to be your backend if you are           
           using virtual printers.                                              
                                                                                
    VIRTUAL PRINTERS                                                            
    ----------------                                                            
                                                                               
    The command for making virtual printers is:                                 
        mkvirprt -d  -n  -q                   
                -s  -t  -T                            
        NOTE:  -T is if this is attached to an ASCII terminal.                  
                                                                                
    An example of this would be:                                                
        mkvirprt -d mypro -n lp0 -q proq -s asc -t 4201-3                       
                                                                                
    SUMMARY                                                                     
    -------                                                                     
                                                                                
    You can write scripts to automate all of this.  I obtained all of           
    this information via 'man' pages and SMIT.  You can do the same             
    if you run into problems.  You can see the exact syntax being used          
    if you go into SMIT and start to create a device or queue.  Instead        
    of pressing ENTER to make the object, you can press F6 and get              
    the command that SMIT runs.  Man pages also help a lot.  You can            
    use the following man pages to help you with all of the above:              
                                                                                
        man mkvirprt                                                            
        man mkque                                                               
        man mkquedev                                                            
        man mkdev                                                               
                                                                                
    Thank you.                                                                  
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
                                                                                
                                                                                
This item was created from library item Q677489      FFRGR                     
                                                                                
Additional search words:                                                        
AUTO AUTOMATIC CMD COMMAND DEC94 DEFS FFRGR GENERAL GENERALIZED IX              
LINE MAKING OP OZIBM OZNEW PORT PRINT PRINTER PROBLEMS QUE QUESTION             
QUEUES RISCPRT RISCSYSTEM SOFTWARE SYS TELETYPE TTY VIRTUAL 128                 
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                               


WWQA: ITEM: RTA000053753 ITEM: RTA000053753
Dated: 10/1996 Category: RISCPRT
This HTML file was generated 99/06/24~12:43:21
Comments or suggestions? Contact us