Thursday, July 11, 2013

Install agent EMC on Solaris 10 (Sparc)

Install EMC Agent: 

pkgadd -d HostAgent-Solaris-32-sparc-en_US-1.1.0.1.0366-1.pkg

pkgadd -d NaviCLI-Solaris-32-sparc-en_US-7.31.0.3.66-1.pkg
select l *

  
Edit Agent File:

vi agentID.txt
add
host
ip


ex:
nidadb.nida.ac.th
202.44.72.223

restart agent

/etc/init.d/agent stop
/etc/init.d/agent start


Install EMC PowerPath:

extact EMCPower.SOLARIS.5.3.P01.b009.tar

pkgadd -d .

install licence
cd /etc
emcpreg -add AAAA-BBBB-CCCC-DDDD-EEEE

./powercf -q  //verify device on host
./powermt config //verify device on host


set device policy as clariion open
=======================
powermt set policy=co dev=all
powermt save

Check HBA Port:

fcinfo hba-port

luxadm -e port

Wednesday, June 5, 2013

Hyper-V on ESXi5

- เปิด Service SSH ที่เครื่อง ESXi
echo ‘vhv.allow = “TRUE” ‘ >> /etc/vmware/config
- ติดตั้ง Windows 2012 ตามปกติ
- หลังจากติดตั้งเสร็จแล้วให้ไปแก้ไฟล์ .vmx ของ vmware guest ตัวที่เราติดตั้ง เช่น hyv-node-01.vmx
แก้บรรทัดคำสั่ง

    จาก guestOS = “Microsoft 2012″ หรือ ชื่ออื่น
    เป็น guestOS = “winhyperv”

เพิ่มบรรทัดคำสั่ง

    hypervisor.cpuid.v0 = FALSE

- สั่ง Power On Guest
- ติดตั้ง VMware Tools

credit:http://www.vmware.in.th/pumpith/vmware-%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87-hyper-v-%E0%B8%9A%E0%B8%99-windows-2012-%E0%B9%83%E0%B8%99-esxi-5-1.html

Monday, June 3, 2013

awk + for shell

#!/bin/bash

ff=$(awk -F: '{print $1}' /etc/passwd | grep user )

for i in $ff ; do something in $i ; done

Get password from ORACLE local user

select dbms_metadata.get_ddl('USER', username) || '/' usercreate from dba_users where username like 'SCOTT';

select spare4 from user$ where name='SCOTT';

Thursday, May 30, 2013

Install vSphere Client 5.1 on Windows 8

1. Use 7-zip to open the ~350MB executable and extract the contents
2. In Windows 8, run dotnetfx35.exe – it will prompt you to download and install .NET 2.0. I let it download and install the files it needed.
   Next, run vjredist64.exe (Assuming Windows 8 x64)
3. Right-Click VMware-viclient.exe, choose “Properties”
   On the “Compatibility” tab, check the “Run this program in compatibility mode for:” and choose “Windows 7″ from the list. Click “Ok”
4. Run the VMware-viclient installer as you normally would.

Tuesday, May 28, 2013

Uninstall AltirisAgent

C:\Program Files\Altiris\Altiris Agent>AeXAgentUtil.exe /uninstallagents /clean

ALCATEL 6900

write memory copy running certified reload from working no rollback-timeout