Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System info in a snap

Status
Not open for further replies.

gabryael

Technical User
Apr 11, 2002
5
US
I'm putting together a script to gather all of our systems info in a simple, easy to read format for documentation purposes. One item that I still have not been able to locate is a command that will list the number of processors that a given system has. Any ideas? Thanks.
 
sar -M will tell you the number of CPUs. You'd have to script around the output to get an actual count.

Maybe something like:

CPU_COUNT=$(sar -M 1 | egrep -v "HP|usr|system" | awk '{print $2}' | wc -w)
 
Hi, you could try

#ioscan -kfn | grep processor | wc -l

or maybe even ioscan with the C option (Class) for processor
i.e #ioscan -kfnC processor | wc -l

(sorry - no system to test at the moment)

Regards
Clare
 
Hi,
This is a little off-track. You can also use /opt/ignite/bin/print_manifest if you have ignite-UX installed. It gives a wealth of information about the sytem. This is a sample output (sorry! I am truncating some data)-

#/opt/ignite/bin/print_manifest

System Information

Your Hewlett-Packard 9000 computer has software installed and
configured as follows.

The system was created xxxxxxxxxxx, xxxxxxxxxxx.
It was created with Ignite-UX revision B.3.4.115.

-------------------------------------------------------------
NOTE: You should retain this information for future reference.
-------------------------------------------------------------
Serial number: xxxxxxxxxx
Order number: xxxxxxxxxxxxxxx


System Hardware

Model: 9000/800/L1000-5X
Main Memory: 2048 MB
Processors: 2
OS mode: 64 bit
LAN hardware ID: 0x00xxxxxxxxxx
LAN hardware ID: 0x00xxxxxxxxxx
LAN hardware ID: 0x00xxxxxxxxxx
Software ID: xxxxxxxxx
Keyboard Language: Not_Applicable

Storage devices HW Path Interface
SEAGATE ST336706LW 35003 Mb 0/0/1/0.0.0 SCSI C896 Fast Wide LVD
HP DVD-ROM 305 0/0/2/1.2.0 SCSI C87x Ultra Wide Single-Ended
HP 36.4GMAN3367MC 34732 Mb 0/0/2/0.2.0 SCSI C87x Ultra Wide Single-Ended
HP 36.4GMAN3367MC 34732 Mb 0/0/1/1.2.0 SCSI C896 Ultra Wide Single-Ended
HP Ultrium 1-SCSI 0/0/1/0.3.0 SCSI C896 Fast Wide LVD

I/O Interfaces
Class H/W Path Driver Description
lan 0/0/0/0 btlan HP PCI 10/100Base-TX Core
ext_bus 0/0/1/0 c720 SCSI C896 Fast Wide LVD
ext_bus 0/0/1/1 c720 SCSI C896 Ultra Wide Single-Ended
ext_bus 0/0/2/0 c720 SCSI C87x Ultra Wide Single-Ended
ext_bus 0/0/2/1 c720 SCSI C87x Ultra Wide Single-Ended
tty 0/0/4/1 asio0 PCI Serial (103c1048)
lan 0/4/0/0 gelan HP A4926A PCI 1000Base-SX Adapter
lan 0/7/0/0 gelan HP A4926A PCI 1000Base-SX Adapter


Installed Software

Your system was installed with HP-UX version B.11.11.

Your system has the following software products installed and
configured on the system disk drive(s).

