Solaris 10′da Sistem Donanım Bilgilerinin Elde Edilmesi

Filed in Genel | Gezegen | Solaris Leave a comment

Solaris kurulu bir sistemde istediğim donanım bilgilerini gösterebilecek tek bir komut aradım ve bulamadım. Bu sebepten dolayı birkaç komut kombinasyonu ile istediğim bilgilere ulaştım. Eğer Solaris 10 için elde ettiğim bilgileri gösterebilecek tek bir komut biliyorsanız lütfen beni de aydınlatınız.

Test olarak Solaris kurulu bir server dan istediğimiz bilgileri elde edelim;

  • uname bilgisi

#uname -a
SunOS hd_info 5.10 Generic_141445-09 i86pc i386 i86pc

Komut çıktısını incelersek;

SunOS 5.10 = Solaris 10 işletim sistemine sahibiz.

hd_info = makinemizin hostname idir.

i86pc = x86 platformu desteklidir.

i386 = işlemci tipimiz

  • işletim sistemi tam sürüm bilgisi

#cat /etc/release
Solaris 10 10/09 s10x_u8wos_08a X86
Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
Use is subject to license terms.
Assembled 16 September 2009
  • server mimari bilgisi (32 veya 64 bit)

#/bin/isainfo -kv
64-bit amd64 kernel modules

server 64 bit destekli amd64 kernel driver modüllerine sahiptir.

  • sistem genel ve slot bilgileri

#prtdiag
System Configuration: SUN MICROSYSTEMS SUN FIRE X4170 SERVER
BIOS Configuration: American Megatrends Inc. 07060215 06/19/2009
BMC Configuration: IPMI 1.5 (KCS: Keyboard Controller Style)
==== Processor Sockets ====================================
Version                          Location Tag
-------------------------------- --------------------------
Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz CPU 1
Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz CPU 2
==== Memory Device Sockets ================================
Type    Status Set Device Locator      Bank Locator
------- ------ --- ------------------- --------------------
other   empty  0   D2                  BANK2
other   empty  0   D1                  BANK1
other   empty  0   D0                  BANK0
other   in use 0   D5                  BANK5
other   empty  0   D4                  BANK4
other   empty  0   D3                  BANK3
other   in use 0   D8                  BANK8
other   empty  0   D7                  BANK7
other   empty  0   D6                  BANK6
other   empty  0   D2                  BANK2
other   empty  0   D1                  BANK1
other   empty  0   D0                  BANK0
other   empty  0   D5                  BANK5
other   empty  0   D4                  BANK4
other   empty  0   D3                  BANK3
other   in use 0   D8                  BANK8
other   empty  0   D7                  BANK7
other   empty  0   D6                  BANK6
FLASH   in use 0
==== On-Board Devices =====================================
 Zoar 2x GbE.
 Zoar 2x GbE.
 Zoar 2x GbE.
 Zoar 2x GbE.
==== Upgradeable Slots ====================================
ID  Status    Type             Description
--- --------- ---------------- ----------------------------
0   in use    PCI Express      PCIE0
1   in use    PCI Express      PCIE1
2   in use    PCI Express      PCIE2

SUN FIRE X4170 SERVER = Sun Server ın hangi seriden olduğunun bilgisi

Intel(R) Xeon(R) CPU  X5570  @ 2.93GHz CPU 1 = işlemci bilgisi

18 adet memory slot mevcut ve bunlardan 3 tanesi kullanımda. Yani bu 3 slota RAM takılmış. Birazdan serverda ne kadar RAM olduğunu inceleyeceğiz.

  • RAM miktarı saptanması

# /usr/sbin/prtconf | grep "Memory size"
Memory size: 12280 Megabytes

Komut çıktısından da anlayacağımız üzere serverda toplam 12 GB kapasitede RAM bulunmaktadır.

  • Harddisk bilgisi

# /usr/bin/iostat -En
c1t0d0           Soft Errors: 12 Hard Errors: 0 Transport Errors: 0
Vendor: TEAC     Product: DV-W28SS-R       Revision: 1.0C Serial No:
Size: 2.71GB <2708930560 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 12 Predictive Failure Analysis: 0
c0t0d0           Soft Errors: 2 Hard Errors: 0 Transport Errors: 0
Vendor: Sun      Product: STK RAID INT     Revision: V1.0 Serial No:
Size: 293.38GB <293381078528 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 2 Predictive Failure Analysis: 0
c2t600A0B80005BD3C8000006534CA9C63Ed0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SUN      Product: LCSM100_F        Revision: 0735 Serial No:
Size: 110.25GB <110254620160 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c2t600A0B80005BD3C8000006514CA9C606d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SUN      Product: LCSM100_F        Revision: 0735 Serial No:
Size: 109.52GB <109521665536 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c2t600A0B80005BD168000006254CA9C74Cd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SUN      Product: LCSM100_F        Revision: 0735 Serial No:
Size: 109.52GB <109521665536 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c2t600A0B80005BD3C80000064C4CA9C4F1d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SUN      Product: LCSM100_F        Revision: 0735 Serial No:
Size: 109.52GB <109521665536 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

