HP-UX system information


 
Thread Tools Search this Thread
Operating Systems HP-UX HP-UX system information
# 8  
Old 08-13-2008
Quote:
Originally Posted by LinuxRacr
How about the "machinfo" command? If you you have an 11.23 machine, that command is very valuable.

OOHHHhh awesome, I didnt know about that one...

To bad 11.11 doesnt have the same thing... Smilie
# 9  
Old 08-29-2008
Quote:
Originally Posted by LinuxRacr
How about the "machinfo" command? If you you have an 11.23 machine, that command is very valuable.
I don't think this exists in 8, 9 & 10.

I'm looking at writing a script that collects the hardware inventory, services running, host OS information then the software packages and files installed.

At the moment there is nothing like this, unless I use a commercial product like Peregrine ED, which I don't have several $million to spend.

So far, I have this..

Quote:
LOG: ./administrator-vmws
LAST_UPDATED: 2008-08-27 17.32
UPTIME: 50 days, 3:30
HOST: administrator-vmws
HOSTID: 007f0101
OS: Linux
KERNEL: 2.6.22-15-generic
LSB: DISTRIB_ID=Ubuntu
ARCH: i686
HARDWARE: PowerEdge SC430
LINKSPEED: eth0: negotiated 100baseTx-FD flow-control, link ok
BIOS: Dell Inc. A02
SERIAL#: HZCR42J
MACADDRESS: 00:13:72:08:57:5C
INTERFACES: eth0 vmnet8
IP_ADDRESS: 192.168.1.239 192.168.241.1
CPU: 2 x 2992
MEM: 3895168 kB
GRAPHICS:
DISK: sda Vendor: HL-DT-ST Model: CD-RW GCE-8483B Rev: B105 199148544
DISK: sdb Vendor: ATA Model: Maxtor 6Y200P0 Rev: YAR4 72613056
DF: /dev/sda1 Size:180G Avail:61G Mountpoint:/
AFS: NOT INSTALLED/RUNNING
CC_VERSION: NOT INSTALLED
Does anybody know how to list packages installed, then the files used in those packages?

Last edited by Simbad; 08-29-2008 at 09:41 AM..
# 10  
Old 08-29-2008
Im surprised no one mentionned print_manifest
Do a man print_manifest... (started with 10.20 I think)
# 11  
Old 08-30-2008
Quote:
Originally Posted by vbe
Im surprised no one mentionned print_manifest
Do a man print_manifest... (started with 10.20 I think)
Great, thanks, I'll look at this when I get access.

What I'd really like to know is how to list packages and the files they own in HP/UX. Then I can incorporate the inventory with the other platforms I currently process.

Under Linux dpkg -l lists all packages and versions installed. Then dpkg -L lists which files and where the files are installed. I guess I'll have to write something different for each version of HP/UX.
# 12  
Old 08-30-2008
this command will list what you want...
Now about packages in HPUX there is nothing called of the sort...
You would have products or filesets and both can be listed with swlist
e.g. swlist -l product or swlist -l fileset
Do a ma swlist


All the best
# 13  
Old 08-30-2008
If you want to get all the files listed that belong to a fileset then use the
-l file option of swlist
e.g.
Code:
$ /usr/sbin/swlist -l file OpenSSL

HP-UX's SD devides SW into bundles (which only HP can package), products, subproducts, filesets, files.
With the swpackage command you can create SW depots if you provide
a Package Specification File.
Alternatively you can look up the contents of installed SW packages in the filesystem
beneath /var/adm/sw/<SW_SOFTWARE_SPEC>/pfiles/INDEX
There are also the sizes and checksums stored which an swverify will look up.

Read more here:
http://docs.hp.com/en/B2355-90129/swlist.1M.html
http://docs.hp.com/en/B2355-90131/swpackage.4.html
http://docs.hp.com/en/B2355-90682/sd.4.html

