wesly_chen
asked on
commands to get system information for AIX
Dear experts,
I would like to know as a regular unix user, how what commands can get the information of AIX 4.x and 5.x system
CPU clock speed (in MHz or GHz),
memory size (in MB or GB),
swap size (in MB or GB),
hard disk volume (in GB, not filesystem size)
System model (Such as J6700)
System Serial number (if possible)
I want to put those commands into a script so end users can run it to get the information for the AIX they are login.
As root, I can get those information and I would like to know the commands for regular user.
Most important information is the CPU speed, physical memory size, swap size, and disk volume.
Thanks in advance.
I would like to know as a regular unix user, how what commands can get the information of AIX 4.x and 5.x system
CPU clock speed (in MHz or GHz),
memory size (in MB or GB),
swap size (in MB or GB),
hard disk volume (in GB, not filesystem size)
System model (Such as J6700)
System Serial number (if possible)
I want to put those commands into a script so end users can run it to get the information for the AIX they are login.
As root, I can get those information and I would like to know the commands for regular user.
Most important information is the CPU speed, physical memory size, swap size, and disk volume.
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Indeed AIX 4.3 is rather old... Maybe this command:
lsattr -El proc0
where 0 is the number of your processor
lsattr -El proc0
where 0 is the number of your processor
ASKER
> oslevel
4.3.3.0
> lsattr -El proc0
state enable Processor state False
type PowerPC_POWER3 Processor type False
It shoe the CPU type, not the CPU clock speed.
> prtconf | grep "Processor Type"
Processor Type: PowerPC_POWER3
4.3.3.0
> lsattr -El proc0
state enable Processor state False
type PowerPC_POWER3 Processor type False
It shoe the CPU type, not the CPU clock speed.
> prtconf | grep "Processor Type"
Processor Type: PowerPC_POWER3
1) POSIX standard OS Version
uname -a
2) AIX version and patchlevel
oslevel -r
3) All devices
lscfg -vp
> Any command can show CPU speed for AIX 4.3.x
For 604e-s found from feature codes, printed on CPU board
uname -a
2) AIX version and patchlevel
oslevel -r
3) All devices
lscfg -vp
> Any command can show CPU speed for AIX 4.3.x
For 604e-s found from feature codes, printed on CPU board
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
the script works.
And
lscfg -vp
also provide some more useful information.
And
lscfg -vp
also provide some more useful information.
ASKER
Thanks very much.
The summary for my question:
prtconf : memory size, swap size, model, number of CPU, CPU clock (AIX 5.x above)
model : Model number
--For CPU clock spped --
#!/bin/ksh
typeset -i16 CPUSPEED=16#`lscfg -vp | grep "PS=" | tail -1 | cut -f2 -d'=' | cut -f1 -d','`
typeset -i MHZ=$CPUSPEED/1000000
echo $MHZ
---
lscfg -vp : for serial number and hardware configuration
Those IBM RS6000 machines we have are loaned from IBM as partnership.
They will upgrade them to AIX 5.3.x soon.
The summary for my question:
prtconf : memory size, swap size, model, number of CPU, CPU clock (AIX 5.x above)
model : Model number
--For CPU clock spped --
#!/bin/ksh
typeset -i16 CPUSPEED=16#`lscfg -vp | grep "PS=" | tail -1 | cut -f2 -d'=' | cut -f1 -d','`
typeset -i MHZ=$CPUSPEED/1000000
echo $MHZ
---
lscfg -vp : for serial number and hardware configuration
Those IBM RS6000 machines we have are loaned from IBM as partnership.
They will upgrade them to AIX 5.3.x soon.
ASKER
"prtconf" doesn't show "Processor Clock Speed".
Any command can show CPU speed for AIX 4.3.x