Operating System - HP-UX
1835718 Members
3602 Online
110082 Solutions
New Discussion

HP/UX - Solaris command/system comparison

 
SOLVED
Go to solution
James Mohr
Valued Contributor

HP/UX - Solaris command/system comparison

Hi All!

In the next couple of weeks we will be begin managing several HP/UX 10 machines for one of our customers. I have never worked on an HP machine longer than about 30 minutes, so I am obviously not too familiar with them. I have been working with Sun and Linux, so I know them fairly well. I was wondering if anyone knows of a site or documentation that compares various operating systems with command, features, etc.

Any help is appreaciated.

Regards,

jimmo
www.linux-tutorial.info
20 REPLIES 20
Robert-Jan Goossens
Honored Contributor
Solution

Re: HP/UX - Solaris command/system comparison

Hi Jimmo,

Check this site.

http://unixguide.net/cgi-bin/unixguide.cgi

Best regards,
Robert-Jan

Re: HP/UX - Solaris command/system comparison

Jimmo,

The standard one is the UNIX Rosetta stone available here:

http://bhami.com/rosetta.html

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Sunil Sharma_1
Honored Contributor

Re: HP/UX - Solaris command/system comparison

Zygmunt Krawczyk
Honored Contributor

Re: HP/UX - Solaris command/system comparison

Hi James,

look at this link:

http://devrsrc1.external.hp.com/STKS/portguides.html

Regards,
Zygmunt
James Mohr
Valued Contributor

Re: HP/UX - Solaris command/system comparison

Wow! There is some great information there. Thanks to everyone!!!

regards,

jimmo
www.linux-tutorial.info
Alzhy
Honored Contributor

Re: HP/UX - Solaris command/system comparison

James,

I was in the same boat as you some 18 months ago. The various UNIXGuide's or Rosetta stones out there and some have been already posted are great. But if you're a Sun, Linux other *Nix vet - you'll have no problems adjusting to HP-UX. Start with SAM - the admin tool. Filesystem and VxVM are practically the same. LVM will be a breeze for you if you already know VxVM (the reverse I have found out is the opposite).

Spend sometime on a box (preferebaly a cell-partionable one) and take your time doing several installs (or Ignites) and get to understand (explore) the GSP, PDC -- BCH -- which will equate to yout OBP environment on Sun. Further.. familiarize yourself with Ignite - do "Ignite-Backups" to tape and via Network for which you will need to set up an Ignite Server (which is relatively easy... after installing Ignite Software -- simply type "ignite"). Try several restores from tape and network ignite so you can compare with Jumpsstart and Kickstart technologies.


Also.. familiarize yourself with the way HP-UX environments deals with software and patches. Know the various sw* commands. Learn how to navigate ITRC and download patches and how to unbundle them and install them as a shared depot... you may also explore creating depots yourself.

Moreover. relating to performance and capacity planning - you've a number of friends inan HP-UX environment: namely Glance (which is also available on Sun), Measureware (available for free on your big HP servers as part of the Enterprise HP-UX OS) and of course the traditional UNIX tools - sar, vmstat, iostat.. etc.

Lastly.. you can always post (and in the future contribute) to this Forum which I must say has helped me tremendously as it porbably did to countless others.

Hakuna Matata.
Geoff Wild
Honored Contributor

Re: HP/UX - Solaris command/system comparison

This is a bit old - but has some good information:

http://www.interex.org/tech/9000/Tech/sun_hpux_interop/

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Patrick Wallek
Honored Contributor

Re: HP/UX - Solaris command/system comparison

And if all else fails, you can always check the HP documentation at:

http://docs.hp.com

Hopefully you, and your clients, are aware that HP-UX 10 is WAY out of support. If you have any problems and need help from HP for HP-UX 10, don't expect much.
Gerhard Roets
Esteemed Contributor

Re: HP/UX - Solaris command/system comparison

Not to forget the ITRC ;)

Regards
Gerhard
Ralph Grothe
Honored Contributor

Re: HP/UX - Solaris command/system comparison

Some biased thoughts that come to my mind when comparing these to Unix flavaours.

