Pages

Friday, August 30, 2013

How to limit user profile to access command line?

This is a very common interview question, if you have already read the post http://isliverlake.blogspot.com/2013/06/lets-get-started-with-user-profile-in.html
you know the answer. LMTCPB(Limit Capability) is the parameter that is responsible to provide access and restrict access to command line. 

Limit Capability :- LMTCPB parameter tells the OS400 two things. First, it tells the OS400, if the user can make changes to ITLPGM, ITLMNU and current library values. Secondly, it says the OS400 if the user has access to command line.
When it is set to *NO, the user can make changes to ITLPGM, ITLMNU , current library and ATTN key values and also it can use the command line to run AS400 commands.
When it is set to *PARTIAL, the USER cannot make any changes to ITLPGM, ITLMNU, current library and ATTN key value but it has access to command line and can run AS400 commands.
When it is set to *YES, the user has neither access to make any changes to ITLPGM, ITLMNU and current library nor it can access command line.

These three parameters ITLPGM, ITLMNU and LMTCPB have ability to restrict users. For example, for the server users who do not require to access the green screen 5250 emulator, can have ITLPGM as *NONE, ITLMNU as *SIGNOFF and LMTCPB as *YES. They can still access AS400 from other server which are connected to AS400. However, if the same user tries to access the AS400 from 5250 emulator, it will immediately bring the user to signoff screen thus restricting access to AS400 and command line.

How to find the IP address if a network printer in AS400?

The IP address of all the printers that are configured in AS400, can be found in the device description.

Use Command

WRKDEVD DEVD(*PRT)

Beside the printer name that you want to find the IP address, you can take option 5 to display and page down to find the IP address or you can take option 6 to print the report and it will have the IP address listed in it.

The other command that can be used is

WRKCFGSTS CFGTYPE(*DEV) CFGD(*PRT)

Then take option 8 (work with description) this will bring you to the same screen as
 WRKDEVD DEVD(*PRT), then use option 5 or 6 to retrieve the IP address.


AS400 IP Printing

Create IP Printer Device


Most printers can be set up on the AS/400 for printing.  The printer must be attached to the network with a static IP address and be a supported manufacturer.  Follow the steps listed below to set up an AS/400 IP printer session.  



·         Start a Client Access TCPIP session by double-clicking AS/400 TCPIP Connection.
·        

CRTDEVPRT Create Device Desc (Printer)
·         Device description:  The name of your printer (in this example ITHP5)
·         Enter *LAN for the Device Class, 3812 for the Device type and 1 for Device Model
·         LAN attachment should be *IP
·         Port Number: Specify 9100 for HP, Lexmark, and most IBM printers.  
·         Online at IPL:  *YES
·         Font Identifier:   11  Point Size:  *NONE
·         Form Feed:   *AUTOCUT
·         Leave the default values for the other parameters and press Enter to continue.
·         Leave the default value of *INQ for the Printer error message
·         Page down for other parameters




·         Message queue: QSYSOPR Library:*LIBL
·         Activation Timer:  170
·         Inactivity time:  *SEC15 
·         Host Print Transform:   *YES
·         Press Enter for more values
·         Manufacture type, model: Enter a value according to your printer type.   In this example (*HP5).
·         Paper Source 1 & 2:   *LETTER
·         Envelope source:  *NONE
·         Leave the default values for the other parameters and PAGE DOWN to continue


 
·         Remote location: The IP address of your printer. 
·         Skip to  System driver program:   *HPPJLDRV
·        

Text Description: A description for your printer configuration object.
·         Press Enter
·         Description for that device has been created.
·         Do a WRKCFGSTS for *DEV and find the device you created and vary on.
·         WRKWTR and Start the writer. 
·         This will automatically create an outq with the same name.   If needed change the outq and library to the correct writer.  


To Add a Workstation Customizing Object to the IP Printer.   Please follow the instructions below:


AS/400 Modifying a Workstation Customizing Object (WSCST)



Modify a Workstation Customizing Object (WSCST)


AS/400 IP printing allows users to print to their Windows 95 default printer over the LAN.   This is accomplished by setting up an AS/400 writer with the Static IP address of the printer.  There are tags that cause the font size to be reduced.    You need to Modify the WSCST to edit these tags.   

·         Start a Client Access TCPIP session by double-clicking AS/400 TCPIP Connection.
·         First step is to retrieve the WSCST by this command RTVWSCST and F4 
·         For device type Enter *transform
·         Enter the Manufacture type and model ex. *HP8000
·         The source member specifies the name of the source file member to receive the retrieved table attributes. 
·         The source file specifies the name of the source file in which a member is created to contain the retrieved table attributes.  If the source file does not exist, it is created.  The coded character set identifier for the source file is *HEX.   Use QTXTSRC
·         Library is QGPL.
·         Enter the text description for the WSCST you are modifying. 
·         Hit Enter when you are finished and you should get a message saying: Member HP8000 added to file QTXTSRC in QGPL.                                                                      



·         Next you need to modify the WSCST.  
·         On a command line type WRKMBRPDM FILE(QGPL/QTXTSRC) MBR(*ALL) MBRTYPE(*ALL) this will bring you to a list of WSCST.
·         Enter a 2 on the WSCST that you want to modify.   
·         Page down until you see the CPICOR Tags.    These settings are what causes the reduced font:
                CPICOR
                CPI=10
                ASCIIFNT=  255
                FNTWTH=   84
                FNTATR=    1
                DATA =''X.    
                :CPICOR     
                CPI=12        
                ASCIIFNT=  255
                FNTWTH=   84 
                FNTATR=    1
                DATA =''X.     
  • Change these tags to these settings and add the CPI=15 tag.   As appears below:
                :CPICOR         
                CPI=10        
                ASCIIFNT=  204
                FNTWTH=   110 
                FNTATR=    1  
                DATA =''X.    
                :CPICOR         
                CPI=12        
                ASCIIFNT= 85  
                FNTWTH = 120
                FNTATR= 1   
                DATA =''X.  
                :CPICOR       
                CPI=15      
                ASCIIFNT= 281
                FNTWTH =  72
                FNTATR=   1 
                DATA=''X.   
  • Press F3 to exit and then enter Y to change/create member.
  • You should get a message saying:   Member HP8000 in file QGPL/QTXTSRC changed with 621 records.
  • Once the WSCST has been edited and saved, you are ready to create a new WSCST Table.   Type the following:



  • CRTWSCST and hit F4 to prompt the command.  Type the name of the source member you used for the name of the WSCST.   The Source member is *WSCST and the test is *SRCMBRTXT
               
  • You should get a message:  Customization object HP8000 created successfully.
  • When adding the WSCST to the device, the writer must be ended and the device must be varied off.  
  • Type CHGDEVPRT and ENTER.
  • Type the name of the device you want to change.
  • Page down until the last page and hit F10 for additional parameters.

  • Enter the name of the WSCST and the LIBRARY and hit enter.  
  • You should get a message saying Description for device ITHP8100 changed.
  • You have successfully created a WSCST.  
  • Test using a job log and see if the font size is larger.  


Related Posts Plugin for WordPress, Blogger...