serverda 4 adet yaklaşık 110GB boyutunda storage partition ı bulunmakta. Ayrıca 300 GB lık bir disk te mevcut.

  • Detaylı donanım bilgisi;

Linux teki dmidecode komutuna benzer şekilde Solaris te smbios komutu mevcuttur. BIOS taki sistem bilgisini detaylı olarak ekrana basar.

Verilen bilgilerde detaylı BIOS bilgisi, PCI soket bilgileri, RAM soket bilgileri, Server ürün isim bilgileri, CPU ve cache bilgileri,  Port bilgileri bulunmaktadır.

# smbios
ID    SIZE TYPE
0     68   SMB_TYPE_BIOS (BIOS information)
 Vendor: American Megatrends Inc.
 Version String: 07060215
 Release Date: 06/19/2009
 Address Segment: 0xf000
 ROM Size: 1048576 bytes
 Image Size: 65536 bytes
 Characteristics: 0x1778bda90
 SMB_BIOSFL_ISA (ISA is supported)
 SMB_BIOSFL_PCI (PCI is supported)
 SMB_BIOSFL_PLUGNPLAY (Plug and Play is supported)
 SMB_BIOSFL_FLASH (BIOS is Flash Upgradeable)
 SMB_BIOSFL_SHADOW (BIOS shadowing is allowed)
 SMB_BIOSFL_ESCD (ESCD support is available)
 SMB_BIOSFL_CDBOOT (Boot from CD is supported)
 SMB_BIOSFL_SELBOOT (Selectable Boot supported)
 SMB_BIOSFL_ROMSOCK (BIOS ROM is socketed)
 SMB_BIOSFL_EDD (EDD Spec is supported)
 SMB_BIOSFL_525_12M (int 0x13 5.25" 1.2M floppy)
 SMB_BIOSFL_35_720K (int 0x13 3.5" 720K floppy)
 SMB_BIOSFL_35_288M (int 0x13 3.5" 2.88M floppy)
 SMB_BIOSFL_I5_PRINT (int 0x5 print screen svcs)
 SMB_BIOSFL_I14_SER (int 0x14 serial svcs)
 SMB_BIOSFL_I17_PRINTER (int 0x17 printer svcs)
 SMB_BIOSFL_I10_CGA (int 0x10 CGA svcs)
 0x100000000
 Characteristics Extension Byte 1: 0x33
 SMB_BIOSXB1_ACPI (ACPI is supported)
 SMB_BIOSXB1_USBL (USB legacy is supported)
 SMB_BIOSXB1_LS120 (LS-120 boot is supported)
 SMB_BIOSXB1_ATZIP (ATAPI ZIP drive boot is supported)
 Characteristics Extension Byte 2: 0x5
 SMB_BIOSXB2_BBOOT (BIOS Boot Specification supported)
 SMB_BIOSXB2_ETCDIST (Enable Targeted Content Distrib.)
 Version Number: 0.0
 Embedded Ctlr Firmware Version Number: 0.0
ID    SIZE TYPE
1     167  SMB_TYPE_SYSTEM (system information)
 Manufacturer: SUN MICROSYSTEMS
 Product: SUN FIRE X4170 SERVER
 Version:
.
.
.

Bu komutlar sonucunda serverın tüm donanım bilgilerine erişmiş olduk. Umarım işinizi görmüştür.

Share
PDF Creator    Send article as PDF   

, ,

Solaris’te .iso DVD mount ederek paket yükleme

Filed in Genel | Gezegen | Solaris Leave a comment

Uzaklarda biryerde Solaris 10 işletim sistemine sahip bir sunucunuz var. Sistem üzerinde çalışmaya başlarken önünüze bir engel çıktı. Yapacağınız işlemlerle alakalı birçok paket yüklemeniz gerekiyor. Araştırıyorsunuz, google hazretlerine soruyorsunuz ama bir türlü istediğiniz paketleri nasıl yükleyeceğinizi bulamadınız. Bir de buna ilaveten Solaris te FreeBSD veya Linux gibi paket depoları olmadığını sadece apt-get install gibi bir komutla paket yükleyemeyeceğinizi de öğrenince tümden hayalleriniz kırıldı. Fakat çok ta üzülmenize gerek yok. Eskiden program nasıl yüklenirdi? CD yi takardık CD-ROMa, yükle derdik ve yüklenirdi. Şimdi de bu yöntemi kullanacağız. Nasıl olacak adım adım gösterelim;

  • Solaris DVD iso sunun sunucuya yüklenmesi
  • .iso dosyasının mount edilmesi
  • paketin yüklenmesi

şimdi bu adımları açarak işimizi görelim.

Solaris DVD iso sunun sunucuya yüklenmesi

  • ilk önce solarisin DVD iso sunu download edelim.

wget komutu ile bu download işlemini direk olarak Solaris sunucu üzerine yapabilirsiniz.

/usr/sfw/bin/wget http://download.oracle.com/auth/otn/solaris/10/sol-10-u9-ga-x86-dvd-iso.zip

NOT: Yukarıdaki download işlemi için geçerli ve indirilebilen bir solaris linki bulmalısınız. verilen link bir örnektir çalışmayabilir.

Gerçi bende indirilmişi var. Daha önceden indirmiş olduğum Solaris iso sunu windows kullanıyorsanız WinSCP veya Filezilla ile, Linux kullanıyorsanız scp komutu ile sunucuya aktaralım;

scp sol-10-u9-ga-x86-dvd-iso.zip root@xxx.xxx.xxx.xxx:/opt/.

yukarıdaki komut çalıştırıldığında solaris sunucunun root parolası istenir. Parola girildikten sonra aktarım başlar.

.iso dosyasının mount edilmesi

aşağıdaki komut ile solaris üzerinde bir nevi sanal cdrom device i oluştururuz.

lofiadm -a /opt/sol-10-u9-ga-x86-dvd-iso.zip /dev/lofi/1

daha sonra mevcut .iso yu /mnt altına mount ederiz.

mount -F hsfs -o ro /dev/lofi/1 /mnt

artık solaris dvd miz /mnt in altına mount olmuştur. İçini kontrol edebilirsiniz;

{root}/mnt>ls -al
total 57
dr-xr-xr-x   2 root     sys         4096 Aug 11 20:34 .
drwxr-xr-x  49 root     root        1536 Dec  9 17:41 ..
-r--r--r--   1 root     root        2048 Aug 11 20:34 .catalog
-r--r--r--   1 root     root          68 Mar  1  2010 .cdtoc
dr-xr-xr-x   5 root     root        2048 Aug 11 20:34 .install
lr-xr-xr-x   1 root     root          33 Aug 11 20:34 .install_config -> ./Solaris_10/Misc/.install_config
-r--r--r--   1 root     root         388 Mar  1  2010 .slicemapfile
-r--r--r--   1 root     root          19 Apr  8  2010 .volume.inf
-r--r--r--   1 root     root          26 Aug 11 20:22 .volume.inf.1
-r--r--r--   1 root     root          26 Aug 11 20:23 .volume.inf.2
-r--r--r--   1 root     root          21 Aug 11 20:22 .volume.inf.3
-r--r--r--   1 root     root          21 Aug 11 20:22 .volume.inf.4
-r--r--r--   1 root     root          21 Aug 11 20:22 .volume.inf.5
-r--r--r--   1 root     root        7625 May 26  2010 Copyright
-r--r--r--   1 root     root        1797 Jul 22 01:34 GPL_LGPL_Source_Offer.txt
dr-xr-xr-x   7 root     root        2048 Aug 11 20:34 Solaris_10
dr-xr-xr-x   5 root     root        2048 Aug 11 20:34 boot
-r-xr-xr-x   1 root     root         257 Aug 11 20:22 installer

şimdi de örnek olarak bir paket yükleyelim.

paketin yüklenmesi

Solariste bütün paketler SUNW ile başlar. yüklü paketleri ayrıntılı olarak kontrol etmek için FreeBSD dekine benzer aşağıdaki komutu kullanabilirsiniz.

pkginfo -l

örnek olarak GNU tar paketi olan SUNWgtar ı .iso dan yükleyelim.

{root}/mnt>pkgadd -d Solaris_10/Product SUNWgtar
Do you want to continue with the installation of <SUNWgtar> [y,n,?]y
Installing gtar - GNU tar as <SUNWgtar>
## Installing part 1 of 1.
Installation of <SUNWgtar> was successful.

işte hepsi bu kadar…

KAYNAKLAR:

http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/

http://www.cyberciti.biz/tips/solaris-add-install-new-software-packages.html

Share
PDF Download    Send article as PDF   

, ,

TOP