25.03.2009

V490 ve rsc


Sirkete geldigimden beri yonettigim bir Sun v490 Sunucum var. Su ana kadar ciddiye alinacak nerdeyse hic bir sorun yasamadim. Ancak soyle bir sacmalik vardi: Ekrana goruntu alamiyordum. Dolayisiyla sistemde bir sorunla karsilastigimda KVM ile mudahale sansim yoktu. Ufak tefek islerde (SSH serverin down olmasi durumunda ise) seri girisinden baglanip sorunu cozuyordum.
Ayrica makina uzerinde bir rsc karti (uzerinde network ve serial yazaiyor), bir de network interfacelerinin orda serial yaza baska bir giris daha vardi ve ordan giris yapabiliyordum sisteme. rsc -network girisini ise sadece rsc ye telnet ile network uzerinden erismek icin kullaniyordum.
Normal sartlarda Sun sunucularda sc ya da rsc de iken console ya da console -f yazidigimizda makinanin basindaymisiz ve monitor baglamisizcasina console goruntusu gelirken bu sunucuda sadece bos ekran geliyor ve ekran resetrsc yapana kadar o sekilde kaliyordu.

Gecenlerde sunucuyu Fabrikanin baska bir yerleskesine tasimak zorunda kaldik. Bu demek oluyordu ki ,herkangi bir sorunda eskisi kadar rahat olarak makinanin basina gidip oturup serial girisinden makinaya giremeyecegim.Dolayisiyla konsol goruntusunu rsc-networkten almak zorundaydim.
Bunun icin oturup arastirmalara koyuldum.
Ilk yaptigim rsc ayarlarini isletim sisteminden degistirmek oldu, soyle:

/usr/platform/`uname -i`/rsc/rsc-config

Continue with RSC setup (y|n): y

Set RSC date/time now (y|n|?) [y]: y
Server Hostname [sunucuadi]: Sunucumun adini girdim
Edit customer info field (y|n|?) [y]: Buraya sirket bilgilerini girdim
Enable RSC Ethernet Interface (y|n|s|?) [n]: y
RSC IP Mode (config|dhcp|?) [dhcp]: config
RSC IP Address []: rscnin IP adresi, telnet ile baglanacagiz
RSC IP Netmask [255.255.255.0]: netmaskesi
RSC IP Gateway []: buraya da rscnin bagli olacagi gateway adresi
Enable RSC Alerts (y|n|s|?) [n]: y (rsc uyarilarini-makina kapandi, acildi vs vs sekilinde mail ile almak isteyebiliriz. O durumda y)
Enable RSC Modem Interface (y|n|s|?) [n]: n
Enable RSC Serial Port Interface (y|n|s|?) [n]:n
Setup RSC User Account (y|n|?) [y]: y (rsc ye baglanacgimiz kullanici adi)
Username []: uileri
User Permissions (c,u,a,r|none|?) [cuar]:

--------------------
Verifying Selections
--------------------

General Setup
-------------
Set RSC date now = y
Server Hostname = Sunucumun ad
Set Customer Info = y

Is this correct (y|n): y


Ethernet Setup
--------------
IP Mode = config
IP Address = IP
IP Netmask = netmask
IP Gateway = gateway

Is this correct (y|n): y


Alert Setup
-----------
- Alerts enabled
// burada mail adresi yaziyor
Is this correct (y|n): y


Modem Setup
-----------
- Modem disabled, ppp disabled

Is this correct (y|n): y


Serial Port Setup
-----------------
- Serial port disabled

Is this correct (y|n): y


User Setup
----------
User Name = uileri
User Permissions = cuar

Is this correct (y|n): y


This script will now update RSC, continue? (y|n): y
Updating flash, this takes a few minutes
........................................
........................................
........................................
........................................
........................................
........................................
........................................
...........................
Download completed successfully

Resetting RSC (takes about 90 seconds): DONE
Setting up server to update RSC date on boot: DONE
Setting up server hostname: DONE
Setting up ethernet interface: DONE
Disabling RSC alert engine: DONE
Disabling modem interface: DONE
Disabling serial port interface: DONE
Adding user to RSC:

A valid password is between 6 and 8 characters, has at least
two alphabetic characters, and at least one numeric or special
character. The password must differ from the user's login name
and any reverse or circular shift of that login name.
Setting User Password Now ...

Password:
Re-enter Password:
User has been added to RSC
Resetting RSC (takes about 90 seconds):
Are you sure you want to reboot RSC (y/n)? y

DONE
Setting up RSC date: DONE

*******************************
RSC has been successfully setup
*******************************


Bu sekilde makinanin rsc sini ilk gunde yapmam gerektigi haline getirdim.
Ardindan

# eeprom diag-out-console=true

# eeprom input-device=rsc-console

# eeprom output-device rsc-console

yazarak onayladim.

Artik telnet ile baglandigim rsc den console yazip goruntu alabiliyordum..

Not: goruntunun rsc yerine normal ekrana (serial girisi) gelmesini istiyorsan yapmamiz gereken

# eeprom diag-out-console=true

# eeprom input-device=keyboard

# eeprom output-device=screen

yapip rscyi resetlemek
Bu kadar kolay



Kaynaklar :
http://docs.sun.com/source/816-3314-12/ucm_config_chap.html
http://www.filibeto.org/~aduritz/truetrue/jumpstart/ALOM1.5Help-en/cli/h_bootmode.html