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!

Is a prtdiag for AIX on p series???

Status
Not open for further replies.

schu

MIS
Jun 21, 2001
188
HK
Is there a similar command to Solaris "prtdiag" for AIX.

NOT prtconf

I would like to see number of proccessors, speed, and type.
Memory config, Amount and how much RAM in each slot.

Number of internal drives and status.

LED status of hardware and drives

clean, simple,concise, non-interactive.....
 
Simple,

Just login to the HMC console (via ssh or physically)

and type lshwres

This will list the command functionality and from there you can view any thing.

examples:

To view the memory information for each lpar in the system:

lshwres -r mem -m managedsystem --level lpar

or if you want it for the whole managed system (this is the name of your server in the HMC)

lshwres -r mem -m managedsystem --level sys

To view the processors information for the lpars:

lshwres -r proc -m managedsystem --level lpar

To view the IO:

lshwres -r io -m managedsystem --level lpar

Yet an easier way to view those information is to log in to the HMC and view the properties for each lpar or the properties for the managed system and see their configuration.

I hope this is clear if not please don't hesitate to ask :)

Regards,
Khalid


 
Or get a copy of cfg2html

You'll have to join the yahoo group to get it


Versions for most *nix meaning you can have consistant documentation for all platforms.



Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
I was looking for something which can be run from a script and output to a file.
 
Thanks all for your replies. I have tried cfg2html and it is great and recommended, it does not provide the information I want and also a bit overkill. However, I will still use if as it collects valuable information for DR.

Anyway, maybe I should clarify:
I have managed to get system information such as CPU and RAM using:
prtconf (assume 7808MB means 8GB memory)
and disks by using
lspv hdiskx
to seen which disks are internal or external.

What I need is a small script to also see the status like the Solaris "prtdiag" sample information is as follows:

========================= Memory Configuration ===============================

Logical Logical Logical
MC Bank Bank Bank DIMM Interleave Interleaved
Brd ID num size Status Size Factor with
--- --- ---- ------ ----------- ------ ---------- -----------
A 0 0 512MB no_status 256MB 8-way 0
A 0 1 512MB no_status 256MB 8-way 0
A 0 2 512MB no_status 256MB 8-way 0
A 0 3 512MB no_status 256MB 8-way 0
A 2 0 512MB no_status 256MB 8-way 0
A 2 1 512MB no_status 256MB 8-way 0
A 2 2 512MB no_status 256MB 8-way 0
A 2 3 512MB no_status 256MB 8-way 0

*****So that I can seen how many slots I have left for expansion

System Temperatures (Celsius):
-------------------------------
Device Temperature Status
---------------------------------------
CPU0 46 OK
CPU2 50 OK
DBP0 17 OK
*****CPU temp and status

System LED Status:

LOCATOR FAULT POWER
------- ------- -------
[OFF] [OFF] [ ON]

*****LED lights

Disk Status:
------------
DISK 0: [NO_FAULT]
DISK 1: [NO_FAULT]

*****Internal disk status

=================================

Fan Status:
-----------

Fan Tray Fan RPM Status
----------- ---- ----- ----------
FAN_TRAY_0 CPU0_FAN 5555 [NO_FAULT]
FAN_TRAY_0 CPU1_FAN 3846 [NO_FAULT]
FAN_TRAY_0 CPU2_FAN 3896 [NO_FAULT]
FAN_TRAY_1 IO0_FAN 4000 [NO_FAULT]
FAN_TRAY_1 IO1_FAN 4054 [N

*****Fan status

Supply Status Fault Fan Fail Temp Fail
------ ------------ -------- --------- ---------
PS0 [NO_FAULT ] OFF OFF OFF
PS1 [NO_FAULT ] OFF OFF OFF

*****Power supply status

It is concise and allows me to check on each server in all our sites easily.

Is there a command or script for AIX to perform a similar function?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top