Monday, November 23, 2009

Rm file in date range

touch -t 0903200000 2009-mar
touch -t 0904200000 2009-apr
find /path/ -newer 2009-mar ! -newer 2009-apr -exec rm {} \;

Thursday, November 12, 2009

AIX increase LUN

1. Change the size of the LUN in the FAStT 500 storage subsystem.

2. Unmount all file systems in the affected volume group for every file
systemusing the following command:

umount /filesystem

3. Vary off the volume group, using the following command:

varyoffvg vgname

4. Vary on the volume group, using the following command:

varyonvg vgname

5. Mount all the file systems unmounted in step 2, using the following
command:

mount /filesystem

6. Add the new PPs to the volume group using the following command:

chvg -g vgname

The growing of disks in the rootvg and in activated concurrent VGs is
not supported. The change of the chvg command is reflected in Web-based
System Manager.

Wednesday, November 4, 2009

HP-UX check CPU core

If you can reboot:
http://sysdigg.blogspot.com/2008/03/howto-find-cpu-is-dualquad-core-in-hp.html

From EFI boot manager select "System Configuration"
=>System configuration select "Advanced System Information"
=> from Advanced system information select "Display All information"
PROCESSOR MODULE INFORMATION

# of L3 L4 Family/
CPU Logical Cache Cache Model Processor
Module CPUs Speed Size Size (hex.) Rev State
------ ------- -------- ------ ------ ------- --- ------------
0 2 1.6 GHz 9 MB None 20/00 C2 Active
1 2 1.6 GHz 9 MB None 20/00 C2 Active

From command:
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=120&prodSeriesId=3257031&prodTypeId=15351&objectID=c01161194

machinfo:
Single-core processors ======================
processor family: 31 Intel(R) Itanium 2 Family Processors
Dual-core processors ====================
processor family: 32 Intel(R) Itanium 2 9000 series OR
processor family: 32 Intel(R) Itanium 2 9100 series

From MP prompt:
[host] MP> cm
[host] MP:CM> ss
SS
System Processor Status:
Monarch Processor: 0
Processor Module 0: Installed and Configured
Processor Module 1: Not Installed

Plus command:
host[root]:/>ioscan -k|grep pro
120 processor Processor
121 processor Processor

Monday, November 2, 2009

hp-ux fsadm

fsadm errno 28
mount point full

Saturday, October 31, 2009

AIX PTF APAR

PTF
Program Temporary Fix. A temporary solution or by-pass of a problem diagnosed by IBM as resulting from a defect in a current unaltered release of the program. A report of a problem caused by a suspected defect in a current unaltered release of a program.

APAR
Authorized Program Analysis Report. A report of a problem caused by a suspected defect in a current unaltered release of a program.

Wednesday, October 28, 2009

nfs

/etc/hosts
/etc/exports
(/testnfs -rw,root=p630,access=p630)
mknfs -N
exportfs -a

/etc/hosts
mount host:/mp /mp

showmount -e host

http://www.l-penguin.idv.tw/article/nfs-automount.htm
Auto Mount
/etc/auto.master

Tuesday, October 13, 2009

Check CPU info at AIX

# pmcycles -m
Cpu 0 runs at 1500 MHz
Cpu 1 runs at 1500 MHz
Cpu 2 runs at 1500 MHz
Cpu 3 runs at 1500 MHz

# sar -u -P ALL 1 2

AIX erprp1 3 5 00C9565E4C00 02/03/06

System configuration: lcpu=4