877.503.9800
Contact Us

 

Category: HP-UX

Renumbering device instances

With really large disk arrays, you can find instance numbers piling up very quickly, and worse, they can make path managers such as DynaPath, Power Path and Secure Path exceed their limits. This is especially true if you are deleting and re-adding devices. Fortunately, there is a relatively easy way to accomplish this task.   [...]

Wednesday January 25th, 2012 in HP-UX | Comments Off

GZIP/GUNZIP with no extra storage

When you gzip (or compress) a file, the original plus the compressed copy will exist in the same filesystem until the compression is complete. Then the old file is removed, leaving the compressed version. The worst case for an uncompressible file is that twice the amount of space will be needed temporarily. For very large [...]

Wednesday January 25th, 2012 in HP-UX | Comments Off

Say Yes? Say No? Say what?

Anyone who has written an interactive script has had to ask a yes or no question. And then script gets changed to handle UPPERCASE and lowercase. And modified again to check for just 1 letter such as y or n… And pretty soon, the code looks fairly convoluted. Here’s a simple way to handle all [...]

Wednesday January 25th, 2012 in HP-UX | Comments Off

Mounting an ISO image in HP-UX

Some applications are supplying ISO images rather than actual CDs or DVDs for installation. An example is Data Protector from HP. If this image is burned on a PC to a CD or DVD, the CD software may translate the image into Joliet or otherwise modify the image. The resultant CD/DVD will have filename problems [...]

Friday December 16th, 2011 in HP-UX | Comments Off

LAN speed test with no disk I/O

Q: I need a way to test LAN performance but I don’t want disk I/O to slow things down. A: ftp can be used to exercise a network, probably the fastest handshake method without specialized programs. Here is a little known technique: Use the put command with dd and send the file to /dev/null on [...]

Wednesday November 30th, 2011 in HP-UX | Comments Off

Using Julian days for calendar calculations

Q: I need to determine days between arbitrary dates. I’ve seen epoch seconds as a possible way but this is limited 1970 through 2038 and converting between MDY forms and epoch seconds is fairly tricky. A: If all you need are the number of days, the simple way is to use the Julian calendar. Note [...]

Wednesday November 30th, 2011 in HP-UX | Comments Off

Extracting products from a large depot

  When working with large, multi-product depots such as the Internet Express collection, it is often desirable to extract a single product or small group of products to create a small depot. The technique is quite simple. Here are two examples: # swcopy -x enforce_dependencies=false -s /var/tmp/iExpress-1of3 ProFTPD @ /tmp/prod1 # swcopy -x enforce_dependencies=false -s [...]

Wednesday November 30th, 2011 in HP-UX | Comments Off

Problem with filenames

I am getting: PuTTYPuTTY everytime I list a particular directory with ls or ll. It does not happen in any other directory and I can’t see anything unusual in the directory so what is the problem? For most terminal emulators, there is an AnswerBack feature, something that was implemented more than 40 years ago during [...]

Tuesday October 25th, 2011 in HP-UX | Comments Off

Show elapsed time for startup tasks

When HP-UX boots up, more than two dozen startup scripts are run to initialize and start services and daemons. Most complete immediately, but some take a long time to complete. There is no timestamp recorded in /etc/rc.log (where the startup scripts record their activity) so other than manually writing down the script names when there [...]

Tuesday October 25th, 2011 in HP-UX | Comments Off

DRD Strangeness

I’ve been working with DRD recently and have come across a couple of strange issues.   Issue #1:      The first issue deals with the format DRD expects patches to be in.      DRD cannot handle a “serial” or “tape” depot when installing products or patches on a clone disk via the ‘drd runcmd swinstall’.  [...]

Friday October 21st, 2011 in HP-UX | Comments Off