Like Solaris (i.e. from when SUN moved from BSD SunOS to Solaris) HP-UX is pretty much SysV heavy, especially init and the booting process.
So you will feel at home on HP-UX easily in this respect.
Beware, that Solaris places init scripts under /etc/init.d while HP-UX under /sbin/init.d, which even is an extra filesystem on an own LV usually.
This may be important for your backup strategy.
Also HP-UX uses sequence init scripts.
So unlike as with Solaris you don't need to place kill links in every run level subdir, but only once in the runlevel below.
Another difference is that Solaris uses rather hardlinks for start and kill scripts (aliases).
But you will know this from Linux.
In my opinion HP-UX init scripts have a more elegant way to globally configure init script settings through single files in /etc/rc.config.d which are sourced by the various init scripts.
The big advantage of this got most conspicous to me at two places.
E.g. in Solaris you need to manually edit not less than *six* files if you need to rename your box or give it a new IP.
In HP-UX you only edit one file, viz. /etc/rc.config.d/netconf.
That may be the price Solaris has to pay for its highly modular kernel.
The HP-UX kernel still is almost monolithic (compared to Solaris and Linux).
So be prepared to do more kernel fiddling in HP-UX than you were used to.
The other fine thing about the HP-UX init script /etc/rc.config.d resource is that you have very handy toggle variables that enable you to easily skip a service by setting some START_=0
That said, in the Solaris init script for the automounter there is for example no provisional variable prepared to pass it easily arguments (like setting the default 10 mins. to something other through -t).
Of course you can script such easily but then you are forced to break the Solaris standard.
Other conspicous differences are the by far better integration of a volume manager in HP-UX (i.e. LVM).
Together with the freely available Ignite you have an unbeatably (maybe only by AIX ;-) easy method of doing a disaster recovery of an HP-UX box.
Solaris in this respect really sucks.
Although they have tools like jumpstart and flash archive (i.e. flarcreate) these only work without pain if there is no volume manager involved, be it Solaris's own SVM (formerly Solstice Disk Suite), or Veritas VxVM.
Only try to devise a disaster recovery mechanism with volume manager integration of the root disks (i.e. rootability) that doesn't require several reboots into single user mode, prior unencapsulation of a root disk (if you use VxVM), interim commenting of loadable volume manager modules in /etc/system etc.
This all is far too error prone, especially if you are under pressure to bring back the box within a SLA, or the only intimate Solaris guru doesn't happen to be around.
Thus it seems common that many Solaris sysadmins keep a third root spare disk in place.
Another thing that I like more about HP-UX is the fine output from ioscan.
Compare that to the rather cluttered, confusing dump from prtconf.
Then in Solaris you have usually /tmp "mounted" as tmpfs, you can call it RAM disk I suppose.
This has the nice feature that all the rubbish that clutters up there during a server's life cycle gets automatically down the drain when you reboot.
Another nice side effect is the unreachable I/O speed.
But on the other hand there is a huge drawback.
/tmp is supposed to be writeable by any user (so one should at least set the sticky bit on it).
On a Solaris box that uses tmpfs this may mean that anyone dumps a, say 4.7 GB image of a DVD he intends to burn.
If you don't have that much RAM, or only slightly more, this will cause your box to do desperation swapping, and last remedy could only be a reboot.
Another obvious difference is that you usually cannot (even as root) write to /home, and that all users' home dirs go beneath /export/home.
This is of course due to SUN's promotion of their Automounter.
But you first will have to manually edit the home mapfile (e.g. /etc/auto.home) that every user's login maps to the Unix custom /home.
Printer configuration, I haven't discovered yet whether SUN clings to BSD or SysV style printing system.
No matter what you do with the lpadmin command on Solaris it only seems decisive what gets in /etc/printers.conf which to me looks like good old BSD printcap.
With HP-UX lpadmin usage is clear.
Now shifting sides, what I like about Solaris is that it comes with filesystem snapshot (by fssnap).
On HP-UX you are required to get a dear extra license for what they call OnlineJFS.
Solaris UFS mounted filesystems can be extended online (i.e. mounted) by growfs at no extra cost.
Well you cannot shrink, but that doesn't work on VxFS most of the times either.
The Solaris Volume Manager lets you build several RAID level volumes, while HP-UX's LVM only does mirroring (again at extra cost, i.e. MirrorDisk/UX), or striping.
On the other hand SVM can only address these volumes through ugly meta device names.
In LVM you can create up to 255 volumes in a volume group.
Solaris only recently (from Solaris 9) added similar support to overcome BSD type slice restrictions through soft partitions.
A very nice feature that Solaris and Linux offer is the virtual /proc filesystem.
Unfortunately you don't find such on HP-UX.
On Linux the /proc is even more versatile because it is a kind of projection of the whole system, kernel, and processes.
On Solaris it's only the latter, but you have nice tools in /usr/proc/bin to query the processes for what you'd need extra tools like lsof on HP-UX.
Solaris also has many more ifconfig options than HP-UX.
What I like is the failover, where you can mimic a poor man's "cluster" at least for the NICs without extra SW cost.
As far as SW package management is concerned, the HP-UX SD tools (e.g. swinstall, swcopy, swpackage) are far more flexible than the pkg* commands.
However, this comes at the cost of greater complexity.
In general Solaris seems to be shipped with more "free" utilities.
And now that they announced that they will put most parts of Solaris 10 under OpenSource (i think except for some drivers),
I hope this will put HP a bit under pressure in this respect.
Let's see and wait...
Madness, thy name is system administration
Paul Cross_1
Respected Contributor

