Pages

Monday, September 30, 2013

Configuring HMC

HMC or Harware Management Console, is now an integral part of Iseries system. This has two standard models:-
1- The desktop model, it has only one Ethernet port.
2- Rack model , it has two standard Ethernet port.

Once, a new system is purchased, it comes with HMC, the HMC software is pre-loaded and also a CD is shipped for recovery purpose. Once, HMC is connected to the system. The procedure that you need to follow to configure HMC is as below,

1- Managed System Powered off.
2- Power on HMC
2- Login as hscroot or root with default password (hsroot = abc123, root = passw0rd)
3- Set date and time
4- Change default password for hscroot and root
5- Create additional user profile's to access HMC
6- Configure HMC network connection
7- Configure HMC to connect to network provider
8- Reboot HMC
9- Check HMC software version

If this is a new HMC , you will automatically be prompted to Guided setup, after you power on the HMC. Once, you switch on the power switch. You can see the initialization messages on your screen. After, this it will prompt you to login with a user name and password. Use hscroot or root user id. This will take you to the screen to set date and time.

On a new HMC change the default passwords. If you wish to create more user profiles, then the required screen will have new user id tab, new password and re-enter new password tab along with roles  tab , in which you have option to choose from below roles,
1- HMCSERVICEREP
2- HMCVIEWER
3- HMCOPERATOR
4- HMCPE
5- HMCSUPERADMIN

1- HMCSERVICEREP - hmcservicerep is a service representative id for IBM support personnel to access HMC.

2- HMCVIEWER - the user can only view HMC information, but has no authority to modify or change HMC options.

3- HMCOPERATOR - this user can perform daily tasks, but do not have authority to add new users or modify the roles.

4- HMCPE - Product engineer and service representative can perfom almost every task. However, PE can additionally shut down HMC and close virtual terminal windows which service representative cannot do.

5- HMCSUPERADMIN - Super admin has same authority as the hscroot or root. They have all the access to HMC and can manage and modify almost everything in HMC.
.
Once you have completed adding users, it will prompt you to configure the network Settings. I will discuss about this tomorrow in my next post. 

Thursday, September 26, 2013

How to fix the drawer issue in AS400 Printer?

In our shop we did a hardware and OS upgrade from V5R4 to V6R1 15 days back. After, the production system was up, we got an unusual problem with the printer. The printer which worked perfectly after migrating to new system, was asking the user to press OK button before it starts printing. The AS400 system reported below error message,

Operator action required on device XXXXXX.(C R)

From message ID CPA403D.
In order to fix this issue, we first compared both the printer device description , work station customization object and it was same in both. Then, we tried testing both printers, and we found that when the printer was printing from paper tray/drawer 2 it was working fine, however, it was  it configured in such a way that it selected drawer 1. But, this is how normally it should work. In order to fix the issue, we just directed the spool files to print from same printer using drawer 2. 

Below, is the command to do so.

Option 2 to change next to the spool file

OUTQ(XXXXXX) SAVE(*YES) DRAWER(2)


Otherwise, another option would be to try different values for the Manufacturer type and model (MFRTYPMDL) parameter in your *LAN 3812 DEVD or RMTOUTQ to see if another value will send the PCL Paper Source command for the "correct" paper tray on this printer without having to specify DRAWER(2) in your spooled files. For example, if you are currently using MFRTYPMDL(*HP4000) and WSCST(*NONE) then you could try specifying MFRTYPMDL(*HP5) and MFRTYPMDL(*HP5SI) to see if one of the other choices prints with DRAWER(1).

By changing the Manufacturer type and model, the problem was resolved.

Thursday, September 5, 2013

Useful System information that vendors need to know

When purchasing i5/OS third-party software, vendors may request system control information for the partition their products will be installed in. Vendors including IBM need to know some of these information to verify the caller. This information is used to create unique licensing keys that must be installed with the product for piracy prevention. Unfortunately, IBM doesn't have one screen to find vendor-required system information.
System serial number--The seven-digit number that uniquely identifies your machine. It's common to see the serial number printed in the format xx-yyyyy, where xx equals the first two digits of the serial number and yyyyy equals the last five digits of the serial number.  
Command
DSPSYSVAL QSRLNBR




GO SERVICE
Option 6




Machine type--A four-digit identifier that IBM traditionally uses to identify different types of machines in each of its product line. Common System i, iSeries, and AS/400 machine types include 9402, 9404, and 9406. The same machine type is commonly used across several different types of models.
Command
GO SERVICE
Option 6


