Livio Teixeira Filho
RESUME ( English )

CURRICULO ( Portugues )

Home


UNIX TIPS

Solaris

HP-UX

AIX

Linux


DOWNLOADS

( my publications )

File and Print Serving with Linux on IBM i5

Solaris to AIX Migration: A Guide for System Administrators

Achieving High Availability on Linux for System z with Linux-HA Release 2


PICTURES

IBM-Rochester/MN (Jan/2005)

Gustavo 1 year old Birthday (Jul/2005)

São Luis/MA (Sep/2005)

Jan to Apr/2006

Texas (Apr to May/2006)

May to Aug/2006

Sep to Dec/2006

Italy/Feb-2007

Jan to Mar/2007

Washington/VA (Jun/2007)

Chesterfield/VA (Oct/2007)

New York (Jun/2008)

Dec/2008 to Jan/2009)

Itacare/Bahia (Jan/2009)

Jan to Dec/2010

Moto trail (Ago/2010)

Orlando/FL (Jan/2011)

Flying around Campinas (2011)

Flying Avid Flyer around Tatui (Jan/2012)

DICAS - HP-UX

1- General

1.1- Verifying WWN of HBA
1.2- Verifying if the system is running in 32 or 64 bits
1.3- Dates via inode
1.4- How to kill FIN_WAIT_2 connections
1.5- Total physical memmory via command line
1.6- CPU Speed via command line
1.7- How to setup TCP Window size to 256K
































1.1- Verifying WWN of HBA

/opt/fcms/bin/fcmsutil /dev/td?

Verifying if the system is running in 32 or 64 bits

getconf KERNEL_BITS

1.3- Dates via inode1. Find the inode of the file in question

# ll -i snmpd.log

8 -rwxrwxrwx 1 root root 0 Mar 19 2002
snmpd.log

2. View the file metadata:

# echo 8i |fsdb /dev/vg00/rlvol4

inode structure at 0x0000043a.0000
type IFREG mode 100777 nlink 1 uid 0 gid 0 size 0
atime 1016567426 460002 mtime 1016567426 460002 ctime
1016567426 460002
aflags 0 orgtype 1 eopflags 0 eopdata 0
fixextsize/fsindex 0 rdev/reserve/dotdot/matchino 0
blocks 0 gen 12 version 0 40344 iattrino 0 noverlay 0

3. Use the following command to determine the date for that value:

# echo 0d1016567426=Y | adb

2002 Mar 19 11:50:26


1.4- How to kill FIN_WAIT_2 connections

# ndd -get /dev/tcp tcp_status | grep FIN_WAIT

TCP dest snxt suna swnd ...
0000030000106fc0 000.000.000.000 0000 ... [0, 0] FIN_WAIT_2
0000030000d90fe0 000.000.000.000 000 ... [111, 0] FIN_WAIT_2

The needed address is in the first collun (TCP) :

# ndd -set /dev/tcp tcp_discon 0x0000030000106fc0

Note that there is a "0x" before the TCP value .



1.5- Total physical memory from command line

Versão: 10.x

echo physmem/D | adb /stand/vmunix /dev/kmem

Versão: 11.x 32 bits

echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem

Versão: 11.x 64 bits

echo phys_mem_pages/D | adb64 /stand/vmunix /dev/kmem

( Multiply the value per 4096 and you will have the resoult in Kb )


1.6- CPU Speed via command line

echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem


1.7- How to setup TCP Window size to 256K

ndd -set /dev/tcp tcp_recv_hiwater_def 262144
ndd -set /dev/tcp tcp_xmit_hiwater_def 262144
ndd -set /dev/tcp tcp_recv_hiwater_lfp 262144
ndd -set /dev/tcp tcp_xmit_hiwater_lfp 262144

To setup those values for the next boot you have to edit /etc/rc.config.d/nddconf