Re: HP/UX - Solaris command/system comparison

it's already mentioned above, but I'll second the vote for the UNIX rosetta stone.
http://bhami.com/rosetta.html
James Mohr
Valued Contributor

Re: HP/UX - Solaris command/system comparison

Once again, thanks to everyone for the information. I welcome any new information I can get!

I looked through the "Rosetta Stone" and my swiss cheese memory seems to recall having seen it before. I love the abilit to display just the OSes you want to see.

Nelson, thanks for the tips on where to start.

Ralph, thats for the details on those differences.

Regards,

jimmo
www.linux-tutorial.info
James Mohr
Valued Contributor

Re: HP/UX - Solaris command/system comparison

It just dawned on my that one of the things that I am missing is a location of various configuration files, directory structure and so on. Once again, I would be greatful for any information.

Regards,

jimmo
www.linux-tutorial.info
Peter Leddy_1
Esteemed Contributor

Re: HP/UX - Solaris command/system comparison

Hi Jimmo,

Try these

http://www.hp.com/workstations/risc/standard/operating/easy_hpux11/solaris/dir_mappings.html

http://www.hp.com/workstations/risc/standard/operating/easy_hpux11/solaris/task_guide.pdf

Also, if you think you could get your boss to pay for it HP run a course aimed at experienced admins who are new to HP-UX, here's the course details.

http://education.hp.com/datasheets/h5875s.pdf

HTH,

Peter
Peter Leddy_1
Esteemed Contributor

Re: HP/UX - Solaris command/system comparison

Jimmo,

Sorry I forgot to add this on my last post, you will find a whole range of documentation and information for HP-UX here that I'm sure you will use at some point in the future.

http://docs.hp.com/

HTH,

Peter
James Mohr
Valued Contributor

Re: HP/UX - Solaris command/system comparison

Is there anything like www.sunfreeware.com for HPUX software?
www.linux-tutorial.info
Peter Leddy_1
Esteemed Contributor

Re: HP/UX - Solaris command/system comparison

Hi Jimmo,

Try this

http://hpux.connect.org.uk/

HTH,

Peter
James Mohr
Valued Contributor

Re: HP/UX - Solaris command/system comparison

Wow! Thanks!
www.linux-tutorial.info
Ralph Grothe
Honored Contributor

Re: HP/UX - Solaris command/system comparison

As for your last question about locations of config files on HP-UX.

As with most other Unices, most of them reside beneath /etc.
But then, this goes especially for many add-on tools and SW packages, they can scatter widely over the whole directory tree,
depending very much on their installation targets.

