Search This Blog

Monday 28 December 2009

How enable DISABLED Veritas Volume

Veritas volumes get disabled when a disconnection happens while the machine is live. For reparing this sata after restoring the connecting, we need to apply this commands.
Run this command for each plex
vxmend -g dg-name  fix stale pluxname
vxmend -g dg-namne fix clean pluxname
Run this command for staring all volumes in the disk group.
vxvol -g startall

Monday 14 December 2009

Editing Remote server Crontab

Eg: echo "30 10 * * 1 /opt/SUNWexplo/bin/explorer -q -e -P # SUNWexplo" | ssh RemoteServer 'cat >> /var/spool/cron/crontabs/root'

Tuesday 8 December 2009

Script for killing a process owned by root using sudo as localuser

This is the script for giving permission for a local user to kill a proces (here its java) owned by root user.
Ther process to kill, the following conditions should be matched
1. it should be a java process
2. There should be only single process with this id
3. it should be owned by root
4. The user should run it as using sudo.
#!/usr/bin/bash
#Script for killing java proces which is failed to stop by jboss shutdow script.
#Written by latheefp@gmail.com
#echo "The process ID is $1"
#echo "Press return to continue"
read
if [ ! $1 ];
then
echo "Process ID is Empty"
echo "Syntax Error. Usage: $0 "
exit
fi
#This must to be run as root
export ID=`/usr/ucb/whoami`
if [ "$ID" != "root" ]
then
echo '';
echo "You must use sudo to run this program";
echo "Syntax Error. Usage: sudo $0 "
echo '';
exit
fi
PID=$1
#Making sure, its a number
case $PID in
*[!0-9]*) echo "The process ID should be a number";
echo "Syntax Error. Usage: $0 "
exit
esac
#making sure its java, owned by root
if [ `ps -ef|grep $PID|grep -v grep|grep java|grep root|wc -l` -eq 1 ]
then
ps -ef|grep $PID|grep -v grep|grep -v $0
echo " "
echo -n "Do you want to kill this proces: (y/n):"
read answer
if [ "$answer" == "y" ] #condition for checking the user input
then
echo "Killing the process"
kill -9 $PID
if [ `ps -ef|grep $PID|grep -v grep|grep java|grep root|wc -l` -eq 1 ] #Checking process is relly killed or not
then
echo "Unable to kill the process $PID, Please contact System Admin for support"; fi
else
echo "Exiting without killing"
fi
else
echo "Please check the PID, Try with single PID"
echo "Syntax Error. Usage: $0 "
exit
fi

Thursday 3 December 2009

Configuring linux DNS server for LAN.




This is a caching DNS server for internet and DNS server for my local network. If any DNS entry is not available in local cache, it will forward the the same request to ISP DNS server and cache the same locally for next time. This will speed up the NAME resolving process.

There are some multiple entry for same IP. This for apache virtual host propose (By using this it is possible to host multiple website in a single IP. Apache divert the page by looking in the name the the client queried for)




Step 1:


Installing  DNS server: 



