status of CPUs SOlaris

por | 22 agosto, 2008

If you want separate stats for each processor, «mpstat 5» shows cpu usage and idle etc.

System Administration Commands mpstat(1M)

NAME
mpstat – report per-processor or per-processor-set statis-
tics

-bash-3.00# mpstat
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 17 0 110 234 131 11 0 1 2 0 32 0 1 0 99
1 1 0 17 7 4 6 0 0 0 0 8 0 1 0 99
2 0 0 3 4 2 2 0 0 0 0 4 0 0 0 100
3 0 0 0 1 0 1 0 0 0 0 1 0 0 0 100
4 13 0 50 10 0 20 0 0 1 0 32 0 0 0 100
5 1 0 3 3 0 4 0 0 0 0 7 0 0 0 100
6 0 0 0 1 0 0 0 0 0 0 1 0 0 0 100
7 0 0 0 1 0 0 0 0 0 0 0 0 0 0 100
8 10 0 44 16 0 33 0 0 1 0 44 0 0 0 100
9 1 0 3 4 0 6 0 0 0 0 6 0 0 0 100
10 0 0 0 1 0 1 0 0 0 0 1 0 0 0 100
11 0 0 0 1 0 0 0 0 0 0 1 0 0 0 100
12 10 0 39 7 1 12 0 0 1 0 25 0 0 0 100
13 1 0 2 5 0 10 0 0 0 0 5 0 0 0 100
14 0 0 0 2 0 2 0 0 0 0 1 0 0 0 100
15 0 0 0 1 0 0 0 0 0 0 0 0 0 0 100
16 10 0 44 18 0 37 0 0 1 0 24 0 0 0 100
17 1 0 1 2 0 2 0 0 0 0 3 0 0 0 100
18 0 0 0 1 0 0 0 0 0 0 1 0 0 0 100
19 0 0 0 1 0 0 0 0 0 0 0 0 0 0 100
20 10 0 47 20 0 41 0 0 1 0 32 0 0 0 100
21 1 0 1 2 0 2 0 0 0 0 4 0 0 0 100
22 0 0 0 1 0 0 0 0 0 0 1 0 0 0 100
23 0 0 0 1 0 0 0 0 0 0 0 0 0 0 100

System Administration Commands psrinfo(1M)

NAME
psrinfo – displays information about processors

SYNOPSIS
psrinfo [-p] [-v] [processor_id…]

psrinfo [-p] -s processor_id

DESCRIPTION
psrinfo displays information about processors. Each physical
processor may support multiple virtual processors. Each vir-
tual processor is an entity with its own interrupt ID, capa-
ble of executing independent threads.

Without the processor_id operand, psrinfo displays one line
for each configured processor, displaying whether it is on-
line, non-interruptible (designated by no-intr), spare,
off-line, faulted or powered off, and when that status last
changed. Use the processor_id operand to display information
about a specific processor. See OPERANDS.

-bash-3.00# psrinfo
0 on-line since 08/21/2008 16:18:36
1 on-line since 08/21/2008 16:18:38
2 on-line since 08/21/2008 16:18:38
3 on-line since 08/21/2008 16:18:38
4 on-line since 08/21/2008 16:18:38
5 on-line since 08/21/2008 16:18:38
6 on-line since 08/21/2008 16:18:38
7 on-line since 08/21/2008 16:18:38
8 on-line since 08/21/2008 16:18:38
9 on-line since 08/21/2008 16:18:38
10 on-line since 08/21/2008 16:18:38
11 on-line since 08/21/2008 16:18:38
12 on-line since 08/21/2008 16:18:38
13 on-line since 08/21/2008 16:18:38
14 on-line since 08/21/2008 16:18:38
15 on-line since 08/21/2008 16:18:38
16 on-line since 08/21/2008 16:18:38
17 on-line since 08/21/2008 16:18:38
18 on-line since 08/21/2008 16:18:38
19 on-line since 08/21/2008 16:18:38
20 on-line since 08/21/2008 16:18:38
21 on-line since 08/21/2008 16:18:38
22 on-line since 08/21/2008 16:18:38
23 on-line since 08/21/2008 16:18:38