Posts

Showing posts with the label hp-ux

LED status on HP Machine

sometimes we found our LED HP server states green, blinking yellow or red. Just visit official site .

Show HP-UX kernel system parameter

# kmtune Parameter Current Dyn Planned Module Version =============================================================================== NSTRBLKSCHED - - 2 NSTREVENT 50 - 50 NSTRPUSH 16 - 16 NSTRSCHED 0 - 0 STRCTLSZ 1024 - 1024 STRMSGSZ 65535 - 65535 acctresume 4 - 4 acctsuspend 2 - 2 aio_listio_max 256 - 256 aio_max_ops 2048 - 2048 aio_physmem_pct 10 - 10 aio_prio_delta_max 20 - 20 allocate_fs_swapmap 0 - 0 alwaysdump 1 - 1 ...

Verify hardware information on HP RP24XX

Verify hardware information on HP RP24XX Procedure: - Execute command: #cstm cstm>sel d 1 cstm>info cstm>wait cstm>il Result: System Information for (xxxxxx) HPUX Model Number......: A500 HPUX Model String......: 9000/800/A500-6X Original Product Number: xxxxx Current Product Number.: xxxx System Serial Number...: xxx Hversion...............: xxxxxxx Sversion...............: xxxxxx Software Capabilities..: xxxxx CPU Information: Number of CPUs in the system = 2

Howto SAN on HP-UX

After create LUN on external storage, we want to connect server through fiber channel to SAN Switch. First we should plugged FC HBA card to server. View HBA version. Ex: AB379B. We need to check depot Fiber Channel that contain HBA's driver. # swlist | grep FibrChanl-01 FibrChanl-01 B.11.11.10 FibreChannel;HW=A6826A,A9782A,A9784A,AB378A/B,AB379A/B,AB465A,AD193A,AD194A If we don't have any depot installed, we should download depot from HP site. After this we install that depot. # swinstall -s /tmp/FibrChanl-01_B.11.11.12_HP-UX_B.11.11_64.depot Before we plugged the HBA card we should make sure we have it's driver. After we install driver, it's safe to shutdown server and plugged HBA card. After start the system, show the system hardware and all list disk device class. # ioscan -nfCdisk Class I H/W Path Driver S/W State H/W Type Description ========================================================================== disk ...

How to mirror disk at HP-UX - 2

If we want 2 mirror Volume Group, we need to put it on different partition. Each Volume Group can has many of Logical Volumes. Show your disk layout partition # ioscan -fnC disk Class I H/W Path Driver S/W State H/W Type Description ============================================================================ disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE _NEC DVD+-RW ND-6650A /dev/dsk/c0t0d0 /dev/rdsk/c0t0d0 disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC /dev/dsk/c2t0d0 /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s2 /dev/dsk/c2t0d0s1 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s1 /dev/rdsk/c2t0d0s3 disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC /dev/dsk/c2t1d0 /dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s2 /dev/...

How to mirror disk at HP-UX - 1

If we want mirror only 1 Volume Group. Show your disk layout partition # ioscan -fnC disk Class I H/W Path Driver S/W State H/W Type Description ============================================================================ disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE _NEC DVD+-RW ND-6650A /dev/dsk/c0t0d0 /dev/rdsk/c0t0d0 disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC /dev/dsk/c2t0d0 /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s2 /dev/dsk/c2t0d0s1 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s1 /dev/rdsk/c2t0d0s3 disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC /dev/dsk/c2t1d0 /dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s2 /dev/dsk/c2t1d0s1 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s1 /dev/rdsk/c2t1d0s3 disk 3 0...

How to mirror the root disk HP-UX Integrity (testcase : HP 2620rx)

1. Run ioscan to know about your disk layout # ioscan -fnC disk Class I H/W Path Driver S/W State H/W Type Description ============================================================================ disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE _NEC DVD+-RW ND-6650A /dev/dsk/c0t0d0 /dev/rdsk/c0t0d0 disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC /dev/dsk/c2t0d0 /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s2 /dev/dsk/c2t0d0s1 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s1 /dev/rdsk/c2t0d0s3 disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC /dev/dsk/c2t1d0 /dev/rdsk/c2t1d0 2. Show each of partition on primary disk # diskinfo -b /dev/rdsk/c2t0d0s1 | awk '{print $1 / (1024)}' 500 # diskinfo -b /dev/rdsk/c2t0d0s2 | awk '{print $1 / (1024)}' 139114 # diskinfo -b /dev/rdsk/c2t0d0s3 | awk '{print $1 / (1024)}' 400 3. Delete any partition ( if an...