[root@latheefp# 
yum install bind-9*



Step 2: Editing configuration Files





[root@latheefp named]# cat /etc/named.conf
acl mynet { 192.168.1.0/24; 127.0/8; }; 
options {
# listen-on port 53 { 127.0.0.1; }; #replace this line with below
listen-on port 53 { 192.168.1.30; 192.168.1.1; 192.168.15.100; }; # All the system in the 192.168.1.0/24 and 192.168.15.x can acess this dns server.All three above are the IPs for this host.
listen-on-v6 port 53 { ::1; }; #This is the default dns port. 
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { mynet; };
recursion yes;
forwarders { 192.168.15.1; }; #IP of upstream ISP nameserver(s)
forward only; #relay completely on our upstream nameservers
};


logging{
channel simple_log {
file "/var/log/bind.log" versions 3 size 5m; #For any lookup, it make a log in this file
severity warning;
print-time yes;
print-severity yes;
print-category yes;
};
category default{
simple_log;
};
};


#This is my forward zone, all local IP and Host names are defied here
zone "riyadh.lan" IN {
type master;
file "/var/named/riyadh.lan.zone";
};



# Reverse Zone for riyadh.lan domain
zone "168.192.in-addr.arpa" IN {
type master;
file "/var/named/rev.192.168.1.l.zone";
};
zone "." IN {
type hint;
file "named.ca";
};

include "/etc/named.rfc1912.zones";


Step 3: Making Forward lookup zone file
This is the forward lookup zone db. 




For adding/removing/modifying any system, just do a entry in the bottom these two files and restart yp.


[root@latheefp /]# cat /var/named/riyadh.lan.zone
$TTL 1D
riyadh.lan.      IN      SOA     ns.riyadh.lan. admin.riyadh.lan. (


                                                        2009122701
                                                        3H ;refresh
                                                        15      ;retry
                                                        1w      ;expire
                                                        3h      ;negative ttl
)
                        IN      NS      ns.riyadh.lan.
                        IN      MX 10   mail.riyadh.lan.
ns                      IN     A        192.168.1.30
shimna                  IN     A        192.168.1.1
audit                   IN     A        192.168.1.1
phpmysql                IN     A        192.168.1.1
shimna                  IN     A        192.168.15.100
wimax                   IN     A        192.168.15.1    ;modem
wan             IN     A        192.168.15.100  ;modem
wifi            IN     A        192.168.1.100   ;wifimodem
mds                     IN     A        192.168.1.6     ;mds lap
tiger                   IN     A        192.168.1.3     ;tiger server
mail                    IN     A        192.168.1.20    ;tiger server
bitt                    IN     A        192.168.1.104 ;webserver
ent                     IN     A        192.168.1.107 ;webserver
film                    IN     A        192.168.1.40 ;webserver
song                    IN     A        192.168.1.40 ;webserver
;log                    IN     A        192.168.1.3 ;webserver
webmin                  IN     A        192.168.1.103 ;webserver
chimmu                  IN    A         192.168.1.7
webtiger                IN      A       192.168.1.106
linux           IN      A       192.168.1.101
ganglia         IN      A       192.168.1.102
iphone          IN      A       192.168.1.9
E65             IN      A       192.168.1.8
;shimna         IN      A       192.168.1.5
node1           IN      A       192.168.1.99
win7            IN      A       192.168.1.75






Step 4: Editing corresponding reverse lookup file.



[root@latheefp/]# cat /var/named/rev.192.168.zone
$TTL 1D
@ IN SOA ns1.riyah.lan. admin.riyadh.lan. (
                        2009122701;
                        28800;
                        604800;
                        604800;
                        86400
)


@                     IN    NS    ns.riyadh.lan.
30.1.168.192.in-addr.arpa.              IN    PTR   ns.riyadh.lan.
1.1.168.192.in-addr.arpa.               IN    PTR   shimna.riyadh.lan.
1.1.168.192.in-addr.arpa.               IN    PTR   audit.riyadh.lan.
1.1.168.192.in-addr.arpa.               IN    PTR   phpmysql.riyadh.lan.
100.15.168.192.in-addr.arpa.               IN    PTR   shimna.riyadh.lan.
104.1.168.192.in-addr.arpa.               IN    PTR   bitt.riyadh.lan.
107.1.168.192.in-addr.arpa.               IN    PTR   ent.riyadh.lan.
103.1.168.192.in-addr.arpa.               IN    PTR   webmin.riyadh.lan.
20.1.168.192.in-addr.arpa.              IN    PTR   mail.riyadh.lan.
40.1.168.192.in-addr.arpa.              IN    PTR   film.riyadh.lan.
40.1.168.192.in-addr.arpa.              IN    PTR   song.riyadh.lan.
;3.1.168.192.in-addr.arpa.               IN    PTR   log.riyadh.lan.
106.1.168.192.in-addr.arpa.               IN    PTR   webtiger.riyadh.lan.
7.1.168.192.in-addr.arpa.               IN    PTR   chimmu.riyadh.lan.
100.1.168.192.in-addr.arpa.             IN    PTR   wifi.riyadh.lan.
6.1.168.192.in-addr.arpa.               IN    PTR   mds.riyadh.lan.
3.1.168.192.in-addr.arpa.               IN    PTR   tiger.riyadh.lan.
1.15.168.192.in-addr.arpa.              IN    PTR   wimax.riyadh.lan.
100.15.168.192.in-addr.arpa.            IN    PTR   wan.riyadh.lan.
101.1.168.192.in-addr.arpa.            IN    PTR   linux.riyadh.lan.
102.1.168.192.in-addr.arpa.            IN    PTR   ganglia.riyadh.lan.
9.1.168.192.in-addr.arpa.            IN    PTR   iphone.riyadh.lan.
8.1.168.192.in-addr.arpa.            IN    PTR   E65.riyadh.lan.
;5.1.168.192.in-addr.arpa.            IN    PTR   shimna.riyadh.lan.
99.1.168.192.in-addr.arpa.            IN    PTR   node1.riyadh.lan.
75.1.168.192.in-addr.arpa.            IN    PTR   win7.riyadh.lan.



Step 5: Starting DNS server:


[root@latheefp/]# /etc/init.d/named start
Starting named:                                [  OK  ]


Named can be restarted using below command


[root@latheefp/]# /etc/init.d/named restart
Stopping named:
                                               [  OK  ]
Starting named:                    [  OK  ]


Now in any system in 192.168.1.x and 192.168.15.x  network can access this dns server for lookup.It can resolve all local hosts and other global hosts.

Monday 23 November 2009

Some Solaris commands for getting configurations

Network speed
root@test# dladm show-dev
bge0 link: up speed: 1000 Mbps duplex: full
bge1 link: up speed: 1000 Mbps duplex: full
bge2 link: up speed: 100 Mbps duplex: full
bge3 link: down speed: 0 Mbps duplex: unknown
nxge0 link: up speed: 1000 Mbps duplex: full
nxge1 link: unknown speed: 0 Mbps duplex: unknown
nxge2 link: unknown speed: 0 Mbps duplex: unknown
nxge3 link: down speed: 0 Mbps duplex: unknown
WWN number of HBA
root@server # fcinfo hba-port
HBA Port WWN: 10000000c952c6e2
OS Device Name: /dev/cfg/c2
Manufacturer: Sun Microsystems, Inc.
Model: LP10000DC-S
Type: unknown
State: offline
Supported Speeds: 1Gb 2Gb
Current Speed: not established
Node WWN: 20000000c952c6e2
HBA Port WWN: 10000000c952c6e1
OS Device Name: /dev/cfg/c3
Manufacturer: Sun Microsystems, Inc.
Model: LP10000DC-S
Type: unknown
State: offline
Supported Speeds: 1Gb 2Gb
Current Speed: not established
Node WWN: 20000000c952c6e1
root: /export/home/appl > prtconf -vp | grep wwn
port-wwn: 210000e0.8b8613ae
node-wwn: 200000e0.8b8613ae
port-wwn: 210000e0.8b8f4d67
node-wwn: 200000e0.8b8f4d67
root: /export/home/appl > prtpicl -v -c scsi-fcp | grep wwn
:node-wwn 20 00 00 e0 8b 86 13 ae
:port-wwn 21 00 00 e0 8b 86 13 ae
:node-wwn 20 00 00 e0 8b 8f 4d 67
:port-wwn 21 00 00 e0 8b 8f 4d 67
Complete Serial number saved in the machine
root@host1 # /opt/SUNWsneep/bin/sneep -a
ChassisSerialNumber from eeprom :
0516MM2x88
ChassisSerialNumber from backup : /etc/default/SUNWsneep :
0516MM2x88
ChassisSerialNumber from explorer :
0516MM2x88
ChassisSerialNumber from cst :
0516MM2x88
Maximum allowed process

root@latheefp# ulimit -a

core file size (blocks, -c) unlimited

data seg size (kbytes, -d) unlimited

file size (blocks, -f) unlimited

open files (-n) 256

pipe size (512 bytes, -p) 10

stack size (kbytes, -s) 8192

cpu time (seconds, -t) unlimited

max user processes (-u) 395

virtual memory (kbytes, -v) unlimited

root@latheefp# cat /etc/system|grep max

* set maxusers=40

shmsys:shminfo_shmmax 4294967295

set shmsys:shminfo_shmmax=4294967295

set max_nprocs=400

set rlim_fd_max=1024

root@latheefp# sysdef -i|grep max

drv/sparcv9/max1617

683368448 maximum memory allowed in buffer cache (bufhwm)

400 maximum number of processes (v.v_proc)

99 maximum global priority in sys class (MAXCLSYSPRI)

395 maximum processes per user id (v.v_maxup)

9 maximum number of pushes allowed (NSTRPUSH)

65536 maximum stream message size (STRMSGSZ)

1024 max size of ctl part of message (STRCTLSZ)

60 maximum time sharing user priority (TSMAXUPRI)

How to get LUN ID, WWN of a LUN
bash-3.00# luxadm probe
No Network Array enclosures found in /dev/es
Found Fibre Channel device(s):
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C2000000000000115Ad0s2
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C2000000000000107Ad0s2
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C2000000000000107Bd0s2
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C2000000000000107Cd0s2
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C20000000000001064d0s2
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C20000000000001065d0s2
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C20000000000001015d0s2
Node WWN:5005076304ffc7c2 Device Type:Disk device
Logical Path:/dev/rdsk/c3t6005076304FFC7C20000000000001014d0s2
bash-3.00# luxadm display /dev/rdsk/c3t6005076304FFC7C2000000000000107Bd0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c3t6005076304FFC7C2000000000000107Bd0s2
Vendor: IBM
Product ID: 2107900
Revision: .690
Serial Num: 75CVGC1107B
Unformatted capacity: 102400.000 MBytes
Write Cache: Enabled
Read Cache: Enabled
Minimum prefetch: 0x0
Maximum prefetch: 0x16
Device Type: Disk device
Path(s):
/dev/rdsk/c3t6005076304FFC7C2000000000000107Bd0s2
/devices/scsi_vhci/ssd@g6005076304ffc7c2000000000000107b:c,raw
Controller /devices/pci@1,700000/SUNW,qlc@0/fp@0,0
Device Address 50050763041807c2,5
Host controller port WWN 2100001b3209feeb
Class primary
State ONLINE
Controller /devices/pci@0,600000/pci@0/pci@9/SUNW,qlc@0/fp@0,0
Device Address 50050763041307c2,5
Host controller port WWN 2100001b320a239f
Class primary
State ONLINE
MPXIO Verion in Solaris
root@latheef # modinfo | egrep '(SunFC|mpxio|scsi_vhci)'
82 138feea 16680 149 1 fp (SunFC Port v20061220-1.66)
84 13aa6e5 8314 - 1 fctl (SunFC Transport v20061220-1.38)
86 13b1021 c7604 153 1 qlc (SunFC Qlogic FCA v20061215-2.18)
140 7879c000 2084b 150 1 fcp (SunFC FCP v20061220-1.94)
141 787be000 5794 - 1 mpxio (MDI Library v20070104-1.20)
142 787c4000 deca 189 1 scsi_vhci (SCSI vHCI Driver v20070104-1.45)
HBA Firmware information
root@lathef # luxadm qlgc
Found Path to 4 FC100/P, ISP2200, ISP23xx Devices
Opening Device: /devices/pci@15d,600000/SUNW,qlc@1/fp@0,0:devctl
Detected FCode Version: QLA2462 Host Adapter Driver(SPARC): 1.11 10/03/05
Opening Device: /devices/pci@15d,600000/SUNW,qlc@1,1/fp@0,0:devctl
Detected FCode Version: QLA2462 Host Adapter Driver(SPARC): 1.11 10/03/05
Opening Device: /devices/pci@17d,600000/SUNW,qlc@1/fp@0,0:devctl
Detected FCode Version: QLA2462 Host Adapter Driver(SPARC): 1.11 10/03/05
Opening Device: /devices/pci@17d,600000/SUNW,qlc@1,1/fp@0,0:devctl
Detected FCode Version: QLA2462 Host Adapter Driver(SPARC): 1.11 10/03/05
Complete
Will Conti......

Sunday 22 November 2009

Configuring solaris system as syslog server

By this proceedure, you can monitor all system logs froma a single host.

For configuring syslog server in Unix, nothing to do in sever side. Do the following changes in client side

1. Make a backup of /etc/syslog.conf file

2. Add the hostname of server in /etc/host (server should be pingable using hostname either DNS)

3. Add this line /etc/syslog.conf of client

4.

*.err;kern.debug;daemon.notice;mail.crit @remoteunixhostname

Note down, don’t use any space in /etc/syslog.conf file, use only tabs instead.

5. Restart sylog service in client

svcadm restart svc:/system/system-log:default -> this is for solari 10

/etc/init.d/syslog stop; /etc/init.d/syslog start -> this is for other solaris OS

6. Make sure UDP port 514 is opened from client to server (client -514 ->server)

Once its ok, you will be all to see all logs generated in clients will be logged either in /var/adm/messages of server and /var/adm/messages of client. If you have multiple client add the same entry in all client. Messages can be identified from server side, by host name of the client in each line of messages.

My non interactive jumpstart server sample configuration-using iso image

#creating a loopback device using iso image
root@cat # lofiadm -a /admin/unix/jump/ISO/sol-10-u5-ga-sparc-dvd.iso /dev/lofi/1
#mouting lofidevice to /mnt
root@cat # mount -F hsfs /dev/lofi/1 /mnt
#command for copying DVD content inclulding boot block to the machine (normal jumpstart command)
root@cat # /mnt/Solaris_10/Tools/setup_install_server /admin/unix/jump/10u5/
root@cat # cat sysidcfg
system_locale=en_US
timezone=Asia/Riyadh
network_interface=primary {protocol_ipv6=no netmask=255.255.254.0 default_route=none}
terminal=vt100
security_policy=NONE
name_service=NONE
timeserver=localhost
root_password=e1VrOBR04fXBY
nfs4_domain=dynamic
keyboard=US-English
root@cat # cat rules
#This is the role set for each machine. Eg is given in first second line
hostname cat - solaris10.flar -
hostname gorilla-mgt - gorilla.os gorilla.finish
hostname bear-mgt - v245.flar bear.finish
hostname tiger-mgt - v245.flar tiger.finish
root@cat # cat gorilla.os
install_type initial_install
system_type standalone
partitioning explicit
filesys rootdisk.s0 40460 /
filesys rootdisk.s1 16384 swap
filesys rootdisk.s3 76001 /var
filesys rootdisk.s4 2007 /opt/patrol
filesys rootdisk.s5 2007 /opt/tivoli
filesys rootdisk.s7 100 unnamed
cluster SUNWCprog
package SUNWman delete
cluster SUNWCacc
root@cat # cat v245.flar
install_type flash_install
archive_location nfs 10.14.48.26:/admin/unix/jump/flars/V245.flar
partitioning explicit
filesys rootdisk.s0 40460 /
filesys rootdisk.s1 16384 swap
filesys rootdisk.s3 76001 /var
filesys rootdisk.s4 2007 /opt/patrol
filesys rootdisk.s5 2007 /opt/tivoli
filesys rootdisk.s7 100 unnamed
root@cat # cat gorilla.finish
echo "Starign post scripts"
echo "10.14.11.172 gorilla-bge1 gorilla-bge1.prod.mobily.lan">>/a/etc/hosts
echo "10.14.11.173 gorilla-nxge0 gorilla-nxge0.prod.mobily.lan">>/a/etc/hosts
echo "10.14.11.174 gorilla gorilla.prod.mobily.lan">>/a/etc/hosts
#Lines for adding ipmp configuration automatically
echo "gorilla-bge1 deprecated -failover netmask + broadcast + group development up" > /a/etc/hostname.bge1
echo "addif gorilla netmask + broadcast + up" >> /a/etc/hostname.bge1
echo "gorilla-nxge0 deprecated -failover netmask + broadcast + group development up">/a/etc/hostname.nxge0
echo "10.14.11.0 255.255.255.0" >>/a/etc/netmasks
echo "10.14.11.1" >/a/etc/defaultrouter
rm -r /a/.ssh
mkdir /a/.ssh
echo "ssh-dss AAAAB3NzaC1kc3MAAACBAOGV11ge/Qa+z+4Ydvd/s+6aGdweqEqTrvWgPtW0Axl3RrJ2LZmt8toWDumEVfxKnX4yb7YIvSR/cFrKAmE1UI6PN2dmVdybIDOmC+dfDQ4UmdlDMueNdkTY06NTRPrMELFAiKwNNRspW4q7DT43yreCWx/8zYSuOqr+OxET2wChAAAAFQDM5Bm9IpVI/QBZTMvKlBxeoBjk6QAAAIEAggMnQeJylappw8II3WB+LFWvlyUTnNMNIuzrGyrMxXsb8CZ8fZKXpK+h+WKWXyiqqnJ2svqtUgXbKlOrmCVoSDqU15xOv32emDk6BPiwBLcedoOJ3TRLnZu/Ogafy8pltrfJKi9Ffjblfdi1muDjmcw5JU9CPh1Zh08G5uogpX4AAACAFOBYOQn6UYMrZY/KYw3f4hFk6/qdGEu7YQNhMZvSft0/L5bVV/QlWF7DLzwiGnooUmTAXav9G2V5tqVctoHKejyoMQeAXzgZGMAmmiDhcGG6Cl813SOjZwfKZCVYve/yelr9IY2UVi/psQr6gzWdcRB69LHvZRpYfKO6H9z6+3s= root@cat">/a/.ssh/authorized_keys
#command for adding one clinent
../10u5/Solaris_10/Tools/add_install_client -e 0:14:4f:d2:e8:d0 -s 10.14.48.26:/admin/unix/jump/10u5/ -c 10.14.48.26:/admin/unix/jump/config -p 10.14.48.26:/admin/unix/jump/config gorilla sun4u
root@cat # cat /etc/ethers |grep gorilla
0:14:4f:d2:e8:d0 gorilla-mgt
root@cat # cat /etc/hosts|grep gorilla
10.14.48.27 gorilla-sc
10.14.48.28 gorilla-mgt

Script for Continuous monitoring of percentage of page file usage in solaris

#script for monitoring page file usage in %. written by latheefp@gmail.com
while true
do
used=`swap -s|awk {'print $9'}|cut -dk -f1`
#echo "Used is :`expr $used / 1024`MB"
avail=`swap -s|awk {'print $11'}|cut -dk -f1`
#echo "Available is :`expr $avail / 1024`MB"
total=`expr $used + $avail`
#echo "Total is :`expr $total / 1024`MB"
percused=`expr $used \* 100`
percent=`expr $percused / $total`
#echo "Percentage of page file usage is :$percent% "
clear
echo "Used Available Total %Used"
echo "`expr $used / 1024`MB `expr $avail / 1024`MB `expr $total / 1024`MB $percent%"
sleep 5
done

Sunday 11 October 2009

Proceedure for Upgrading M4000/M5000/M9000 firmware

For proceeding with this proceedure, there should be one ip for the console of Mxxx machine.
I have mapped this ip in /etc/hosts file as M4000-sc
Here we are upgrading from 1080 to 1082
Befor you are going to updrade please note,
1. Download and keep the firware in the console machine, (eg: with the path /fw/FFXCP1082.tar.gz)
2. Enble ftp server and root ftp login to console machine
root@console # ssh sun@M4000-sc
sun@M4000-sc's password:
Last login: Wed Jul 8 10:27:18 2009 from 10.14.48.26
#To see the status of the current running domain
XSCF> showdomainstatus -a
DID Domain Status
00 Running
01 -
#To see the the current firware verion
XSCF> version -c xcp
XSCF#0 (Active )
XCP0 (Current): 1080
XCP1 (Reserve): 1080
XSCF> version -c xcp -v
XSCF#0 (Active )
XCP0 (Current): 1080
OpenBoot PROM : 02.07.0000
XSCF : 01.08.0003
XCP1 (Reserve): 1080
OpenBoot PROM : 02.07.0000
XSCF : 01.08.0003
OpenBoot PROM BACKUP
#0: 02.03.0000
#1: 02.07.0000
XSCF> version -c xscf
XSCF#0 (Active )
01.08.0003(Current) 01.08.0003(Reserve)
XSCF> version -c xcp -v
XSCF#0 (Active )
XCP0 (Current): 1080
OpenBoot PROM : 02.07.0000
XSCF : 01.08.0003
XCP1 (Reserve): 1080
OpenBoot PROM : 02.07.0000
XSCF : 01.08.0003
OpenBoot PROM BACKUP
#0: 02.03.0000
#1: 02.07.0000
Downloading patch to the controller from console machine
XSCF> getflashimage -u root ftp://192.168.1.56/fw/FFXCP1082.tar.gz #-> this is the ip of my console machine
Existing versions:
Version Size Date
FFXCP1080.tar.gz 51299678 Thu Dec 11 07:07:20 AST 2008
Warning: About to delete existing versions.
Continue? [y|n]: y
Removing FFXCP1080.tar.gz.
Password:
0MB received
1MB received
2MB received
3MB received
4MB received
5MB received
6MB received
7MB received
8MB received
9MB received
10MB received
11MB received
12MB received
13MB received
14MB received
15MB received
16MB received
17MB received
18MB received
19MB received
20MB received
21MB received
22MB received
23MB received
24MB received
25MB received
26MB received
27MB received
28MB received
29MB received
30MB received
31MB received
32MB received
33MB received
34MB received
35MB received
36MB received
37MB received
38MB received
39MB received
40MB received
Download successful: 41468 Kbytes in 74 secs (586.778 Kbytes/sec)
Checking file...
MD5: 131259c1347204c1150592f8447833ae
Download completed, still the version is as old, ie, 1080
XSCF> version -c xcp -v
XSCF#0 (Active )
XCP0 (Current): 1080
OpenBoot PROM : 02.07.0000
XSCF : 01.08.0003
XCP1 (Reserve): 1080
OpenBoot PROM : 02.07.0000
XSCF : 01.08.0003
OpenBoot PROM BACKUP
#0: 02.03.0000
#1: 02.07.0000
Checking whther this is upgradable or not
XSCF> flashupdate -c check -m xcp -s 1082
XCP update is possible with domains up
Starting to upgarade
XSCF> flashupdate -c update -m xcp -s 1082
The XSCF will be reset. Continue? [y|n] :y
Checking the XCP image file, please wait a minute
XCP update is started (XCP version=1082:last version=1080)
OpenBoot PROM update is started (OpenBoot PROM version=02090000)
OpenBoot PROM update has been completed (OpenBoot PROM version=02090000)
XSCF update is started (XSCFU=0,bank=1,XCP version=1082:last version=1080)
XSCF download is started (XSCFU=0,bank=1,XCP version=1082:last version=1080, Firmware Element ID=00:version=01080001:last version=01080000)
XSCF download has been completed (XSCFU=0,bank=1,XCP version=1082:last version=1080, Firmware Element ID=00:version=01080001:last version=01080000)
XSCF download is started (XSCFU=0,bank=1,XCP version=1082:last version=1080, Firmware Element ID=01:version=01080005:last version=01080003)
XSCF download has been completed (XSCFU=0,bank=1,XCP version=1082:last version=1080, Firmware Element ID=01:version=01080005:last version=01080003)
XSCF download is started (XSCFU=0,bank=1,XCP version=1082:last version=1080, Firmware Element ID=02:version=01080001:last version=01080000)
XSCF download has been completed (XSCFU=0,bank=1,XCP version=1082:last version=1080, Firmware Element ID=02:version=01080001:last version=01080000)
XSCF download is started (XSCFU=0,bank=1,XCP version=1082:last version=1080, Firmware Element ID=03:version=01080004:last version=01080000)
XSCF download has been completed (XSCFU=0,bank=1,XCP version=1082:last version=1080, Firmware Element ID=03:version=01080004:last version=01080000)
XSCF download is started (XSCFU=0,bank=1,XCP version=1082:last version=1080, Firmware Element ID=04:version=01080005:last version=01080003)
XSCF download has been completed (XSCFU=0,bank=1,XCP version=1082:last version=1080, Firmware Element ID=04:version=01080005:last version=01080003)
XSCF download is started (XSCFU=0,bank=1,XCP version=1082:last version=1080, Firmware Element ID=05:version=01080001:last version=01080000)
XSCF download has been completed (XSCFU=0,bank=1,XCP version=1082:last version=1080, Firmware Element ID=05:version=01080001:last version=01080000)
XSCF download is started (XSCFU=0,bank=1,XCP version=1082:last version=1080, Firmware Element ID=07:version=01080004:last version=01080000)
XSCF download has been completed (XSCFU=0,bank=1,XCP version=1082:last version=1080, Firmware Element ID=07:version=01080004:last version=01080000)
XSCF update has been completed (XSCFU=0,bank=1,XCP version=1082:last version=1080)
XSCF is rebooting to update the reserve bank
XSCF> Connection to M4000-sc closed by remote host.
Connection to M4000-sc closed.
sc got colsed here, we have waite some time, the sc to come up. after login to sc again, it will take some time to get the lastes verion updated
root@console # ssh sun@M4000-sc
sun@M4000-sc's password:
flashupdate now in progress.
please wait for flashupdate complete
Last login: Sat Jul 11 09:09:13 2009 from 10.14.48.26
flashupdate now in progress.
please wait for flashupdate complete
XSCF> getflashimage -l
Existing versions:
Version Size Date
FFXCP1082.tar.gz 42463513 Sat Jul 11 09:19:11 AST 2009
Firware is graded succesfully with 1082 version.
XSCF> version -c xcp -v
XSCF#0 (Active )
XCP0 (Reserve): 1082
OpenBoot PROM : 02.09.0000
XSCF : 01.08.0005
XCP1 (Current): 1082
OpenBoot PROM : 02.09.0000
XSCF : 01.08.0005
OpenBoot PROM BACKUP
#0: 02.09.0000
#1: 02.07.0000
XSCF> version -c xscf
XSCF#0 (Active )
01.08.0005(Reserve) 01.08.0005(Current)
XSCF> console -d 0
Connect to DomainID 0?[y|n] :y
{19} ok
{19} ok
{19} ok
{19} ok
{19} ok
{19} ok banner
Sun SPARC Enterprise M4000 Server, using Domain console
Copyright 2008 Sun Microsystems, Inc. All rights reserved.
Copyright 2008 Sun Microsystems, Inc. and Fujitsu Limited. All rights reserved.
OpenBoot 4.24.10, 32768 MB memory installed, Serial #86366072.
Ethernet address 0:21:28:25:d7:78, Host ID: 8525d778.
{19} ok reset-all
Resetting...