Archive for the ‘HPUX’ Category
Problems running glance on HP-UX
Do you know what’s glance?
Glance is a system performance monitoring and diagnostic capabilities software from HP. Glance is more powerful when your running on HP-UX environment, cause they collect all information that require for monitoring the system in a real time. But, there’s no 100% perfect software, yesterday I have a little problem when running with glance, but as usually, we solve the problem like a pieces of cake.
here’s the summary about the problem
== Fatal Nums Error == C.03.72.00 09/29/03 ==
User: aragon(/dev/pts/tf) Date: Fri May 22 15:58:14
File: nums.C Line: 479 Product id: Glance
System: superdome B.11.11 9000/800
Errno: 0 (Error 0)
Connection to midaemon lost — check midaemon process and status.mi
== End of Error Msg =============================
Litte magic comes bellow
sh> su - sh> mwa stop sh> ps -ef | grep midaemon root 5005 1 11 09:19:20 ? 0:18 /opt/perf/bin/midaemon root 5680 2490 2 09:25:41 pts/5 0:00 grep midaemon sh> kill -9 5005 sh> mwa start
and then try glance again.
FTP Refused connection on HP-UX
When we try connected to HPUX server with FTP client with another user except root, sometimes we got a small problem with that.
But don’t be afraid, we got some workaround here.
Ok now let’s start the trial
1. First we try to connect to HPUX server with FTP from any client, with user “oracle”.
bash> ftp rohan Connected to rohan. 220 rohan FTP server (Revision 3.0 Version wuftpd-2.6.1 Wed Dec 19 08:27:34 GMT2007) ready. User (rohan:(none)): oracle 331 Password required for oracle. Password: ***** 530 Login incorrect. Login failed. ftp> bye 221 Goodbye.
2. Logging all connection
Back to HPUX, now we try to log all connection, including ftp.
sh> inetd -l
Check if the log was run properly
sh> tail -f /var/adm/syslog/syslog.log Sep 2 08:35:51 rohan ftpd[22988]: FTP server (Revision 3.0 Version wuftpd-2.6.1 Wed Dec 19 08:27:34 GMT 2007) ready. Sep 2 08:35:54 rohan ftpd[22988]: FTP LOGIN REFUSED (shell not in /etc/shells) FROM 10.14.14.12 [10.14.14.12], oracle
Rename Volume Group on HP-UX (quick & dirty)
Can you explain how to rename a volume group (VG)?, How to rename your Volume Group on HP-UX ? and many more question about how to rename the volume group. here I show you the magic of how to rename your Volume Group.
bash> bdf|grep /rdbms/oradata/a /dev/vg07/lvol1 5144576 3515198 1527542 70% /rdbms/oradata/a
We will rename VG07 to VG20, backup your data first.
Backup VG config First
bash> vgcfgbackup /dev/vg07 Volume Group configuration for /dev/vg07 has been saved in /etc/lvmconf/vg07.conf
Ok, now deactivate the first volume group
bash> vgchange -a n /dev/vg07 Volume group "/dev/vg07" has been successfully changed.
Export Vg07 dengan nama ‘vg20.map’
bash> vgexport -v -s -m /tmp/vg20.map /dev/vg07 Beginning the export process on Volume Group "/dev/vg07". /dev/dsk/c5t0d0 Volume group "/dev/vg07" has been successfully removed.
Create New Volume group (VG20)
bash> mkdir /dev/vg20 bash> mknod /dev/vg20/group c 64 0x1a0000
Import VG nya
bash> vgimport -v -s -m /tmp/vg20.map /dev/vg20 Beginning the import process on Volume Group "/dev/20". Logical volume "/dev/vg20/lvol1" has been successfully created with lv number 1. Volume group "/dev/vg20" has been successfully created.
Last but not least, Enable the VG
bash> vgchange -a y /dev/vg20 Activated volume group Volume group "/dev/vg20" has been successfully changed.
Show Memory Info In HP-UX
If your machine install the IGNITE software you can use print_manifest , If not you can use cstm (Command line interface to the Support Tool Manager)
bash> echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm | grep 'Total Configured' Total Configured Memory : 143360 MB
Show Serial Number System In HP-UX
If your machine install the IGNITE software you can use print_manifest , If not you can use cstm (Command line interface to the Support Tool Manager)
bash> echo "selclass qualifier system;info;wait;infolog" | /usr/sbin/cstm | grep "System Serial Number" System Serial Number.......: S**xxxxxx
Wget Behind Proxy
Before Use, Please Install (swinstall) the packaged, reach at http://hpux.connect.org.uk/hppd/hpux/Gnu/wget-1.10.2/, don’t forget about the build and run-time dependencies.
after that please add
"export http_proxy=http://server-proxy:port"
and
"export ftp_proxy=http://server-proxy:port"
in your profile
Enjoy!!
Backup Systems To Tape
Scan Tape Device, to find full path..
bash> /usr/sbin/ioscan -funC tape Class I H/W Path Driver S/W State H/W Type Description =============================================== tape 0 0/0/11/1/0.3.0 stape CLAIMED DEVICE HP C5683A /dev/rmt/0m /dev/rmt/0mnb /dev/rmt/c1t3d0BESTn /dev/rmt/c1t3d0DDSb /dev/rmt/0mb /dev/rmt/c1t3d0BEST /dev/rmt/c1t3d0BESTnb /dev/rmt/c1t3d0DDSn /dev/rmt/0mn /dev/rmt/c1t3d0BESTb /dev/rmt/c1t3d0DDS /dev/rmt/c1t3d0DDSnb (some output removed for brevity)
Install “Ignite-UX” software before used
bash> make_tape_recovery -IAv /dev/rmt/0m
Rewind Tape
bash> mt -f /dev/rmt/0m rew
Monitor backup tape process :
bash> tail -f /var/opt/ignite/recovery/latest/recovery.log
Reads Traditional and Modular Kernel Configuration Files
$ /usr/sbin/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
bcvmap_size_factor 2 – 2
bootspinlocks – – 256(some output removed for brevity)