Model number--The four-character value that defines the specific type of System i machine that you own. Common System i models include the models 550 and 570. Although IBM stores this value in a four-character field, many model numbers are only three characters long.
Command
DSPSYSVAL QMODEL


Processor feature--The processor feature code level of the system, which identifies the processor used on the system. 



Processor group--The processor category that IBM considers your processor feature to belong to (i.e., P10, P20). Because many vendors price software by processor group, this is one of the more important values when purchasing third-party software. The higher processor group that your partition belongs to, the more expensive it may become to purchase your software.
Command
WRKLICINF




Partition ID--In a partitioned system, the individual number (starting with 1) that identifies your partition to the system.
Command
GO SERVICE
Option 6


Number of processors that are allocated to this partition--This value displays how many processors out of the machine's total processor pool belong to the partition where you want to install the software.

Ops Navigator System Status Screen. Right click on the AS400 system and select system status.



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.  


Wednesday, July 31, 2013

Useful tips for FTP

In my last post where I had discussed about image catalog using FTP of the ISO image. However, I did not discuss FTP in detail. Now, lets see some useful facts about FTP.

FTP can be done in two way GET and PUT :-

We can achieve the same result using both PUT and GET command. It is a two way process between the i-Series and the PC. Lets discuss with a example,

We want to transfer file abc.doc to iSeries system name Kelly. The file is at
C:\Documents and Settings\Sharmistha\My Documents

I want to transfer the document abc.doc to iSeries library QGPL

When I do it from my PC the command would be,

Go to command prompt

C:\Documents and Settings\Sharmistha\My Documents

Start FTP from this location to your iSeries system,

C:\Documents and Settings\Sharmistha\My Documents\ ftp kelly(ip address)

this will ask for login id and password. After you enter the system, do the following.

ftp> quote site namefmt 1 ( this is done for objects are defined in OS400  IFS format)

ftp> bin ( object transferred in binary form)

ftp> PUT abc.doc  /qsys.lib/qgpl.lib/abc.doc

This will transfer from PC to iSeries. Now, we can do the same using GET command,


:\Documents and Settings\Sharmistha\My Documents

Start FTP from this location to your iSeries system,

C:\Documents and Settings\Sharmistha\My Documents\ ftp kelly(ip address)

this will ask for login id and password. After you enter the system, do the following.

ftp> quote site namefmt 1 ( this is done for objects are defined in OS400  IFS format)

ftp> bin ( object transferred in binary form)

ftp> GET /qsys.lib/qgpl.lib/abc.doc abc.doc


Save files (SAVF) are great for transferring iSeries and AS/400 objects between OS/400-based machines. Whether it's a group PTF, a file, a library or even a licensed program, save files can quickly zip large amounts of information between two AS/400s, especially if the save files are transmitted via FTP.

Few things to keep in mind when using FTP:-

1- BINARY :- Binary transfers mean that OS/400 FTP will create an exact mirror image of your save file on your target machine. The file is transferred bit-by-bit, and it is reassembled on the receiving machine exactly as it looks on the sending machine, with no EBCDIC translation performed. Incidentally, this also helps speed up your FTP transfer.

2- NAMEFMT :- This is used to specify how the objects in OS400 are defined. NAMEFMT 1 is for IFS format and NAMEFMT 0 is for library/object format. When you use NAMEFMT 0 , the save file must be previously created in target AS400, to enable the transfer of  save file between systems. If this save file is not created, mostly the system would create a new physical file and store the save file in it which is not what you want. So, it is advisable to create save file in target system before FTP'ing.

When using NAMEFMT 1, in which Integrated file system nomenclature is used, the system automatically creates the save file, when you have used IFS naming convention and also you have mentioned .savf file extension.

Example,

PUT /qsys.lib/ssahoo.lib/abc.savf  /qsys.lib/target.lib/abc.savf

3- Empty target save file for correct FTP :-  If you have created the target save file newly or if it is empty then the FTP completes successfully. You can use CRTSAVF command to create save file in target system or use CLRSAVF command to clear the existing save file in target system.

4- Using RCMD from command prompt :- You can also use RCMD command from PC command prompt to execute AS400 command in the iseries system.

Example,

QUOTE RCMD CRTSAVF FILE(SSAHOO/ABC) TEXT('SAVE FILE FOR TARGET MACHINE)







Related Posts Plugin for WordPress, Blogger...