System Info Commands

por | 22 agosto, 2008

### SYSTEM INFO COMMANDS ###

Solaris version and platform information


[ssybl0:~]# cat /etc/release
Solaris 10 5/08 s10s_u5wos_10 SPARC
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 24 March 2008

showrev

[ssybl0:~]# showrev
Hostname: bl0
Hostid: 84avaa
Release: 5.10
Kernel architecture: sun4v
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain:
Kernel version: SunOS 5.10 Generic_127127-11

### Determine configured memory (includes physical memory)

1. prtconf

[ssybl0:~]# prtconf
System Configuration: Sun Microsystems sun4v
Memory size: 3968 Megabytes
System Peripherals (Software Nodes):

SUNW,Sun-Blade-T6300
scsi_vhci, instance #0
ib, instance #0 (driver not attached)
packages (driver not attached)
SUNW,builtin-drivers (driver not attached)
deblocker (driver not attached)
disk-label (driver not attached)
terminal-emulator (driver not attached)
dropins (driver not attached)
SUNW,asr (driver not attached)
kbd-translator (driver not attached)
obp-tftp (driver not attached)
ufs-file-system (driver not attached)
chosen (driver not attached)
openprom (driver not attached)
client-services (driver not attached)
options, instance #0
aliases (driver not attached)
memory (driver not attached)
virtual-memory (driver not attached)
virtual-devices, instance #0
flashprom (driver not attached)
channel-devices, instance #0
virtual-channel (driver not attached)
virtual-channel-client, instance #1
virtual-channel (driver not attached)
console, instance #0
rtc (driver not attached)
fma, instance #0
sunvts (driver not attached)
sunmc (driver not attached)
explorer (driver not attached)
led (driver not attached)
flashupdate (driver not attached)
ncp, instance #0
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
cpu (driver not attached)
pci, instance #0
pci, instance #0
pci, instance #1
network, instance #0
network, instance #1
pci, instance #2
pci, instance #3
pci, instance #4
SUNW,emlxs, instance #0
fp (driver not attached)
disk (driver not attached)
fp, instance #2
ssd, instance #0
ssd, instance #2
SUNW,emlxs, instance #1
fp (driver not attached)
disk (driver not attached)
fp, instance #0
ssd, instance #1
ebus, instance #0
serial, instance #0 (driver not attached)
pci, instance #1
pci, instance #5
pci, instance #6
pci, instance #0
usb, instance #0
usb, instance #1
usb, instance #0
pci, instance #7
scsi, instance #0
tape (driver not attached)
disk (driver not attached)
sd, instance #1
pci, instance #8
pci, instance #9
os-io (driver not attached)
iscsi, instance #0
pseudo, instance #0
[ssybl0:~]# prtconf | grep -i memory
Memory size: 3968 Megabytes
memory (driver not attached)
virtual-memory (driver not attached)


Determine installed processors ( includes physical/virtual processors )


[ssybl0:~]# psrinfo
0 on-line since 08/22/2008 19:19:05
1 on-line since 08/22/2008 19:19:07
2 on-line since 08/22/2008 19:19:07
3 on-line since 08/22/2008 19:19:07
4 on-line since 08/22/2008 19:19:07
5 on-line since 08/22/2008 19:19:07
6 on-line since 08/22/2008 19:19:07
7 on-line since 08/22/2008 19:19:07
8 on-line since 08/22/2008 19:19:07
9 on-line since 08/22/2008 19:19:07
10 on-line since 08/22/2008 19:19:07
11 on-line since 08/22/2008 19:19:07
12 on-line since 08/22/2008 19:19:07
13 on-line since 08/22/2008 19:19:07
14 on-line since 08/22/2008 19:19:07
15 on-line since 08/22/2008 19:19:07
16 on-line since 08/22/2008 19:19:07
17 on-line since 08/22/2008 19:19:07
18 on-line since 08/22/2008 19:19:07
19 on-line since 08/22/2008 19:19:07
20 on-line since 08/22/2008 19:19:07
21 on-line since 08/22/2008 19:19:07
22 on-line since 08/22/2008 19:19:07
23 on-line since 08/22/2008 19:19:07

Physical Procesors:

prtinfo -p

virtual processors

prtinfo -pv

[ssybl0:~]# psrinfo -pv
The physical processor has 24 virtual processors (0-23)
UltraSPARC-T1 (cpuid 0 clock 1000 MHz)


isainfo – describe instruction set architectures

[ssybl0:~]# isainfo
sparcv9 sparc
[ssybl0:~]# isainfo -bv
64-bit sparcv9 applications
asi_blk_init

ssybl2:~]$ isainfo -bv
64-bit amd64 applications
cx16 sse3 sse2 sse fxsr amd_3dnowx amd_3dnow amd_mmx mmx cmov amd_sysc
cx8 tsc fpu

[ssybl0:~]# isalist
sparcv9 sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc sparcv9+vis sparcv9+vis2 sparcv8plus+vis sparcv8plus+vis2

[ssybl2:~]$ isalist
amd64 pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

#### Determine and change system timestamp ###

1. date – to reveal current timestamp
2. date ‘+DateTime: %m.%d.%Y @ %H:%M.%S’
3. date mmddHHMMccyy
4. date 050817252006