Just try to run a find as root like
e.g.

# find / -type d -name etc

But there are a few places that a bit predominant.
Like I wrote in my lengthy last posting to this thread, a very important location is
/etc/rc.config.d
for almost every service that can be started or stopped through init.

Thereof especially

/etc/rc.config.d/netconf
for configuring your NICs, static routes, and hostname

/etc/rc.config.d/netdaemons
for daemons like inetd or xntpd

/etc/rc.config.d/nfsconf
for NFS (server and client as well as automounter)

/etc/rc.config.d/nddconf
for tuning your TCP/IP stack

HP-UX has adopted many ndd tunables from Solaris I suppose, so most of them should be familiar to you.
However the online help for each tunable is much better on HP-UX.
"ndd -h" prints you a list of all tunables,
and e.g. "ndd -h ip_ire_gw_probe" extended comment on the very tunable
(you don't find this luxury on Solaris)
Also referring to the NICs settings on Solaris is pretty arcane.
For instance only to check the link speed of NIC /dev/qfe2 you have to do something esoteric like

# ndd -set /dev/qfe instance 2
# ndd -get /dev/qfe instance
2
# ndd -get /dev/qfe link_speed
1

Then you need to know that 1 stands for 100 Mbps.
On HP-UX all that needs to be done to check NIC lan1 is

# lanadmin -x 1
Current Speed = 100 Full-Duplex Auto-Negotiation-ON



/etc/rc.config.d/hpconf
there you set such parameters for your NICs to make them reboot persistent.

An
# ioscan -knfClan
will show you the driver names your NICs use.

Just have look at all the files in
/etc/rc.config.d
Their names are pretty self-explanatory and designate to which service they belong.

If you want to install your own service, and provide it with an init script you could make use of a template file
/sbin/init.d/template
for that very purpose.

Unlike Solaris there is no subdir
/etc/inet
So most of the Internet config files you would find there on a Solaris box are simply in the parent directory /etc
(but you also have symlinks to /etc on Solaris)

Although as well as on Solaris there exists an /etc/default on HP-UX,
there's much less in that dir, and especially to allow or prevent root logins you need not edit some /etc/default/login
but have to extra provide an /etc/securetty
(so HP is a bit less secure per default in that respect).

Also the inetd has a poor man's tcp wrapper (HP offers an extra tcp wrapper for free download, should you need one) that is pretty concealed, if it exists at all
/var/adm/inetd.sec

NFS configuration deviates significantly from Solaris (although it was a give away from SUN once)
You put your exports (or shares in SUN lingo) in
/etc/exports
(it has an own manpage)
There's no /etc/dfs/dfstab
On Solaris the NFS server wouldn't even start by init until you have a valid entry in this file.

After you have installed a software depot (on HP-UX they are called depots and their file extension is usually .depot) you can browse the list of files by (e.g. MeasureWare Perf Tools) something like this

# swlist -l file B3701AA|grep -E '\.(cf|conf)'
B3701AA.MeasurementInt.ARM: /opt/perf/man/man4/ttd.conf.4
B3701AA.MeasurementInt.ARM: /opt/perf/newconfig/ttd.conf.sample
B3701AA.MeasureWare.MWA: /etc/rc.config.d/mwa
B3701AA.MeasureWare.MWA: /opt/perf/newconfig/etc/rc.config.d/mwa





All in all, probably the best advice to give is to carefully read the excellent manpages from HP-UX OS (that are way better than those from Solaris OS, I wouldn't even hesitate to say one of the best I've seen so far in the Unix world, especially for their example sections).
Pay attention to the FILES sections that usually list all the config files required by the program.
Many ubiquitious config files even provide their own manpages, for format details etc.
Madness, thy name is system administration
James Mohr
Valued Contributor

Re: HP/UX - Solaris command/system comparison

Thanks for all of that, Ralph!!!

Could you do me a favor and drop me a line at james.mohr@elaxy.com? I have a couple of offtopic questions for you. Thanks!

Gruà e aus Coburg!

jimmo
www.linux-tutorial.info