Linux Projects

Sunday, July 22, 2018

this kathrivel

Friday, November 29, 2013

HP ILO reset from OS





Configure ILO through Windows command line                                                                                                                                                                                                                 

Login to server abc

open cmd
goto location C:\Program Files\HP\hponcfg

C:\Program Files\HP\hponcfg>hponcfg.exe /w c:\temp\ilo_current.xml
Firmware Revision = 1.78  Device type = iLO 2  Driver name = CpqCiDrv
iLO configuration successfully written to file "c:\temp\ilo_current.xml"

Edit that file with notepad change the ip,gw and subnet (below lines), and apply it back to the iLo with:

<IP_ADDRESS VALUE="new ip" />

<SUBNET_MASK VALUE="subnet" />

<GATEWAY_IP_ADDRESS VALUE="gateway" />

example : -
<IP_ADDRESS VALUE="170.86.43.250" />

<SUBNET_MASK VALUE="255.255.255.0" />

<GATEWAY_IP_ADDRESS VALUE="170.86.43.1" />

Save as ilo_new.xml

Apply it back to the iLo

Supply the user name password correctly in that file.

C:\Program Files\HP\hponcfg>hponcfg.exe /f c:\temp\ilo_new.xml

After save the IP, GW and subnet follow the down for reset the ILO through OS end.

Reset the ILO through OS end                                                                                                                                                                                                                                            

Open a file ilo_reset.xml and edit through notepad and past the below lines
In below need specify the ILO user name and passwd.

<RIBCL VERSION="2.0">
   <LOGIN USER_LOGIN="IloUsername" PASSWORD="password">
      <RIB_INFO MODE="write">
         <RESET_RIB/>
      </RIB_INFO>
   </LOGIN>
</RIBCL>

Save it and run the same through hponcfg
C:\Program Files\HP\hponcfg>hponcfg.exe /f ilo_reset.xml

After that connect the ILO through IE it will open.


CLARiiON Disk reference removal online (using Script) on RHEL5 & 6



List the CLARiiON Disk on Server                                                                             

Logon to Server (the below steps are applicable for RHEL 5 Version)
Check the CLARiiON disks
Check for lsscsi command (if command not installed please install the lsscsi command utility using)
sudo yum install lsscsi
sudo lsscsi | grep DGC
Save the Disk name in a file devremove
sudo sh –c “lsscsi  | grep DGC | awk -F " " '{ print $7 }' > /var/tmp/devremove”

Flush outstanding I/O and remove the CLARiiON Disk’s reference                       

1. If FS is mounted please umount the relavent FS
2. If disk are under logical volume please remove and follow 5 th step.
3. Check the multipath –l output and check the CLARiiON disks are controlled by Multipath
4. If multipath is configured please stop the multipath and remove the CLARiiON disks
5. Flush any outstanding I/O to all paths to the device and Remove any reference to the device's path-based name using the following script
cd /var/tmp
Copy the below script to devscript file
vim devscript
#/bin/bash
for i in `cat devremove`
do
/sbin/blockdev --flushbufs $i
rm -r $i
done
Save the file and run the script for Flush any outstanding I/O to all paths to the device and Remove any reference to the device's path-based name using the following script
sudo sh devscript

Finally, remove each path to the device from the SCSI subsystem            

Finally, remove each path to the device from the SCSI subsystem using following script
Grep for the device names (only like sda, sdb…) and save it to devremove.1
cat devremove | awk -F "/" '{ print $3 }' > /var/tmp/devremove.1
Copy the below script and run
vim devscript.1
#/bin/bash
for i in `cat devremove.1`
do
sh -c "echo 1> /sys/block/$i/device/delete"
done
Save it and run the command.
Sudo sh devscript.1.

Verify all CLARiiON Disks are removed from the system          

Run the lsscsi command and grep for DGC disks (CLARiiON Disks)
sudo lsscsi | grep DGC
sudo /sbin/inq.linux
sudo /usr/sbin/pvs

Start the multipath if stopped. Inform the Storage team for removal of CLARiiON Disks

HP DL 380 G5,G6,G7 Upgrade the BIOS Firmware for Redhat Linux Servers





Upgrade the BIOS Firmware for Redhat Linux Servers                                                                                                                                                                                                     

Check the server model in HP SMH and BIOS Version

Home à System à System Board à ROM Version: 01/30/2011, Family 386P62, Type 03

Copy the Bios upgrade file \\hell\Software\Shared Software\BIOS Firmware\{Machine Model}\CP*******.scexe to local machine /var/tmp

Cd /var/tmp
Sudo chmod +x CP*****.scexe
Sudo sh CP*****.scexe

Reboot the server

Verify in HP SMH
Home à System à System Board à ROM Version: 05/05/2011, Family 386P62, Type 03

Upgrade the BIOS Firmware for Windows Servers                                                                                                                                                                                                          

Check the server model in HP SMH and BIOS Version

Home à System à System Board à ROM Version: 01/30/2011, Family 386P62, Type 03

Copy the Bios upgrade file from \\hell\Software\Shared Software\BIOS Firmware\{Machine Model}\CP*******.exe to local machine D:\Temp

Run the CP******.exe file and install
Reboot the server

Verify in HP SMH
Verify in HP SMH
Home à System à System Board à ROM Version: 05/05/2011, Family 386P62, Type 03

Add new datastore on VMware



                                                                 Add new datastore on VMware

Step 1:-

1.     Select any host in datacenter and click on configuration tab-> storage -> Rescan All






Step 2:-

1.  Select scan for new storage devices and click ok


Step 3:-

1. Click on add storage



Step 4:-

1.  Select Disk/LUN and click next



Step 5:-

1.  Select EMC Fibre Channel disk and click next




Step 6:-

1.  Enter the datastore name: - SANSymVMFS-###


Step 7:-

1. Select 8 MB block size and click next.



Step 7:-

1. Click on Finish