Having a name associated with your bi-annual patch file makes it easier to inventory than the default BUNDLE
This is based on doing a QPK download which requires a support agreement. Output is from 11.23 it worked with 11.31 as well.
./create_depot_hpux.11.23 -b”201407HPUXPATCHMINE” -t 201407HPUXPATCHMINE
< .. lots of boring output >
# DEST -s the destination of the patch set.
cd depot
swcopy -x enforce_dependencies=false -s $PWD \* @ $DEST
< .. lots of boring output >
mygush0:root > swlist -l bundle -s $DEST
# Initializing…
# Contacting target “mygush0″…
#
# Target: mygush0:/Depots/B.11.23/2014midyear_depot
#
201407HPUXPATCHMINE B.2014.08.06 201407HPUXPATCHMINE
DNSUPGRADE C.9.3.2.13.0 BIND UPGRADE
FEATURE11i B.11.23.1009.083 Feature Enablement Patches for HP-UX 11i v2, September 2010
HPSIM-HP-UX C.07.03.00.00.03 HP Systems Insight Manager Server Bundle
HWEnable11i B.11.23.1012.085a Hardware Enablement Patches for HP-UX 11i v2, October 2010
JAVAOOB 2.05.00 Java2 Out-of-box for HP-UX
NodeHostNameXpnd B.11.23.01 Nodename, Hostname expansion enhancement
OpenSSL A.00.09.08za.002 Secure Network Communications Protocol
QPKAPPS B.11.23.1012.086a Applications Patches for HP-UX 11i v2, December 2010
QPKBASE B.11.23.1012.086a Base Quality Pack Bundle for HP-UX 11i v2, December 2010
…
More fun
Tags: create big depot, hpux patching, patching
Measureware Extract Documentation
Necessary Processes:
root@myserver:/tmp/fog> ps -ef | grep scopeux
root 3246 1 0 Mar 19 ? 0:40 /opt/perf/bin/scopeux
List of possible reporting parameters:
/var/opt/perf/reptfile
Running datafiles live here:
root@myserver:/root> ll /var/opt/perf/datafiles
total 154528
-rw-r–r– 1 root sys 31 Feb 21 08:50 RUN
-rw-r–r– 1 root root 105 Sep 27 2012 agdb
-rw-r–r– 1 root root 0 Sep 27 2012 agdb.lk
-rw-rw-rw- 1 root root 168 Feb 21 18:28 classinfo.db
-rw-r–r– 1 root root 4206652 Feb 21 18:20 logappl
-rw-r–r– 1 root root 24054172 Feb 21 18:25 logdev
-rw-r–r– 1 root root 6464936 Feb 21 18:25 logglob
-rw-r–r– 1 root root 352232 Feb 21 10:55 logindx
-rw-r–r– 1 root root 15 Sep 27 2012 logpcmd0
-rw-r–r– 1 root root 32673802 Feb 21 18:28 logproc
-rw-r–r– 1 root root 9740096 Feb 21 18:25 logtran
drwxr-xr-x 2 root root 96 Sep 27 2012 lost+found
-rw-r–r– 1 root root 1504540 Oct 31 2012 mikslp.db
Here is a typical template to generate data into a spreadsheet.
cat mwatemplate
REPORT “MWA Export on !SYSTEM_ID”
FORMAT ASCII
HEADINGS ON
SEPARATOR=”|”
SUMMARY=60
MISSING=0
DATA TYPE GLOBAL
YEAR
DATE
TIME
GBL_CPU_TOTAL_UTIL
GBL_CPU_SYS_MODE_UTIL
GBL_CPU_USER_MODE_UTIL
GBL_CPU_SYSCALL_UTIL
GBL_CPU_INTERRUPT_UTIL
GBL_PRI_QUEUE
GBL_CPU_CSWITCH_UTIL
GBL_SWAP_SPACE_UTIL
GBL_DISK_UTIL_PEAK
GBL_DISK_SUBSYSTEM_QUEUE
GBL_MEM_UTIL
GBL_MEM_CACHE_HIT_PCT
GBL_MEM_PAGEIN_RATE
GBL_MEM_PAGEOUT_RATE
GBL_MEM_SWAPIN_RATE
GBL_MEM_SWAPOUT_RATE
GBL_MEM_QUEUE
GBL_NET_PACKET_RATE
GBL_NET_OUTQUEUE
GBL_NETWORK_SUBSYSTEM_QUEUE
Here is a script to process the measureware output and generate a spreadsheet using the above template file:
#################### Begin Sample Extract Script ####################
#!/usr/bin/ksh
#
# Extract to spreadsheet midnight to 6 am
/opt/perf/bin/extract -xp -r /root/mwatemplate -g -b today 0:00 -e today 06:00 -f testfile.txt
#################### End Sample Extract Script ####################
It is simple but effective. The command above looks at data between midnight and 6 am today. A look at the man page for extract will show you how to look at different data sets. There are an endless number of options. Choose template options based on the nature of the problem you are facing.
Core competencies of our owner and fearless leader
Quality Assurance Improvements done on previous assignments:
Maybe ISN Corporation should be working on your next big HP-UX system build
You stand up a new HP-UX host. sudo and ldap won’t work.
You know it should have been built into the Golden image but you never had time. Your organization requires sudo and ldap.
Temporary procedure to restore ldap and sudo functionality.
HP-UX 11.31 Itanium
Step 1: Log on to a working production box.
cd /etc/opt/ldapux
scp -rp * working_host:/$PWD
scp -p /etc/sudoers targethost:/etc
scp –p /sbin/init.d/ ldapclientd.rc targethost:/sbin/init.d
# vi /tmp/idf
3
EFI 500MB
HPUX 100%
HPSP 400MB
Use the idisk command to initialize:
idisk -wf /tmp/idf /dev/rdsk/disk8
Replace disk with the disk you intend to use.
insf -e -C disk
# May need to be used in advance to insure the device is recognized.
Tags: crash dump, high capacity volume group, HP-UX, hpux, ia64, Ignite-UX, superdome
This is our first case study. The events leading up to it occur between 1998 and 2002. It is a real life case study based on my experience. For legal reasons, I can not identify the organization. It is a charity that raises now around $100 million, 92% of funds raised go to actual charitable work. 8% is overhead. IT infrastructure is overhead, even though it is critical to actually raising funds.
From 1991-2005 I worked at this charity in IT, first as a programmer analyst, then as a dba, finally becoming the backup Unix Admin in 1998 and the full time Unix Admin in 2000. The organization ran its legacy fund raising systems on a pair of D class HP-UX systems. The back end database was Software AG adabas. The user fund raising community wanted to have an sql like ability to look into the database and run queries. they wanted flexible use of strategic data. An attempt was made in early 1997 to install a sql front end, but it did not provide acceptable results.
An internal study was done and it was decided in late 1997 to migrate legacy systems to a web based front end, with Oracle as the back end database, Oracle Application Server using forms and reports to build applications. Initially no plan was made to migrate to stronger hardware, due to the assurance from Oracle that their software would run on the existing infrastructure.
By 2000 it was obvious that this was not true. Though the database server itself ran acceptably, there was not sufficient memory or disk capacity to run the application server. So I was asked to prepare a plan to migrate legacy systems. Here were the guidelines:
Overall, I thought this was a solid foundation. Some of the points were made by management, some were suggested by me.
The following basic technical requirements were developed:
Deployment Diagram
Other Relevant facts on the decision making process.
Three vendors were picked to provide proposals. All ended up recommending HP-9000 L2000(later renamed rp5450) servers. Here are the highlights:
How it went:
Note: This document was designed entirely using the wordpress interface and a Linux system. The diagram was created with a free Linux alternative to visio called dia. The tool is in evaluation, and might be replaced. Still a pretty good start. Cost to produce this environment in licensing fees?: Zero dollars.
Tags: Capacity Planning, forums.itrc.hp.com, HP-UX, Ignite, Ignite-UX, LVM, migration, patches, system migration