Thursday 16 January 2014

Administration: HP-UX commands to verify hard disk status after replacement

A little bit sidetrack from SAP topic, some of the commonly used HP-UX commands to verify on the hard disk status.

To obtain the relevant hard disk information

1) To show all the disks that currently connected to the server
    Command: ioscan –fnkC disk

2) To show the status of the hard disk
    Command: ioscan –fnkd ciss (to get the driver name)

    Command: sautil /dev/ciss0 (Utility to show the disk property)

Parameter meaning:
f=give full listing
 n=show device file names
k=show kernel structure; don’t scan hardware
C=show hardware in specified class

d=show hardware controlled by specified driver

Example of the sautil (Utility): 

Assumption: the server is running with 2 hard disks on RAID 1

1) One of the hard disk encounter error/failure

2) The server is currently running with one hard disk and experiencing failure on the other

3) Replication/mirroring is in progress (automatically started once a new hard disks been replace/hot swap)

4) Mirroring complete


How to install SAP license from OS level

You would like to install the SAP license but with limited permission on SAP GUI to execute TCODE: SLICENSE. The alternative solution is to install through OS level with the assumption of sufficient OS level access.

A) Example of license renewal required

1) Sample warning message of license expired

B) Steps to renew the license from SAP marketplace

1) Ensure the installation number for the license renewal:  System -> Status

2) Login to SAP marketplace: Keys & Requests -> License Keys -> Click on the relevant installation
    number

3) Click on the "Change details" icon for system that required license renewal.

4) Click "Continue"

5) Select the Certificate that required renewal and click "Change selected entry".

6) Click "Save"

7) Once the "Valid Until" shown the new date, click "Continue".

8) Enter the email address to receive the certificate and click "Submit".

9) Click "OK".

10) Request is being process ...

11) Wait for the email from SAP containing the new certificate details

12) Sample content of the new certificate.



C) Steps to perform the renewal at OS level

1) Example of insufficient permission to perform license renewal from SAP GUI

2) By using WINSCP or FTP, transfer the certificate received into the "prdadm" folder

3) File transfer successfully.

4) With PUTTY, login to OS level with root permission and perform the steps below:
    With root permission:
    - cd /home/prdadm
    - chmod 777 CERTICATE_FILE (change mode of the file)
    - chown prdadm:sapsys CERTICATE_FILE (change owner for the file)
    - su - prdadm

5) Execute the command highlighted below with prdadm
    With prdadm permission
    - cdpro
    - ls (to get the correct DVEBMGS name)
    - pwd (to get the correct path name)
    - ls (to get the copied certificate filename)
    - saplikey pf=path name + "/" + DVEBMGS name -install certificate filename

6) Once license installed successfully, the warning message no longer appear


D) Troubleshooting

1) Error: Insufficient permission when performing the license installation.


     Solution: Ensure change mode and change owner be perform prior to the SAP license installation