Tuesday, March 13, 2012

Power Path Operation on RedHat

Check if License installed or not
# powermt check_registration
<key shows up here>
  Product: PowerPath
  Capabilities: All
Start Power Path
# /etc/init.d/PowerPath start

install license

# emcpreg -install

===========   EMC PowerPath Registration ===========
Do you have a new registration key or keys to enter?[n] y
Enter the registration keys(s) for your product(s),
one per line, pressing Enter after each key.
After typing all keys, press Enter again.

Key (Enter if done): **emc-powerpath-license-key**
1 key(s) successfully added.
Key successfully installed.

Key (Enter if done):
Key  is invalid, ignored.
Try again or press Enter if done.
1 key(s) successfully registered


powermt config
powermt save
powermt set policy=co dev=all
powermt display dev=all

to clean up dead LUN
pwermt check

Cleaning up wstemp directory for WAS adminconsole workspace

remove all contents under the following folders:


dmgr_profile/wstemp
dmgr_profile/config/temp
dmgr_profile/temp

Wednesday, March 7, 2012

Unix Sort by Date in Text file

Data File

d10NVaR_Berm_Pll_AggrInfo_ST 03/05/2012
d10NVaR_Berm_Stress_New_PVs 03/05/2012
command line:
sort -r -t ' ' -nk2.7,2.10 -nk2.1,2.2 -nk2.4,2.5 called_jobs.txt > sorted_by_date.txt