Thursday, June 20, 2013

Find tape drive serial number HP-UX


To find out the serial number of tape drive connected to HP_UX server.

1. use devbra 

#/opt/omni/lbin/devbra -dev

2. use cstm

#echo "map; wait; selall; wait; info; wait; infolog; view; done" | cstm > /tmp/cstm.txt

Read through the output  you will get  details of tape drive like this.

Hardware path: 0/3/0/0/0/0.3.10.255.0.0.0


Device Qualifier:    HPUltrium
Product ID:          Ultrium 4-SCSI     Hardware Path:
0/3/0/0/0/0.2.10.255.0.0.0
Device Type:         SCSI Tape          Logical Unit Number:    0
Vendor:              HP                 Product Rev Level:      H58W
Firmware Revision:   012.847            Tape Load Count:        0
Correctable Errors:  0                  Uncorrectable Errors:   0
Mfg Date Code:       N/A                Servo Revision:         H/W.REV
Serial Number:       HU18283HG1
Compression Status:  Enabled            Compression Ratio:
                                                  [instant]     N/A
                                                  [average]     1.0 : 1
Capacity [M Byte]:   0
Drive Status:        Good


3.  use fcmsutil

fcmsutil   HBA_PATH get remote all.

This will show the serail no of tape driver on the port where it connected.


Thursday, June 6, 2013

ssh: connect to host [server] port 22: Connection refused HP-Ux


  
1.  Verify how many  "/opt/ssh/sbin/sshd" process  running in the server. If more than once process is running kill  all the "/opt/ssh/sbin/sshd" process and start ssh using /sbin/init.d/secsh start.

2. Verify that "/opt/ssh/sbin/sshd"  process is running. if not start sshd process using "/sbin/init.d/secsh start"

3. If you can connect to sshd using localhost in the server, then check for any firewall blocking access to sshd port in outside network.