Unlocked root/user account on HP-UX 11.23 ia64

Login as any user $ sudo su - Password: ****** Execute this command, this only work on HP-UX. This command is not available on Solaris & Linux. #/usr/lbin/modprpw –l –k root or #/usr/lbin/modprpw –l –k smiertx

Memory Information on HP-UX 11.23 ia64

View swap memory allocated on your system # swapinfo -tam View portion of virtual memory available to server # vmstat View virtual and real memory usage # glance

Ethernet Card Information on HP-UX 11.23 ia64

View Ethernet card information # lanscan View Ethernet card capability on 10/100Base or 1000Base #ioscan –funC lan View Ethernet Settings, include speed and mode # lanadmin -x instance For example : # lanadmin -x 0 # lanadmin -x 1 etc ... You can run this command to view network config # netstat -in Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll lan0:1 1500 192.168.200.0 192.168.200.12 0 0 0 0 0 lan0 1500 192.168.200.0 192.168.200.11 7802 0 6122 0 0 lo0 4136 127.0.0.0 127.0.0.1 8745 0 8745 0 0

All Machine Information on HP-UX 11.23 ia64

Just run this command # machinfo CPU info: Number of CPUs = 1 Clock speed = 1600 MHz Bus speed = 400 MT/s CPUID registers vendor information = "GenuineIntel" processor serial number = 0x0000000000000000 processor version info = 0x000000001f020204 architecture revision: 0 processor family: 31 Intel(R) Itanium 2 Family Processors processor model: 2 Intel(R) Itanium 2 processor processor revision: 2 Stepping A2 largest CPUID reg: 4 processor capabilities = 0x0000000000000001 implements long branch: 1 Bus features implemented = 0xbdf0000060000000 selected = 0x0000000040000000 Bus Lock Signal masked Cache info: L1 Instruction: size = 16 KB, associativity = 4 L1 Data: size = 16 KB, associativity = 4 L2 Unified: size = 256 KB, associativity = 8 L3 Unified: ...

Installing Depot files on HP-UX 11.23 ia64

Download your depot files from http://hpux.connect.org.uk/ based on your machine type. Download it, for example : bash-3.2-ia64-11.23.depot.gz, put it on /tmp. Install it with 2 option : 1. It will display SAM # swinstall -s /tmp/bash-3.2-ia64-11.23.depot.gz 2. It don't display SAM, so you get quick way # swinstall -s /tmp/bash-3.2-ia64-11.23.depot.gz bash Don't forget to install dependencies for this depot file, it's different from Redhat, who will reject rpm that missed dependencies. HP-UX accept all depots without any warning, but you must install dependencies yourself. You can know dependencies on http://hpux.connect.org.uk/, when you download, look at any dependencies for this depot file. Check depot files that already installed on your system # swlist Somehow any error happened when installing from directory another than /tmp, for example : /data. You should register that directory to depot. # cd /data # swreg -l depot `pwd` If it still fails, look at my post before a...

Setting Hostname on HP-UX 11.23 ia64

Edit /etc/hosts, remember don't add any hostname on line "127.0.0.1 .......". It will make sam take so long time to begin. Remember also that after IP Address use tab to separate with name of host. # vi /etc/hosts 127.0.0.1 localhost loopback 10.10.10.1 devserv Make nodename value same as hostname # uname -S devserv Don't forget to edit /etc/rc.config.d/netconf # vi /etc/rc.config.d/netconf ---------------- HOSTNAME="devserv" --------------- After that restart network with # /sbin/init.d/net stop # /sbin/init.d/net start Check your hostname and nodename now ... # hostname # nodename

Setting IP Address on HP-UX 11.23 ia64

Edit file on /etc/rc.config.d/netconf ---------------------- INTERFACE_NAME[0]=lan0 IP_ADDRESS[0]="192.168.200.17" SUBNET_MASK[0]="255.255.255.0" BROADCAST_ADDRESS[0]="192.168.200.255" INTERFACE_STATE[0]="" DHCP_ENABLE[0]=0 ---------------------- Restart network with # /sbin/init.d/net start