You can obtain a lot of system information if you query the Support Tools Manager which is part of the OnlineDiag SW package.
(try: $ /usr/sbin/swlist -l fileset OnlineDiag )
For instance you can say (which will also list the Serial No. that you need to file support cases)
Code:
$ echo "sc product system;info;wait;il" | /usr/sbin/cstm | more

If you want to know how much physical RAM your box has just substitute system above by memory.

Last edited by buffoonix; 08-30-2008 at 06:49 PM..
# 14  
Old 08-31-2008
VBE, Buffoonix,

A big thanks, this is precisely what I was after. For the sake of executive summary reports I have to call them Applications/Packages with versions. As I become more discreet I suppose I can then call them Products and filesets for HP/UX.

Next is AIX & AS400 Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX System Information

Hi all, I have googled around quite a bit and tried many different commands to get system information about my AIX 5.3 box but none of the commands I've used have given me quite what I'm looking for. I am interested in finding out the model of the motherboard, and amount of available RAM, the... (2 Replies)
Discussion started by: ThePistonDoctor
2 Replies

2. BSD

How to get the FreeBsd system information?

Hi, How to get the FreeBsd system hardware and software basic information using terminal command with guest login? Here below i have specified some of the information i need. Please have a look at this and guide me. OS Name: OS Version : OS Manufacturer: OS... (2 Replies)
Discussion started by: forumguest
2 Replies

3. Solaris

How to get the Solaris system information?

Hi, How to get the Solaris system hardware and software basic information using terminal command with guest login? Here below i have specified some of the information i need. Please have a look at this and guide me. OS Name: OS Version : OS Manufacturer: OS Configuration: ... (15 Replies)
Discussion started by: forumguest
15 Replies

4. Infrastructure Monitoring

How to get the Linux system information?

Hi, How to get the Linux system hardware and software basic information using terminal command ? Here below i have specified some of the information i need. Please have a look at this and guide me. OS Name: OS Version : OS Manufacturer: OS Configuration: OS Build Type:... (6 Replies)
Discussion started by: forumguest
6 Replies

5. AIX

How to get the AIX system information?

Hi, How to get the AIX system hardware and software basic information using terminal command with guest login? Here below i have specified some of the information i need. Please have a look at this and guide me. OS Name: OS Version : OS Manufacturer: OS Configuration: ... (4 Replies)
Discussion started by: forumguest
4 Replies

6. Shell Programming and Scripting

System Information Variable Help

Hey, I am after the commands to get the following information for my Unix system: default visual editor (i dont even know where to start with this one) default window manager (this one either, no idea) total quota (just the size, none of the other data. I've narrowed it down to quota -sv)... (1 Reply)
Discussion started by: bonjour
1 Replies

7. Shell Programming and Scripting

system general information

hi I am new to this forum. hope to get help from u all. how can i write these by using shell programming? 1. The name of the machine and the date/time at which the report was produced. 2. Licensing information such as the operating system revision level and license restrictions in terms of... (1 Reply)
Discussion started by: nokia1100
1 Replies

8. HP-UX

System Information

How do I get the system information on a HP UNIX server. details like CPU speed, number of processors etc. (4 Replies)
Discussion started by: Olamide
4 Replies

9. UNIX for Dummies Questions & Answers

AIX System information

Hi All, I am new to Unix and am working on AIX ( rs6000 ). I am looking for the system info of the unix box like 1. Number of CPUs 2. CPU speed 3. RAM size Your help is much appreciated Thanks rao. (6 Replies)
Discussion started by: rao
6 Replies

10. UNIX for Dummies Questions & Answers

Please help me find out system information

I'm just getting started with unix and would like to know 1) how to tell how big the harddrive is 2) how to tell if there are multiple harddrive installed on the machine 3) a relitavely easy way to tell what programs are installed on the machine. I'm using Sun OS 5.6 Thanks (3 Replies)
Discussion started by: ViperD
3 Replies
Login or Register to Ask a Question