Showing posts with label solaris. Show all posts
Showing posts with label solaris. Show all posts

Sunday, June 26, 2011

Remove special character files in folder solaris system

0 komentar
Gbr Buldozer


Sometime we see any special character created in directory/folder, how to remove thats?

See below for case like that :
1. look list files in folder
root # ls -l
total 6
-rw-r--r-- 1 root root 0 Jun 26 20:39 @
-rw-r--r-- 1 admin staff 136 Mar 4 2009 local.cshrc
-rw-r--r-- 1 admin staff 157 Mar 4 2009 local.login
-rw-r--r-- 1 admin staff 174 Mar 4 2009 local.profile
-rw-r--r-- 1 root root 0 Jun 26 20:38 test
-rw-r--r-- 1 root root 0 Jun 26 20:37 }


in this case, we found any "@" and "}" created in folder
2. let see inode for those special character
root # ls -il
total 6
349442 -rw-r--r-- 1 root root 0 Jun 26 20:39 @
349857 -rw-r--r-- 1 admin staff 136 Mar 4 2009 local.cshrc
349858 -rw-r--r-- 1 admin staff 157 Mar 4 2009 local.login
349859 -rw-r--r-- 1 admin staff 174 Mar 4 2009 local.profile
349441 -rw-r--r-- 1 root root 0 Jun 26 20:38 test
349440 -rw-r--r-- 1 root root 0 Jun 26 20:37 }
root #

3. No we will remove those spacial character in folder
root # find . -inum 349442 -exec rm -i {} \;
rm: remove ./@ (yes/no)? yes

4. verify the list files again
root # ls -il
total 5
349857 -rw-r--r-- 1 admin staff 136 Mar 4 2009 local.cshrc
349858 -rw-r--r-- 1 admin staff 157 Mar 4 2009 local.login
349859 -rw-r--r-- 1 admin staff 174 Mar 4 2009 local.profile
349441 -rw-r--r-- 1 root root 0 Jun 26 20:38 test
349440 -rw-r--r-- 1 root root 0 Jun 26 20:37 }
The "@" already gone, next we're remove the "}"

5. next remove the "}"
root # find . -inum 349440 -exec rm -i {} \;
rm: remove ./} (yes/no)? yes
root # ls -il
total 4
349857 -rw-r--r-- 1 admin staff 136 Mar 4 2009 local.cshrc
349858 -rw-r--r-- 1 admin staff 157 Mar 4 2009 local.login
349859 -rw-r--r-- 1 admin staff 174 Mar 4 2009 local.profile
349441 -rw-r--r-- 1 root root 0 Jun 26 20:38 test
root #

6. done

Picture from : http://www.ascendanttech.com/category/engineering/
Read More..

Thursday, April 28, 2011

How to change unix account shell

0 komentar
Change unix shell,below steps:

1. Check shell acount
root:/> more /etc/passwd
root:x:0:0:Super-User:/:/bin/bash
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
afgan:x:100:1::/home/afgan:/bin/sh

2. Change shell for account user afgan
root:/> passwd -e afgan
Old shell: /bin/sh
New shell: /bin/ksh
passwd: password information changed for afgan

3. Verify data unix shell for account user afgan
blue:/> more /etc/passwd
root:x:0:0:Super-User:/:/bin/bash
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
afgan:x:100:1::/home/afgan:/bin/ksh

4. Done
Read More..

Thursday, September 16, 2010

How to savecore in solaris

0 komentar
usually if the system is experiencing panic, then the investigation which is conducted from the coredump, but sometimes not coredump file is created .. follows the steps to be able to make the coredump file


root # tail -f /var/adm/messages | grep savecore
Sep 14 11:08:58 myserver savecore: not enough space in /var/crash/myserver (2094 MB avail, 3634 MB needed)

hohoho...size in /var not enough for save this coredump..

root # df -h /tmp
swap 47G 255M 46G 1% /tmp
root # mkdir /tmp/corecore
root # cd /tmp/corecore
root # savecore -Ld .
dumping to /dev/dsk/c0t9d0s0, offset 65536, content: kernel
100% done: 282920 pages dumped, compression ratio 4.86, dump succeeded
System dump time: Tue Sep 14 13:38:16 2010
Constructing namelist ./unix.0
Constructing corefile ./vmcore.0
100% done: 282920 of 282920 pages saved
root #

savecore with option :
-L Save a crash dump of the live
running Solaris system, without actually rebooting
or altering the system in any way.
-d Disregard dump header valid flag. Force
savecore to attempt to save a crash dump
even if the header information stored on the
dump device indicates the dump has already
been saved.

--- $ ---
Read More..

Wednesday, March 03, 2010

Setting SC SunFire T2000

0 komentar
gandevtuna.blogspot.com


Langkah-langkahnya sebagai berikut :
1. Connect ke serial management port (lihat gambar diatas)
2. Masukan User + password
3. Mulai setup System Console

sc> setupsc
Entering Interactive setup mode. To exit and discard changes to that point, use Ctrl-C or to exit and save changes to that point, use Ctrl-Z.
Do you wish to configure the enabled interfaces [y]? y