Product Revision Description
B2491BA B.11.11 MirrorDisk/UX
B3701AA C.03.35.00 HP GlancePlus/UX Pak for s800 11i
B3901BA B.11.11.03 HP C/ANSI C Developer's Bundle for HP-UX 11.i (S800)
B3913CB B.11.01.20 HP C++ Compiler (S800)
B3929CA B.11.11 HP OnLineJFS
B5725AA B.3.4.115 HP-UX Installation Utilities (Ignite-UX)
B6960BA A.04.10 HP OpenView OmniBack II
B8110AA 1.2.2.08B.02 Java 2 SDK for HP-UX (700/800), PA1.1 + PA2.0 Add On
B8111AA 1.2.2.08B.02 Java 2 RTE for HP-UX (700/800), PA1.1 + PA2.0 Add On
B9788AA 1.3.0.01.02 Java 2 SDK 1.3 for HP-UX (700/800), PA1.1 + PA2.0 Add On
B9789AA 1.3.0.01.02 Java 2 RTE 1.3 for HP-UX (700/800), PA1.1 + PA2.0 Add On
BUNDLE11i B.11.11.0102.2 Required Patch Bundle for HP-UX 11i, February 2001
CDE-English B.11.11 English CDE Environment
FDDI-00 B.11.11.02 PCI FDDI;Supptd HW=A3739A/A3739B;SW=J3626AA
FibrChanl-00 B.11.11.06 PCI/HSC FibreChannel;Supptd HW=A6684A,A6685A,A5158A
GOLDBASE11i B.11.11.0106.9 Gold Base Patches for HP-UX 11i, June 2001
GigEther-00 B.11.11.14 PCI/HSC GigEther;Supptd HW=A4926A/A4929A/A4924A/A4925A;SW=J1642AA
HPUX11i-OE B.11.11.0109 HP-UX Internet Operating Environment Component
HPUXBase64 B.11.11 HP-UX 64-bit Base OS
HPUXBaseAux B.11.11.0109 HP-UX Base OS Auxiliary
HWEnable11i B.11.11.0109.6 Hardware Enablement Patches for HP-UX 11i, September 2001
J4189-11001B E.10.18 Hewlett-Packard JetDirect Printer Installer for Unix
OnlineDiag B.11.11.04.09 HPUX 11.11 Support Tools Bundle, Sep 2001
RAID-00 B.11.11.01 PCI RAID; Supptd HW=A5856A
perl B.5.6.1.C Perl Programming Language
PHCO_24402 1.0 libc cumulative header file patch
PHCO_24777 1.0 mountall cumulative patch.
PHCO_25452 1.0 libc cumulative patch
PHKL_25218 1.0 PDC Call retry,PDC_SCSI_PARMS,iCOD hang fix
PHNE_23465 1.0 100BT unified driver cumulative patch
PHNE_24035 1.0 ONC/NFS General Release/Performance Patch
unzip 5.42 unzip


LVM File System Configuration

This system is configured with Logical Volume Manager (LVM) file systems.
Refer to the File System layout section for information on the LVM layout.


JFS File System Configuration

This system is configured with a Journaled File System (referred to
as either JFS or VXFS). Refer to the File System layout section for
information on JFS/VXFS file systems.


Disk layout

LVM disk Device file HW Addr size vol. grp
HP 36.4GMAN3367MC /dev/dsk/c1t2d0 0/0/1/1.2.0 34732 /dev/vg00
HP 36.4GMAN3367MC /dev/dsk/c2t2d0 0/0/2/0.2.0 34732 /dev/vg01
SEAGATE ST336706LW /dev/dsk/c0t0d0 0/0/1/0.0.0 35003 /dev/vg02


File System layout

LVM Device file mount point size fs type
/dev/vg00:
/dev/vg00/lvol1 /stand 304 hfs
/dev/vg00/lvol2 swap 4096
/dev/vg00/lvol3 / 200 vxfs
/dev/vg00/lvol4 /tmp 1024 vxfs
/dev/vg00/lvol5 /home 504 vxfs
/dev/vg00/lvol6 /opt 2544 vxfs
/dev/vg00/lvol7 /usr 1544 vxfs
/dev/vg00/lvol10 /d00 19000 vxfs
/dev/vg00/lvol8 /var 2048 vxfs
/dev/vg00 unallocated 3456
/dev/vg01:
/dev/vg01/lvol1 /d01 30000 vxfs
/dev/vg01 unallocated 4724
/dev/vg02:
/dev/vg02/lvol1 /e00 30000 vxfs
/dev/vg02 unallocated 4996


Swap configuration

type size priority device/location
dev 4096 1 /dev/vg00/lvol2


Kernel Configuration

The following drivers or parameters are configured into your system's
kernel. After installing HP-UX, use the sam(1m) command to configure
the following items into the kernel:
STRMSGSZ 65535
dbc_max_pct 10
dnlc_hash_locks 512
maxdsiz_64bit 0X40000000
maxfiles 512
maxssiz 0X800000
maxssiz_64bit 0X800000
maxswapchunks 2048
maxtsiz 0X4000000
maxtsiz_64bit 0X40000000
maxuprc 400
maxusers 200
ncsize 14940
nfile 28024
nflocks 1000
nproc 2420
nstrpty 60
semmni 70
semmns 1000
shmmax 1073741824


System Information

The following parameters were set on the configured target:
hostname: xxxxx
IP address: xxx.xxx.xxx.xxx
subnet mask: xxx.xxx.xxx.xxx
gateway IP address: xxx.xxx.xxx.xxx
time zone: xxxxxxx
DNS domain name: xxxx.com
NIS domain name: xxxx.com

-Hope it helps.
( PS: I really need to change "Programmer" shown against my name. Anybody knows how to do it? )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top