Should the SC network interface be enabled [y]? y
Should the SC email alerts be enabled [y]? n
Do you wish to configure the network interface [y]? y
Should the SC use DHCP to obtain its network configuration [n]? n
Enter the SC IP address [100.100.100.100]? 192.168.1.248
Enter the SC IP netmask [255.255.255.0]? 255.255.255.0
Enter the SC IP gateway address [100.100.100.100]? 192.168.1.1
Do you wish to configure the network management interfaces [y]? y
Enter the number of mail servers to configure [0]? 0
Do you wish to configure the SC parameters [y]? y
Enter any customer data for this platform (maximum of 40 characters) []? MyCompany
Enter the console session escape sequence (2 characters). The first character can be any printable characters or control-A through control-Y except for control-C, control-D, control-H, control-J, or control-M. The second character must be a ".". [#.]? #.
Enter level of events to be displayed over the CLI where valid settings are 0 (none), 1 (critical), 2 (critical and major) and 3 (critical, major and minor) [2]? 2
Should poweron sequencing be enabled [y]? y
Enter the SC cli prompt (maximum of 16 characters) [sc]? Myhost-sc
Enter the SC CLI timeout in seconds (maximum of 10000s) [0]? 0
Should password entry echo '*'s [y]? y
Your ALOM configuration profile has been successfully completed. To activate your network configuration, please reset the SC.

sc> resetsc
Are you sure you want to reset the SC [y/n]? y
User Requested SC Shutdown

ALOM POST 1.0


Dual Port Memory Test, PASSED.

TTY External - Internal Loopback Test

TTY External - Internal Loopback Test, PASSED.

TTYC - Internal Loopback Test

TTYC - Internal Loopback Test, PASSED.

TTYD - Internal Loopback Test

TTYD - Internal Loopback Test, PASSED.

Memory Data Lines Test
Memory Data Lines Test, PASSED.

Memory Address Lines Test
Slide address bits to test open address lines
Test for shorted address lines
Memory Address Lines Test, PASSED.

Boot Sector FLASH CRC Test
Boot Sector FLASH CRC Test, PASSED.



Return to Boot Monitor for Handshake
ALOM POST 1.0
Status = 00007fff

Returned from Boot Monitor and Handshake



Loading the runtime image... VxWorks running. Starting Advanced Lights Out Manager CMT v1.1.6 Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Current mode: NORMAL
Attaching network interface lo0... done.
Attaching network interface motfec0.... done. Booting from Segment 0

SC Alert: SC System booted.


Full VxDiag Tests

BASIC TOD TEST
Read the TOD Clock: SUN AUG 11 18:40:27 2002
Wait, 1 - 3 seconds
Read the TOD Clock: SUN AUG 11 18:40:29 2002
BASIC TOD TEST, PASSED

ETHERNET CPU LOOPBACK TEST
50 BYTE PACKET - a 0 in field of 1's.
50 BYTE PACKET - a 1 in field of 0's.
900 BYTE PACKET - pseudo-random data.
ETHERNET CPU LOOPBACK TEST, PASSED

Full VxDiag Tests - PASSED

login :
password:

MyHost-sc >
Read More..

Setting RSC SunFire V890

1 komentar
Berikut cara setting RSC (Remote System Console) untuk server SF V890 :

1. Login as root
2. Go to folder rsc
root # cd /usr/platform/`uname -i`/rsc
3. Do configure RSC
root # ./rsc-config


Continue with RSC setup (y|n): y

Set RSC date/time now (y|n|?) [y]:
Server Hostname [SFV890-SC]:
Edit customer info field (y|n|?) [n]:
Enable RSC Ethernet Interface (y|n|s|?) [n]: y
RSC IP Mode (config|dhcp|?) [dhcp]: config
RSC IP Address []: 192.168.1.10
RSC IP Netmask [255.255.255.0]:
RSC IP Gateway []: 192.168.1.1
Enable RSC Alerts (y|n|s|?) [n]: y
Enable Email Alerts (y|n) [n]:
Enable RSC Serial Port Interface (y|n|s|?) [n]: y
Serial port baud rate (9600|19200|38400|57600|115200) [9600]:
Serial port data bits (7|8) [8]:
Serial port parity (even|odd|none) [none]:
Serial port stop bits (1|2) [1]:
Setup RSC User Account (y|n|?) [y]:
Username []: admin
User Permissions (c,u,a,r|none|?) [cuar]:



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


General Setup
-------------
Set RSC date now = y
Server Hostname = SFV890-SC
Set Customer Info = n

Is this correct (y|n): y



Ethernet Setup
--------------
IP Mode = config
IP Address = 192.168.1.10
IP Netmask = 255.255.255.0
IP Gateway = 192.168.1.1

Is this correct (y|n): y



Alert Setup
-----------
Email Enabled = n

Is this correct (y|n): y



Serial Port Setup
-----------------
Serial Port Baud = 9600
Serial Port Data Bits = 8
Serial Port Parity = none
Serial Port Stop Bits = 1


Is this correct (y|n): y



User Setup
----------
User Name = admin
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 e-mail alerts: DONE
Disabling pager alerts: DONE
Disabling modem interface: DONE
Setting up serial port interface: DONE
Adding user to RSC:

rscadm: user already exists



when this script completes,
use the rscadm command to correct the error.

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
*******************************
root#

4. DONE
Read More..

Tuesday, January 26, 2010

Exclude file or directory in Tar Command

0 komentar
http://gandevtuna.blogspot.com


Kemarin dapet request untuk buat user baru dari user sysadmin ke sysadmin1, semua harus identik sama dan ada directory yang jangan dimasukan beserta isinya pada saat proses create user ini,tapi kalau sudah selesai directory ini harus ada...


Setelah mencari di buku primbon, untuk meng-exclude folder pada saat copy paste di solaris ternyata gak ada atau belum pernah melakukannya..Dengan bantuan server development akhir didapat ramuan command yang ampuh. Berikut langkah-langkahnya :

1. Create User sysadmin1
root@localhost # useradd -u 1009 -g 1 -d /export/home/sysadmin1 -m -s /bin/bash -c "User Sysadmin1" sysadmin1
64 blocks

2. Create password for user sysadmin1
root@localhost # passwd sysadmin1
New Password:
Re-enter new Password:
passwd: password successfully changed for sysadmin1

3.create exclude file or directory
root@localhost # vi /tmp/exclude
./logs/
~
~
~
~
~
~
"/tmp/exclude" [New file] 1 line, 10 characters

4. Copy contents of sysadmin home to sysadmin1 home directory
root@localhost # cd /export/home/sysadmin;tar cvXf /tmp/exclude - . | (cd /export/home/sysadmin1; tar xfBp -)
a ./ 0K
a ./root_pts_2 3K
a ./root_pts_2_20091112191039_LOGOUT 1K
a ./root_pts_2_20091112191117_LOGOUT 4K
a ./root_pts_1 21K
---- truncated ----
a ./logs excluded
root@localhost #

5. Verify contents and modify if any changes


Selamat mencoba

Read More..

Tuesday, January 19, 2010

can't edit cron solaris 10

0 komentar



This morning, there is a problem with the cron service misuse of one production server. Initial plan to edit the crontab file for user applications, but strange when doing cron-e that the contents of the file does not exist and can not add and insert the command in cron.

1. Check list file crontab
user_aplication@localhost # crontab -l
0 23 * * * /u02/applprod/backup_daily.sh
09 06 * * * /u02/applprod/backup_daily_up.sh

2. Try add and insert command
user_aplication@localhost # crontab -e
0

86
? [

(press ctrl+d, exit from editor cron)
user_aplication@localhost #

3. Check service cron
user_aplication@localhost # svcs cron
STATE STIME FMRI
online 9:08:01 svc:/system/cron:default

4. Solving problem,
a. edit file crontab
user_aplication@localhost # vi /var/spool/cron/crontabs/user_aplication
0 23 * * * /u02/applprod/backup_daily.sh > /dev/null 2>&1
09 06 * * * /u02/applprod/backup_daily_up.sh > /dev/null 2>&1

:wq!

b. refresh daemon cron
user_aplication@localhost # svcadm disable svc:/system/cron:default
user_aplication@localhost # svcadm enable svc:/system/cron:default

5. done

picture from googling..
Read More..

Monday, January 18, 2010

How to upgrade firmware Lom and SB in Sun E2900

0 komentar


lom>showboards -p v

Component Compatible Version
--------- ---------- -------
SSC1 Reference 5.20.3 Build_03
/N0/IB6 Yes 5.20.3 Build_03
/N0/SB0 Yes 5.20.13 Build_01
/N0/SB2 Yes 5.20.3 Build_03
/N0/SB4 Yes 5.20.6 Build_02

lom>showsc -v

SC: SSC1
System Controller V2

SC date: Fri Jan 15 02:16:00 PST 2008
PST GMT-08:00 Pacific Standard Time
SC uptime: 6 minutes 26 seconds

ScApp version: 5.20.3 Build_03
Version build: 3.0
Version String: 5.20.3
RTOS version: 46

SC POST diag level: max

Clock source is: 75MHz

Solaris Host Status: Powered Off

Chassis HostID: 845xxxxx
PROC RTUs installed: 0
PROC Headroom Quantity: 0
lom>


lom>showboards -p version -v

Component Segment Compatible In Date Time Build Version
--------- ------- ---------- -- ---- ---- ----- -------
SSC1/FP0 - - - - - - RTOS version: 46
SSC1/FP1 ScApp Reference 12 10/21/2006 06:38 3.0 5.20.3
SSC1/FP1 Ver - - 10/21/2006 06:38 3.0 5.20.3 Build_03
/N0/IB6/FP0 iPOST Yes 12 10/21/2006 06:36 3.0 5.20.3
/N0/IB6/FP0 Ver - - 10/21/2006 06:38 3.0 5.20.3 Build_03
/N0/IB6/FP0 Info - 12 10/21/2006 06:38 3.0 5.20.3
/N0/SB0/FP0 POST Yes 12 06/04/2009 02:44 1.0 5.20.13
/N0/SB0/FP0 OBP Yes 12 06/04/2009 02:43 1.0 5.20.13
/N0/SB0/FP0 Ver - - 06/04/2009 02:46 1.0 5.20.13 Build_01
/N0/SB0/FP0 Info - 12 06/04/2009 02:46 1.0 5.20.13
/N0/SB0/FP1 POST Yes 12 06/04/2009 02:44 1.0 5.20.13
/N0/SB0/FP1 OBP Yes 12 06/04/2009 02:43 1.0 5.20.13
/N0/SB0/FP1 Ver - - 06/04/2009 02:46 1.0 5.20.13 Build_01
/N0/SB0/FP1 Info - 12 06/04/2009 02:46 1.0 5.20.13
/N0/SB2/FP0 POST Yes 12 10/21/2006 06:25 3.0 5.20.3
/N0/SB2/FP0 OBP Yes 12 10/21/2006 06:21 3.0 5.20.3
/N0/SB2/FP0 Ver - - 10/21/2006 06:29 3.0 5.20.3 Build_03
/N0/SB2/FP0 Info - 12 10/21/2006 06:29 3.0 5.20.3
/N0/SB2/FP1 POST Yes 12 10/21/2006 06:25 3.0 5.20.3
/N0/SB2/FP1 OBP Yes 12 10/21/2006 06:21 3.0 5.20.3
/N0/SB2/FP1 Ver - - 10/21/2006 06:29 3.0 5.20.3 Build_03
/N0/SB2/FP1 Info - 12 10/21/2006 06:29 3.0 5.20.3
/N0/SB4/FP0 POST Yes 12 05/23/2007 08:56 2.0 5.20.6
/N0/SB4/FP0 OBP Yes 12 05/23/2007 08:54 2.0 5.20.6
/N0/SB4/FP0 Ver - - 05/23/2007 08:57 2.0 5.20.6 Build_02
/N0/SB4/FP0 Info - 12 05/23/2007 08:57 2.0 5.20.6
/N0/SB4/FP1 POST Yes 12 05/23/2007 08:56 2.0 5.20.6
/N0/SB4/FP1 OBP Yes 12 05/23/2007 08:54 2.0 5.20.6
/N0/SB4/FP1 Ver - - 05/23/2007 08:57 2.0 5.20.6 Build_02
/N0/SB4/FP1 Info - 12 05/23/2007 08:57 2.0 5.20.6


Based on this information, SB0 have version 5.20.13, SB2 have version 5.20.3 and SB4 have 5.20.6 firmware version. RTOS has firmware version 5.20.3 as well, then we will upgrade all the components into versions 5.20.14. Below are step by step :

1. Download Patch 114527-15

2. Save the file on an internal server (the server that is still a network with the server firmware to be upgraded.

3. flashupdate -f ftp://root:jadulbanget@192.168.12.101///tmp/114527-15/114527-15 scapp rtos

As part of this update, the system controller will automatically reboot.
RTOS will be upgraded automatically during the next boot.
ScApp will be upgraded automatically during the next boot.
Rebooting will interrupt any current operations.
This includes keyswitch changes, Solaris reboots
and all current connections.

Do you want to continue? [no] yes

Waiting for critical processes to finish. This may take a while.
Critical processes have finished.
No boards can be updated.

Rebooting the SC to automatically complete the upgrade.

Rebooting. All network client connections closed. Reestablish any needed connections.
Fri Jan 15 02:21:21 app1lom lom: Stopping all services on this SC
Fri Jan 15 02:21:21 app1lom lom: All services on this SC have been stopped.


Software Reset...


@(#) SYSTEM CONTROLLER(SC) POST 46 2006/09/26 07:52
PSR = 0x044010e5
PCR = 0x04004000

Memory size = 128MB

SelfTest running at DiagLevel:0x20

SC Boot PROM Test
BootPROM CheckSum Test
IU Test
IU instruction set Test
Little endian access Test
FPU Test
FPU instruction set Test
SparcReferenceMMU Test
SRMMU TLB RAM Test
SRMMU TLB Read miss Test
SRMMU page probe Test
SRMMU segment probe Test
SRMMU region probe Test
SRMMU context probe Test
IIep Internal Cache Test
DCACHE RAM access Test
DCACHE TAG access Test
DCACHE Read miss Test
DCACHE Read hit Test
DCACHE Write miss Test
DCACHE Write hit Test
ICACHE RAM access Test
ICACHE TAG access Test
ICACHE miss Test
ICACHE hit Test
ICACHE TAG flush Test
PCIC Test
PCIC Probe Test
PCIC Config Register Access Test
PCI Master Abort Test
PCIC Init Test
Memory Test
Memory Address Test
MemBankAddrTest: start address = 0x00010000
MemBankAddrTest: start address = 0x04000000
MemBankAddrTest: start address = 0x08000000
MemBankAddrTest: start address = 0x0c000000
RIO Ebus Test
Rio Ebus Probe Test
RIO Ethernet Test
Rio Enet Probe Test
Rio Ethernet Int Loopbacks Test
DUART(16552) InterSC Test
Loopback Test
COM3 port
COM4 port
Interrupt Test
COM3 port _ Intr #2

COM4 port _ Intr #2

System Clock Test
System Clock verify Test
Board0 Clock is selected
75MHZ Fixed Crystal is the selected Clock Source
CLK(Self) :0x0000ffff CLK(Other) : 0x00000000
REF : 0x00002229
CLOCK(SELF) FREQ : 74.99 MHZ
CLOCK(OTHER) FREQ : 0.0 MHZ
SBBC PCI Controller Test
SBBC PCI Config Space probe Test
SBBC Internal Reg Access Test
SBBC Interrupts Test
Port1 interrupt generation Tests INTR #14

Port0 interrupt generation Tests INTR #14

SBBC Device0 Test
PS Fail Reg(SBBC Dev0) Test
SBBC Device1 Test
SRAM (SBBC Dev1) Test
Memory Address Test (Non-destructive)
SBBC Device2 Test
BId&MFG Reg (SBBC Dev2) Test
SBBC Device3 Test
FRU Prsnt Reg (SBBC Dev3) Test
SBBC Device5 Test
EPLD (SBBC Dev5) Test
TOD(M48T59) Test
TOD Init Test
TOD Functional Test
TOD NVRAM(Non-Destructive) Test
TOD Interrupts Test
I2C Register Access Test
Enable Mux Register Test
Channel Mux Register Test
Add Command Register Test
Data Register Test
Local I2C AT24C64 Test
EEPROM Device Test
performing eeprom sequential read

Local I2C PCF8591 Test
VOLT_AD Device Test
channel[00000001] Voltage(0x0000009B) :1.51
channel[00000002] Voltage(0x0000009C) :3.35
channel[00000003] Voltage(0x0000009A) :5.1
channel[00000004] Voltage(0x00000000) :0.0
Local I2C LM75 Test
TEMP0(IIep) Device Test
Temperature : 24.0 Degree(C)

Local I2C LM75 Test
TEMP1(Rio) Device Test
Temperature : 22.50 Degree(C)

Local I2C LM75 Test
TEMP2(CBH) Device Test
Temperature : 29.50 Degree(C)

Local I2C PCF8574 Test
Sc CSR Device Test
Console Bus Hub Test
CBH Register Access Test
POST Complete.
ERI Device Present
Using SCC MAC address
MAC address is 0:13:4e:5a:2a:6f
Hostname: mylom
Address: 192.168.22.10
Netmask: 255.255.255.0
Attached TCP/IP interface to eri unit 0
Attaching interface lo0...done
Gateway: 192.168.22.1
interrupt: 100 Mbps full duplex link up



Flashupdate
Verifying network connectivity to 192.168.12.101... Passed.
Connecting to 192.168.12.101...
Transferring sgrtos.flash via FTP : 2048 Transferring sgrtos.flash via FTP : 4608
-------- truncated -------

Validating RTOS flash image...
Updating flashprom sectors at address 0x20000000: 0/11 = 100%
ok

Connecting to 192.168.12.101...
Transferring sgsc.flash via FTP : 2048 Transferring sgsc.flash via FTP : 4608
------------truncated file ------------
Transferring sgsc.flash via FTP : 6553876
Validating ScApp flash image...
Updating flashprom sectors at address 0x36000000: 0/101 = 0%
----------- truncated -----------
Updating flashprom sectors at address 0x36000000: 101/101 = 100%
ok



Software Reset...


@(#) SYSTEM CONTROLLER(SC) POST 49 2009/08/28 05:26
PSR = 0x044010e5
PCR = 0x04004000

Memory size = 128MB

SelfTest running at DiagLevel:0x20

SC Boot PROM Test
BootPROM CheckSum Test
IU Test
IU instruction set Test
Little endian access Test
FPU Test
FPU instruction set Test
SparcReferenceMMU Test
SRMMU TLB RAM Test
SRMMU TLB Read miss Test
SRMMU page probe Test
SRMMU segment probe Test
SRMMU region probe Test
SRMMU context probe Test
IIep Internal Cache Test
DCACHE RAM access Test
DCACHE TAG access Test
DCACHE Read miss Test
DCACHE Read hit Test
DCACHE Write miss Test
DCACHE Write hit Test
ICACHE RAM access Test
ICACHE TAG access Test
ICACHE miss Test
ICACHE hit Test
ICACHE TAG flush Test
PCIC Test
PCIC Probe Test
PCIC Config Register Access Test
PCI Master Abort Test
PCIC Init Test
Memory Test
Memory Address Test
MemBankAddrTest: start address = 0x00010000
MemBankAddrTest: start address = 0x04000000
MemBankAddrTest: start address = 0x08000000
MemBankAddrTest: start address = 0x0c000000
RIO Ebus Test
Rio Ebus Probe Test
RIO Ethernet Test
Rio Enet Probe Test
Rio Ethernet Int Loopbacks Test
DUART(16552) InterSC Test
Loopback Test
COM3 port
COM4 port
Interrupt Test
COM3 port _ Intr #2

COM4 port _ Intr #2

System Clock Test
System Clock verify Test
Board0 Clock is selected
75MHZ Fixed Crystal is the selected Clock Source
CLK(Self) :0x0000ffff CLK(Other) : 0x00000000
REF : 0x00002229
CLOCK(SELF) FREQ : 74.99 MHZ
CLOCK(OTHER) FREQ : 0.0 MHZ
SBBC PCI Controller Test
SBBC PCI Config Space probe Test
SBBC Internal Reg Access Test
SBBC Interrupts Test
Port1 interrupt generation Tests INTR #14

Port0 interrupt generation Tests INTR #14

SBBC Device0 Test
PS Fail Reg(SBBC Dev0) Test
SBBC Device1 Test
SRAM (SBBC Dev1) Test
Memory Address Test (Non-destructive)
SBBC Device2 Test
BId&MFG Reg (SBBC Dev2) Test
SBBC Device3 Test
FRU Prsnt Reg (SBBC Dev3) Test
SBBC Device5 Test
EPLD (SBBC Dev5) Test
TOD(M48T59) Test
TOD Init Test
TOD Functional Test
TOD NVRAM(Non-Destructive) Test
TOD Interrupts Test
I2C Register Access Test
Enable Mux Register Test
Channel Mux Register Test
Add Command Register Test
Data Register Test
Local I2C AT24C64 Test
EEPROM Device Test
performing eeprom sequential read

Local I2C PCF8591 Test
VOLT_AD Device Test
channel[00000001] Voltage(0x0000009B) :1.51
channel[00000002] Voltage(0x0000009C) :3.35
channel[00000003] Voltage(0x0000009A) :5.1
channel[00000004] Voltage(0x00000000) :0.0
Local I2C LM75 Test
TEMP0(IIep) Device Test
Temperature : 24.50 Degree(C)

Local I2C LM75 Test
TEMP1(Rio) Device Test
Temperature : 23.0 Degree(C)

Local I2C LM75 Test
TEMP2(CBH) Device Test
Temperature : 30.0 Degree(C)

Local I2C PCF8574 Test
Sc CSR Device Test
Console Bus Hub Test
CBH Register Access Test
POST Complete.
ERI Device Present
Using SCC MAC address
MAC address is 0:13:4e:5a:2a:6f
Hostname: mylom
Address: 192.168.22.10
Netmask: 255.255.255.0
Attached TCP/IP interface to eri unit 0
Attaching interface lo0...done
Gateway: 192.168.22.1
interrupt: 100 Mbps full duplex link up


Copyright 2009 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.

Sun Fire System Firmware
RTOS version: 49
ScApp version: 5.20.14 Build_02
SC POST diag level: min

The date is Monday, January 14, 2008, 2:29:55 AM PST.

Fri Jan 15 02:29:57 mylom lom: Boot: ScApp 5.20.14, RTOS 49
Fri Jan 15 02:30:02 mylom lom: Updating config data from the SCC
Fri Jan 15 02:30:04 mylom lom: Caching ID information
Fri Jan 15 02:30:05 mylom lom: Clock Source: 75MHz
Fri Jan 15 02:30:10 mylom lom: /N0/PS0: Status is OK
Fri Jan 15 02:30:11 mylom lom: /N0/PS1: Status is OK
Fri Jan 15 02:30:11 mylom lom: /N0/PS2: Status is OK
Fri Jan 15 02:30:12 mylom lom: /N0/PS3: Status is OK
Fri Jan 15 02:30:12 mylom lom: Chassis is in single partition mode.
Fri Jan 15 02:31:13 mylom lom: /N0/FT0, fan speed, High (4,2)
Fri Jan 15 02:32:32 mylom lom: Starting telnet server ...
Enter Password:
Connected.
lom>

4. Verify output
lom>showsc
SC: SSC1
System Controller V2

SC date: Fri Jan 14 02:33:10 PST 2008
SC uptime: 3 minutes 22 seconds

ScApp version: 5.20.14 Build_02
RTOS version: 49


Solaris Host Status: Powered Off

Chassis HostID: 845xxxx
PROC RTUs installed: 0
PROC Headroom Quantity: 0
lom>showboards -p v

Component Compatible Version
--------- ---------- -------
SSC1 Reference 5.20.14 Build_02
/N0/IB6 Yes 5.20.3 Build_03
/N0/SB0 Yes 5.20.13 Build_01
/N0/SB2 Yes 5.20.3 Build_03
/N0/SB4 Yes 5.20.6 Build_02

5. Upgrade Component SB and IB
lom>flashupdate -f ftp://root:jadulbanget@192.168.12.101///tmp/114527-15/114527-15 all rtos

As part of this update, the system controller will automatically reboot.
RTOS will be upgraded automatically during the next boot.
ScApp will be upgraded automatically during the next boot.

After this update you must reboot each active domain that was upgraded.

Rebooting will interrupt any current operations.
This includes keyswitch changes, Solaris reboots
and all current connections.
Do you want to continue? [no] y
Waiting for critical processes to finish. This may take a while.
Critical processes have finished.

Retrieving: flashupdate -f ftp://root:jadulbanget@192.168.12.101///tmp/114527-15/114527-15/lw8cpu.flash
Validating ................... Done

Programming PROM /N0/SB0/FP0
Erasing .................. Done
Programming .................. Done
Verifying .................. Done

Programming PROM /N0/SB0/FP1
Erasing .................. Done
Programming .................. Done
Verifying .................. Done

Programming PROM /N0/SB2/FP0
Erasing .................. Done
Programming .................. Done
Verifying .................. Done

Programming PROM /N0/SB2/FP1
Erasing .................. Done
Programming .................. Done
Verifying .................. Done

Programming PROM /N0/SB4/FP0
Erasing .................. Done
Programming .................. Done
Verifying .................. Done

Programming PROM /N0/SB4/FP1
Erasing .................. Done
Programming .................. Done
Verifying .................. Done

Retrieving: flashupdate -f ftp://root:jadulbanget@192.168.12.101///tmp/114527-15/114527-15/lw8pci.flash
Validating ........ Done

Programming PROM /N0/IB6/FP0
Erasing ....... Done
Programming ....... Done
Verifying ....... Done

Rebooting the SC to automatically complete the upgrade.

Rebooting. All network client connections closed. Reestablish any needed connections.
Fri Jan 15 02:40:15 app1lom lom: Stopping all services on this SC
Fri Jan 15 02:40:15 app1lom lom: All services on this SC have been stopped.


Software Reset...


@(#) SYSTEM CONTROLLER(SC) POST 49 2009/08/28 05:26
PSR = 0x044010e5
PCR = 0x04004000

Memory size = 128MB

SelfTest running at DiagLevel:0x20

SC Boot PROM Test
BootPROM CheckSum Test
IU Test
IU instruction set Test
Little endian access Test
FPU Test
FPU instruction set Test
SparcReferenceMMU Test
SRMMU TLB RAM Test
SRMMU TLB Read miss Test
SRMMU page probe Test
SRMMU segment probe Test
SRMMU region probe Test
SRMMU context probe Test
IIep Internal Cache Test
DCACHE RAM access Test
DCACHE TAG access Test
DCACHE Read miss Test
DCACHE Read hit Test
DCACHE Write miss Test
DCACHE Write hit Test
ICACHE RAM access Test
ICACHE TAG access Test
ICACHE miss Test
ICACHE hit Test
ICACHE TAG flush Test
PCIC Test
PCIC Probe Test
PCIC Config Register Access Test
PCI Master Abort Test
PCIC Init Test
Memory Test
Memory Address Test
MemBankAddrTest: start address = 0x00010000
MemBankAddrTest: start address = 0x04000000
MemBankAddrTest: start address = 0x08000000
MemBankAddrTest: start address = 0x0c000000
RIO Ebus Test
Rio Ebus Probe Test
RIO Ethernet Test
Rio Enet Probe Test
Rio Ethernet Int Loopbacks Test
DUART(16552) InterSC Test
Loopback Test
COM3 port
COM4 port
Interrupt Test
COM3 port _ Intr #2

COM4 port _ Intr #2

System Clock Test
System Clock verify Test
Board0 Clock is selected
75MHZ Fixed Crystal is the selected Clock Source
CLK(Self) :0x0000ffff CLK(Other) : 0x00000000
REF : 0x00002228
CLOCK(SELF) FREQ : 75.0 MHZ
CLOCK(OTHER) FREQ : 0.0 MHZ
SBBC PCI Controller Test
SBBC PCI Config Space probe Test
SBBC Internal Reg Access Test
SBBC Interrupts Test
Port1 interrupt generation Tests INTR #14

Port0 interrupt generation Tests INTR #14

SBBC Device0 Test
PS Fail Reg(SBBC Dev0) Test
SBBC Device1 Test
SRAM (SBBC Dev1) Test
Memory Address Test (Non-destructive)
SBBC Device2 Test
BId&MFG Reg (SBBC Dev2) Test
SBBC Device3 Test
FRU Prsnt Reg (SBBC Dev3) Test
SBBC Device5 Test
EPLD (SBBC Dev5) Test
TOD(M48T59) Test
TOD Init Test
TOD Functional Test
TOD NVRAM(Non-Destructive) Test
TOD Interrupts Test
I2C Register Access Test
Enable Mux Register Test
Channel Mux Register Test
Add Command Register Test
Data Register Test
Local I2C AT24C64 Test
EEPROM Device Test
performing eeprom sequential read

Local I2C PCF8591 Test
VOLT_AD Device Test
channel[00000001] Voltage(0x0000009B) :1.51
channel[00000002] Voltage(0x0000009C) :3.35
channel[00000003] Voltage(0x0000009A) :5.1
channel[00000004] Voltage(0x00000000) :0.0
Local I2C LM75 Test
TEMP0(IIep) Device Test
Temperature : 25.0 Degree(C)

Local I2C LM75 Test
TEMP1(Rio) Device Test
Temperature : 23.50 Degree(C)

Local I2C LM75 Test
TEMP2(CBH) Device Test
Temperature : 31.50 Degree(C)

Local I2C PCF8574 Test
Sc CSR Device Test
Console Bus Hub Test
CBH Register Access Test
POST Complete.
ERI Device Present
Using SCC MAC address
MAC address is 0:13:4e:5a:2a:6f
Hostname: mylom
Address: 192.168.22.10
Netmask: 255.255.255.0
Attached TCP/IP interface to eri unit 0
Attaching interface lo0...done
Gateway: 192.168.22.1
interrupt: 100 Mbps full duplex link up


Flashupdate
Verifying network connectivity to 192.168.12.101... Passed.
Connecting to 192.168.12.101...
Transferring sgrtos.flash via FTP : 2048
---- Truncated -----
Transferring sgrtos.flash via FTP : 696120
Validating RTOS flash image...
Updating flashprom sectors at address 0x20000000: 0/11 = 0%Updating flashprom sectors at address 0x20000000: 11/11 = 100%
ok

Connecting to 192.168.12.101...
Transferring sgsc.flash via FTP : 2048
------------truncated --------------
Transferring sgsc.flash via FTP : 6553876
Validating ScApp flash image...
Updating flashprom sectors at address 0x36000000: 0/101 = 0%Updating flashprom sectors at address 0x36000000: 9/101 = 8%Updating flashprom sectors at address 0x36000000: 40/101 = 39%Updating flashprom sectors at address 0x36000000: 65/101 = 64%Updating flashprom sectors at address 0x36000000: 89/101 = 88%Updating flashprom sectors at address 0x36000000: 101/101 = 100%
ok



Software Reset...


@(#) SYSTEM CONTROLLER(SC) POST 49 2009/08/28 05:26
PSR = 0x044010e5
PCR = 0x04004000

Memory size = 128MB

SelfTest running at DiagLevel:0x20

SC Boot PROM Test
BootPROM CheckSum Test
IU Test
IU instruction set Test
Little endian access Test
FPU Test
FPU instruction set Test
SparcReferenceMMU Test
SRMMU TLB RAM Test
SRMMU TLB Read miss Test
SRMMU page probe Test
SRMMU segment probe Test
SRMMU region probe Test
SRMMU context probe Test
IIep Internal Cache Test
DCACHE RAM access Test
DCACHE TAG access Test
DCACHE Read miss Test
DCACHE Read hit Test
DCACHE Write miss Test
DCACHE Write hit Test
ICACHE RAM access Test
ICACHE TAG access Test
ICACHE miss Test
ICACHE hit Test
ICACHE TAG flush Test
PCIC Test
PCIC Probe Test
PCIC Config Register Access Test
PCI Master Abort Test
PCIC Init Test
Memory Test
Memory Address Test
MemBankAddrTest: start address = 0x00010000
MemBankAddrTest: start address = 0x04000000
MemBankAddrTest: start address = 0x08000000
MemBankAddrTest: start address = 0x0c000000
RIO Ebus Test
Rio Ebus Probe Test
RIO Ethernet Test
Rio Enet Probe Test
Rio Ethernet Int Loopbacks Test
DUART(16552) InterSC Test
Loopback Test
COM3 port
COM4 port
Interrupt Test
COM3 port _ Intr #2

COM4 port _ Intr #2

System Clock Test
System Clock verify Test
Board0 Clock is selected
75MHZ Fixed Crystal is the selected Clock Source
CLK(Self) :0x0000ffff CLK(Other) : 0x00000000
REF : 0x00002228
CLOCK(SELF) FREQ : 75.0 MHZ
CLOCK(OTHER) FREQ : 0.0 MHZ
SBBC PCI Controller Test
SBBC PCI Config Space probe Test
SBBC Internal Reg Access Test
SBBC Interrupts Test
Port1 interrupt generation Tests INTR #14

Port0 interrupt generation Tests INTR #14

SBBC Device0 Test
PS Fail Reg(SBBC Dev0) Test
SBBC Device1 Test
SRAM (SBBC Dev1) Test
Memory Address Test (Non-destructive)
SBBC Device2 Test
BId&MFG Reg (SBBC Dev2) Test
SBBC Device3 Test
FRU Prsnt Reg (SBBC Dev3) Test
SBBC Device5 Test
EPLD (SBBC Dev5) Test
TOD(M48T59) Test
TOD Init Test
TOD Functional Test
TOD NVRAM(Non-Destructive) Test
TOD Interrupts Test
I2C Register Access Test
Enable Mux Register Test
Channel Mux Register Test
Add Command Register Test
Data Register Test
Local I2C AT24C64 Test
EEPROM Device Test
performing eeprom sequential read

Local I2C PCF8591 Test
VOLT_AD Device Test
channel[00000001] Voltage(0x0000009B) :1.51
channel[00000002] Voltage(0x0000009C) :3.35
channel[00000003] Voltage(0x0000009A) :5.1
channel[00000004] Voltage(0x00000000) :0.0
Local I2C LM75 Test
TEMP0(IIep) Device Test
Temperature : 25.0 Degree(C)

Local I2C LM75 Test
TEMP1(Rio) Device Test
Temperature : 23.0 Degree(C)

Local I2C LM75 Test
TEMP2(CBH) Device Test
Temperature : 31.50 Degree(C)

Local I2C PCF8574 Test
Sc CSR Device Test
Console Bus Hub Test
CBH Register Access Test
POST Complete.
ERI Device Present
Using SCC MAC address
MAC address is 0:13:4e:5a:2a:6f
Hostname: mylom
Address: 192.168.22.10
Netmask: 255.255.255.0
Attached TCP/IP interface to eri unit 0
Attaching interface lo0...done
Gateway: 192.168.22.1
interrupt: 100 Mbps full duplex link up


Copyright 2009 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.

Sun Fire System Firmware
RTOS version: 49
ScApp version: 5.20.14 Build_02
SC POST diag level: min

The date is Friday, January 14, 2008, 2:46:47 AM PST.

Fri Jan 15 02:46:49 mylom lom: Boot: ScApp 5.20.14, RTOS 49
Fri Jan 15 02:46:56 mylom lom: Caching ID information
Fri Jan 15 02:46:58 mylom lom: Clock Source: 75MHz
Fri Jan 15 02:47:02 mylom lom: /N0/PS0: Status is OK
Fri Jan 15 02:47:03 mylom lom: /N0/PS1: Status is OK
Fri Jan 15 02:47:03 mylom lom: /N0/PS2: Status is OK
Fri Jan 15 02:47:04 mylom lom: /N0/PS3: Status is OK
Fri Jan 15 02:47:04 mylom lom: Chassis is in single partition mode.
Fri Jan 15 02:49:30 mylom lom: Starting telnet server ...
Enter Password:
Connected.

lom>

6. Verify output
lom>showboards -p v

Component Compatible Version
--------- ---------- -------
SSC1 Reference 5.20.14 Build_02
/N0/IB6 Yes 5.20.14 Build_02
/N0/SB0 Yes 5.20.14 Build_02
/N0/SB2 Yes 5.20.14 Build_02
/N0/SB4 Yes 5.20.14 Build_02


Read More..

Monday, January 11, 2010

how to collect supportdata in Sun Storage 6130 with command line

0 komentar
1. Login as root
2. Go to folder /opt/SUNWstade/bin
root@localhost # cd /opt/SUNWstade/bin
3. root@localhost # ./ras_admin device_list

MonitoredOn Device Type IP WWN Active
----------- ------------ ---------- ---------------- ------------------ ------
root02-app ROOTDISK2A 6130 192.168.1.195 200600A0B818A700 root02-app ROOTDISK1A 6130 192.168.1.193 200600a0b8197800 Y

root@root02-app # ./6130SupportData 192.168.1.195 /tmp support.zip
Collecting support data for 192.168.1.195

4. After finish,check file result in /tmp

option two,we can manual collect with separate command :

1. service -d -c print -t arrayprofile > arrayProfileSummary.txt

2. service -d -c print -t mel > majorEventLog.txt

3. service -d -c read -q nvsram region=0xEE > NVSRAMdata.txt

4. service -d -c print -t rls > readLinkStatus.csv

5. sscs list alarm > alarms.txt



Read More..

Thursday, January 07, 2010

How to clear CHS in sun server

1 komentar
Here are the steps to solving clear CHS (Component Healty Status):
1. lom> service

The use of service commands can be destructive and destabilize the system.
Use of service mode is authorized only by personnel trained in its use.

Enter Password:
lom [service]>
lom [service]> showchs-b
Component Status
--------------- --------
/ N0/RP0 Suspect
/ N0/RP2 Suspect
/ N0/SB2 Suspect



2.lom [service]> OK setchs-s-r "OK"-c / N0/RP0
3.lom [service]> showchs-b
Component Status
--------------- --------
/ N0/RP2 Suspect
/ N0/SB2 Suspect
4.lom [service]> OK setchs-s-r "OK"-c / N0/RP2
5.lom [service]> OK setchs-s-r "OK"-c / N0/SB2
6.lom [service]> showchs-b
Component Status
--------------- --------
lom [service]>
7.lom [service]> showchs-v-c / N0/RP2
Total # of records: 1
Component: / N0/RP2
Time Stamp: Thu Jan 03 07:39:34 PST 2006
New Status: OK
Old Status: Suspect
Event Code: Field Engineer Status Supplied
Initiator: Field Engineer
Message: OK
8.lom [service]> console
Localhost console login:
9.root@localhost # eeprom diag-level=mem2
10. root@localhost # eeprom auto-boot=false
11. init 0
12.lom> poweroff
13. lom>poweron ---> take approximately 1.5 hours
14. ok setenv diag-level min
15. ok boot
Read More..

Thursday, October 01, 2009

RPC: Program not registered

0 komentar
Hari ini menemukan hal baru, pas mount NFS koq gak bisa. Muncul error :

root # mount 190.10.3.8:/titip /a
nfs mount: 190.10.3.8: : RPC: Program not registered
nfs mount: retrying: /a

root #


setelah cari sana sini, ketemu caranya sbb :

Disisi Servernya :

root # cd rc3.d
root # ls
K45vxpbx_exchanged S16boot.server S52imq S84appserv
README S34dhcp s76snmpdx S89sshd
S13kdc.master S45vxpbx_exchanged s77dmi S90samba
S14kdc S50apache S80mipagent S99CAsanproxy
S15nfs.server S50san_driverchk S81volmgt S99rscd
root # ./S15nfs.server stop
root # ./S15nfs.server start
root # unshareall
root # shareall
root # share
- /titip rw,anon=0 "home dirs"
root # pwd
/etc/rc3.d
root #


di client nya dicoba lagi :

root # mount 190.10.3.8:/titip /a
root #


Read More..

Tuesday, September 08, 2009

Administrasi singkat SUN Fire E25K

0 komentar
Berikut list administrasi super singkat tapi mudah-mudahan bisa digunakan oleh anda semua, berguna untuk administrasi server kelas high end SunFire E25K..memang tidak komplit banget,jadi maafkan saya yg bodoh ini.

How many domains 15/25k can support ?
18 domains



How many groups exist on platform ?
Three -> platadm,platoper,platsvc

How many types of groups exists on domains
Two. -> dmnadmn,dmnarcfg

What is the command used to add user to a group ?
Smsconfig –a –u username –G platadm platform

what is the command to list the users ?
smsconfig –l platform


How to check the platform information ?
showplatform

How to login to domain console from sms console ?
Console –d A

What are the different paths through which sc can communicate to domain ?
- Through I1 Man network
- Through IOSRAM

How we can toggle communication between I1 to IOSRAM incase if the domain console hangs ?
~=

How to disconnect domain console ?
~.

How to break to domain OK prompt ?
~#

How do you access the system controller if it hangs ?
Issue smsconnectsc from sparesc

How do you reset the System controller ?
Issue resetsc from another sc

How do you remove user from a group ?
Smsconfig –r –u username –G platadm platform

Whats the command to use to update the flash ?
Flashupdate

What command to use to reset domain from sc?
reset –d A

How to stop and restart SMS ?
/etc/init.d/sms stop
/etc/init.d/sms start

What is the main daemon which starts reset of the SMS daemons ?
Ssd ( Sms Startup Daemon )

How many daemons running on SMS ?
13 ( dsmd,efe,esmd,fomd,frad,hwad,kmd,mand,mld,osd,pcd,ssd,tmd)

How many agents running on SMS ?
2 ( dca , dxs)

Where are the log files located for platform messages ?
/var/opt/SUNWSMS/adm/platform/messages

Where are the log files located for Domain messages ?
/var/opt/SUNWSMS/adm/domain_id/messages

Where are the log files located for Domain console ?
/var/opt/SUNWSMS/adm/domain_id/console

How to make the boards available to the domain ?
Setupplatform –d A SB0 IO0

Whats the minimum requirement for a domain setup?
1. At leaset one CPU board with Memory
2. At least one IO board
3. At least one board with network interface

How to Add name to domain ?
addtag –d A testname

How to delete domain tag ?
deletetag –d A testname

How to add board to domain from system controller ?
Addboard –d A SB0

How to just assign board to domain from system controller ?
Addboard –d A -c assign SB0

How to remove and reconfigure board from a domain from system controller ?
Deleteboard SB0

How to just unassign the board from domain from system controller ?
Deleteboard–c unassign SB0

How to move boards between the domain from system controller ?
Moveboard –d A SB1

How to remove all instances of previously active domain ?
Sc0:> setdefaults –d A

How to check the boards status ?
showboards

How to obtain the domain status ?
Showplatform –d B

How to set date for sc ?
Setdate xxxxxxxxxx

How to set date for domain from sc ?
setdate –d B xxxxxxxxx

How to display the date on sc ?
showdate

Read More..

IPMP Solaris multipathing

0 komentar
Kemarin pasang multipathing di solaris sun v440,


Device LAN nya dideteksi sebagai ce2 and ce6, IP untuk ce2 10.128.1.5 dan ce6 10.128.1.6 untuk virtual digunakan IP 10.128.1.7


root@S440A # ifconfig ce2 plumb 10.128.1.5 netmask + broadcast + group group1 deprecated -failover up
root@S440A # ifconfig ce2 addif 10.128.1.7 netmask + broadcast + failover up
root@S440A # ifconfig ce6 plumb 10.128.1.6 netmask + broadcast + group group1 deprecated -failover standby up



Untuk membuat permanent configuration,buat file seperti ini

root@S440A # vi /etc/hostname.ce2
10.128.1.5 netmask + broadcast + group group1 deprecated -failover up addif 10.128.1.7 netmask + broadcast + failover up
wq!


root@S440A # vi /etc/hostname.ce6
10.197.151.6 netmask + broadcast + group group1 deprecated -failover standby up
wq!


untuk cara testingnya :
masukkan dua kabel yg sudah dikonfigure oleh team network ke ce2 dan ce6, kemudian dari server/host lain coba ping 10.128.1.5 atau 10.128.1.6 dengan option -s. Setelah itu baru test cabut kabel network ce2, dipastikan proses pin terus berjalan.
Lalu test untuk ce6, masukkan/colokkan kembali kabel utp tadi yg dilepas ke ce2, lalu cabut kabel ce6nya.lihat hasilnya.....
Read More..

Tuesday, September 01, 2009

How to setting user only can ftp in solaris

9 komentar
Sometimes we want to create a user who entered the system can only be run ftp, how can make it ?

1. Add user for only can ftp
root # useradd -u 2009 -g 10 -d /export/home/userftp -c "Ftp user only" -m -s /bin/false userftp
64 blocks

root # more /etc/passwd
....
....
userftp:x:2009:10:Ftp user only:/export/home/userftp:/bin/false

root # passwd userftp
New Password:
Re-enter new Password:
passwd: password successfully changed for userftp
root #



create file /etc/shells, because by default this file not found in system
root # more /etc/shells
/etc/shells: No such file or directory
root #

root # vi /etc/shells
/bin/bash
/bin/csh
/bin/gnome-autogen.sh
/bin/hash
/bin/jsh
/bin/ksh
/bin/pfcsh
/bin/pfksh
/bin/pfsh
/bin/remsh
/bin/rksh
/bin/rsh
/bin/sh
/bin/ssh
/bin/tcsh
/bin/zsh
/bin/ftpaccess
/sbin/sh
# add this line
/bin/false
wq!

Now we check, after setting userftp only can ftp no telnet and ssh...
root # ftp localhost
Connected to localhost.
220 myhost FTP server ready.
Name (localhost:root): userftp
331 Password required for userftp.
Password:
230 User userftp logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 229 bytes in 0 transfers.
221-Thank you for using the FTP service on myhost.
221 Goodbye.

root # telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.


SunOS 5.9

login: userftp
Password:
Last login: Tue Sep 1 21:48:29 from localhost
Connection to localhost closed by foreign host.

root # ssh userftp@localhost
userftp@localhost's password:
Last login: Tue Sep 1 21:49:22 2009 from localhost
Connection to localhost closed.
root #

Read More..

How to Setup Solaris 9 after instalation

0 komentar
When finished installing the OS on the system, the following steps to improve the OS configuration :
1. Install Patches

Insert DVD EIS to cdrom/dvdrom device
root # cd /cdrom/eis-dvd/sun/install
root # ./setup-standard.sh
root # . /.profile
root # cd /cdrom/eis-dvd/sun/patch/9 ---ini bisa disesuaikan dengan solaris serinya
root # unpack-patches /tmp
root # cd /tmp/9
root # eject ----buat ngeluarin cdrom
root # ./install_patches



2. Setting IP address
syntax : #ifconfig [interface] plumb

root # ifconfig bge0 plumb
root # ifconfig bge0 192.168.200.90 netmask 255.255.255.0 broadcast + up


3. Setting Hostname
root # vi /etc/hosts
127.0.0.1 localhost
192.168.200.90 sunmc sunmc.com loghost
wq!



4. Edit File :
root # vi /etc/hostname.bge0
sunmc
wq!


root # vi /etc/defaultrouter
192.168.200.1
wq!


root # vi /etc/inet/netmasks
192.168.200.0 255.255.255.0
wq!


If we want to enable telnet, do as the following configuration :
root #vi /etc/default/login
put a # in the following lines
CONSOLE=/dev/console
wq!


For setting FTP
root #vi /etc/ftpd/ftpusers
put a # in the following lines
root
wq!


For Setting ssh :

root #vi /etc/ssh/sshd_config
PermitRootLogin no ---> replace no with yes
wq!

Read More..

Monday, August 31, 2009

About VXassist

0 komentar
* Sorry ini sumbernya lupa dari mana,tapi cukup berguna buat yang saya *
General
1. Creating a Volume
1.1 Creating a Concatenated Volume
1.2 Creating a Striped Volume
1.3 Creating a RAID-5 Volume
2. Extending a Volume
2.1 Extending a volume up to certain length,
2.2 Extending by a Given Length
3. Shrinking a Volume
3.1 Shrinking to a Given Length
3.2 Shrinking by a Given Length
4. Removing a Volume
5. Mirroring a Volume
5.1 Creating & Mirroring a New Volume
5.2 Mirroring an Existing Volume
5.3 Mirroring All Volumes


6. Removing a Mirror
7. Adding a RAID-5 Log
8. Adding a DRL Log
9. Removing a RAID-5 Log
10.Preparing a Volume for Online Backup
11.Displaying Volume Configuration Information

General
The vxassist utility in Veritas Volume Manager is used to create volumes, add mirrors and logs to existing volumes, extend and shrink existing volumes, provides for the migration of data from a specified set of disks, and provides facilities for the on-line backup of existing volumes.
The default behavior of vxassist is to create volumes in the rootdg diskgroup if diskgroup is not specified . The default length is taken as number of blocks but this can be specified in Kilobytes orMegabytes or Gigabytes.

vxassist command syntax :

vxassist
Read More..

Saturday, August 29, 2009

How To Install TOP Package for solaris

0 komentar
Studycase OS solaris 9,SUN Fire V440 :

* Download package TOP (utility for see prosess daemon/file in system)in www.sunfreeware.com

root # pkgadd -d top-3.6.1-sol9-sparc-local

The following packages are available:
1 SMCtop top
(sparc) 3.6.1

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 1


Processing package instance from

top
(sparc) 3.6.1

This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.

LeFebvre et al
Using as the package base directory.
## Processing package information.
## Processing system information.
17 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing top as

## Installing part 1 of 1.
[ verifying class ]

Installation of was successful.

root # /usr/local/bin/top
last pid: 19787; load avg: 0.07, 0.04, 0.04; up 191+17:57:56 11:23:44
97 processes: 96 sleeping, 1 on cpu
CPU states: 94.1% idle, 5.4% user, 0.5% kernel, 0.0% iowait, 0.0% swap
Memory: 2048M phys mem, 94M free mem, 1024M total swap, 908M free swap

PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
13717 root 29 59 0 94M 36M sleep 498:08 4.46% java
834 root 12 21 0 60M 16M sleep 18.3H 0.99% java
1346 root 2 1 0 25M 20M sleep 54.2H 0.00% esd
5463 root 1 1 0 22M 9568K sleep 25.8H 0.00% esd
3981 smcorau 11 1 0 896M 869M sleep 21.1H 0.00% oracle
5441 root 10 21 0 3912K 2840K sleep 17.2H 0.00% picld
3983 smcorau 1 1 0 893M 858M sleep 251:48 0.00% oracle
3996 root 21 1 0 68M 18M sleep 194:15 0.00% java
5415 root 17 12 0 70M 17M sleep 148:22 0.00% java
3973 smcorau 11 1 0 894M 859M sleep 110:52 0.00% oracle
5491 root 1 1 0 16M 9072K sleep 82:39 0.00% esd
5459 root 1 1 0 7056K 5208K sleep 56:36 0.00% esd
5461 root 1 46 0 8056K 5816K sleep 44:48 0.00% esd
3975 smcorau 11 59 0 894M 859M sleep 33:36 0.00% oracle
13388 root 1 60 0 32M 25M sleep 26:42 0.00% esd
Read More..

Thursday, August 27, 2009

krtld: load_exec: fail to expand cpu/$CPU

1 komentar
Hari ini coba install Mseries (M4000) persiapan buat instalasi di salah satu customer, Planning di customer ingin mengkloning server dari SF 890 ke M4000. Kita asumsikan sama2 menggunakan OS solaris 10. Kebetulan dikantor ada server SF V210 dengan 2 disk, diputuskan simulasi dengan server tersebut.

Pertama dibuat Flar archive dari server V120 ini diberinama FlarTest, commandnya :

bash-3.00 # flarcreate -n "FlarTest-os" -c -R / /export/home/FlarTest.flar
Full Flash
Checking integrity...
Integrity OK.
Running precreation scripts...
Precreation scripts done.
Determining the size of the archive...



setalah hampir 2 jam lebih file archive berhasil dibuat, pada saat M4000 dinyalakan dan dimasukan DVD installer solaris 10 11/06, proses boot gagal dengan output seperti berikut :

krtld: load_exec: fail to expand cpu/$CPU
krtld: error during initial load/link phase
panic - boot: exitto64 returned from client program
ok


Waduh !!..googling dan nyari dokumen di sunsolve, akhirnya ketemua bahwa Mseries harus menggunakan Solaris 10 5/08 keatas, pantesan ga bisa buat boot Mseries. Download di webnya SUN.com, burning dan test buat boot ...dan berhasil. Proses instalasi menggunakan NFS dengan metode flash (flar archive).
Read More..

Wednesday, August 26, 2009

About file iso image in solaris

0 komentar
http://gandevtuna.blogspot.com


Cara membuat file iso dari cdrom
# mkisofs -r -o /tmp/disk1.iso /cdrom/cdrom0


cara mounting file iso
# /usr/sbin/lofiadm -a tmp/disk1.iso /dev/lofi/1
# mount -F hsfs -o ro /dev/lofi/1 /test

Cara unmount file iso
# umount /test
# /usr/sbin/lofiadm -d /dev/lofi/1
Read More..

Monday, August 24, 2009

Rlogin (Remote Login) in solaris

0 komentar
http://gandevtuna.blogspot.com


Apa itu Rlogin? menurut definisi yg saya tau sih, supaya kita bisa masuk dari system 1 ke system 2 dengan tanpa meminta password root lagi (agak riskan sih, dan sebenarnya tidak disarankan oleh audit security system) kalo menurut manual systemnya rlogin adalah
rlogin establishes a remote login session from your terminal to the remote machine named hostname. Hostnames are listed in the hosts database, which may be contained in the /etc/hosts file, the Network Information Service (NIS) hosts map, the Internet domain name server, or a combination of these. Each host has one official name (the first name in the database entry), and optionally one or more nicknames. Either official hostnames or nicknames may be specified in hostname.




Berikut langkah-langkah untuk rlogin yg dimaksud :
1. Cek Daemon rlogin,
root # more /etc/inetd.conf

+++++++++++++++++++++++++++++++++++++++++
# RLOGIND - rlogin daemon (BSD protocols)
login stream tcp6 nowait root /usr/sbin/in.rlogind in.rlogind
+++++++++++++++++++++++++++++++++++++++++

root # ps -ef | grep inetd
root 147 1 0 Aug 01 ? 0:00 /usr/sbin/inetd -s
root 24051 24027 0 12:18:00 pts/4 0:00 grep inetd

root # kill -HUP 147

root # ps -ef | grep rlogin
root 6262 178 0 11:38:54 ? 0:00 in.rlogind
root 7972 6264 0 12:21:22 pts/4 0:00 grep rlogin
root #


2. tambahkan host yang akan di rlogin
root@HOST-A # more /etc/hosts.equiv
HOST-B
+ root

root@HOST-A # ls -ltr /etc/hosts.equiv
-rw-r--r-- 1 root other 19 Aug 6 11:21 /etc/hosts.equiv
root #

root@HOST-A # more $HOME/.rhosts
HOST-B
+ root
root #

3. tambahkan host yang akan di rlogin
root@HOST-B # more $HOME/.rhosts
HOST-A
+ root
root@HOST-B #

root@HOST-B # more $HOME/.rhosts
HOST-A
+ root
root@HOST-B # more /etc/hosts.equiv
HOST-A
+ root
root@HOST-B # ls -ltr /etc/hosts.equiv
-rw-r--r-- 1 root other 17 Apr 21 2007 /etc/hosts.equiv
root@HOST-B #

*gambar diambil dari http://www.sun.com
Read More..
 
footer