Tuesday, November 3, 2015

iSCSI on Solaris 10 x86

-Check iSCSI Service

svcs -a | grep iscsi
svcadm enable svc:/network/iscsi_initiator

-iSCSI setup initiator

iscsiadm add discovery-address 192.168.1.10:3260
iscsiadm modify initiator-node -a CHAP
iscsiadm modify initiator-node -H username
iscsiadm modify initiator-node -C
(specify CHAP password)

-iSCSI send target for Enable

iscsiadm modify discovery --sendtargets enable <--- for enable target
iscsiadm modify discovery --sendtargets disable <--- for disable target

iscsiadm list target
iscsiadm add static-config iqn.2015-11.com.wdc:wdsentinel-01-oracle-rman,192.168.1.10:3260
devfsadm -c iscsi

Sunday, October 11, 2015

remote orphaned user from office365

Power shell
-logon to office365

$credential = Get-Credential
Import-Module MsOnline
Connect-MsolService -Credential $credential
Get-MsolAccountSku

-remove command   

Remove-MsolUser -UserPrincipalName <account id>
Remove-MsolUser -UserPrincipalName <account id> -RemoveFromRecycleBin

Tuesday, October 6, 2015

plugin integration client vsphere 6.0 on Firefox

about:config

security.ssl3.dhe_rsa_aes_128.sha
security.ssl3.dhe_rsa_aes_256_sha

toggle to False

Friday, September 25, 2015

ADD Swap to ORACLE LINUX

Add Swap file on ORACLE LINUX

fdisk /dev/sdb

create partition

-create swap file
mkswap /dev/sdb1

-add swap
swapon -a /dev/sdb1


-add in /etc/fstab

/dev/sdb1    swap swap    deafults 0 0

Thursday, September 10, 2015

ORACLE ASM not start (ORA-01078, ORA-29701)

ORACLE ASM not start

SQL> startup
ORA-01078: failure in processing system parameters
ORA-29701: unable to connect to Cluster Synchronization Service


(+ASM) /export/home/oracle $ crs_stat -t
Name           Type           Target    State     Host
------------------------------------------------------------
ora.DATA.dg    ora....up.type ONLINE    ONLINE    devdb01
ora.FRA.dg     ora....up.type ONLINE    ONLINE    devdb01
ora....ER.lsnr ora....er.type ONLINE    ONLINE    devdb01
ora.asm        ora.asm.type   ONLINE    ONLINE    devdb01
ora.cssd       ora.cssd.type  ONLINE    ONLINE    devdb01
ora.diskmon    ora....on.type ONLINE    ONLINE    devdb01
ora.evmd       ora.evm.type   ONLINE    ONLINE    devdb01
ora.meis.db    ora....se.type ONLINE    ONLINE    devdb01
ora.ons        ora.ons.type   OFFLINE   OFFLINE


ENABLE HAS

(+ASM) /export/home/oracle $ crsctl enable has
CRS-4622: Oracle High Availability Services autostart is enabled.

(+ASM) /export/home/oracle $ crsctl start has
CRS-4123: Oracle High Availability Services has been started.



Connect ORACLE +ASM instance

sqlplus / as sysasm
startup

esxi update patch error ( thumbprint, not trusted)

Error:
Connect to esxi.mydomain.com failed. Server SHA-1 thumbprint 5D:01:06:63:55:9D:DF:FE:38:81:6E:2C:FA:71:BC:63:82:C5:16:51 <not trusted>

- install VMware Vsphere CLI


C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\apps\general>
credstore_admin.pl add --server esxi.mydomain.com --username my_user --password my_password
credstore_admin.pl add --server esxi.mydomain.com --thumbprint 5D:01:06:63:55:9D:DF:FE:38:81:6E:2C:FA:71:BC:63:82:C5:16:51

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>
esxcli --server esxi.mydomain.com --username my_user software vib update --depot=/vmfs/volumes/Data_Store_name/Path_file/ESXi550-201412001.zip

Tuesday, September 1, 2015

VMware PowerCLI export ova

#Set ENV
$VM = Get-Content .\vmhost_list.txt
$BackupvCenter = "vCenter.domain.local"
$BackupHost = "esxi-01.Domain.local"
$backupDate = Get-Date -Format yyyyMMdd
$backupDatastore = "vmd-01:LocalStorage"

Connect-VIServer -Server $BackupvCenter -User user_name@domain.local -Password user_password

#Dynamically create a folder
$BackupDir = "E:\vMware-backup\$BackupDate"
mkdir $BackupDir

foreach ($line in $VM) {

    Get-VM -Server $BackupvCenter  | where { $_.PowerState -like 'PoweredOn' -and $_.name -like $line } | select name, vmhost, usedspacegb

    $VM_TMP = $line+'-ova_backup-'+$backupDate

#Clone New VM
New-VM -Name $VM_TMP -VM $line -VMHost $BackupHost -Datastore $backupDatastore

#Export OVA file
Export-VApp -Destination $BackupDir -VM $VM_TMP -Format OVA

#Remove-VM $TMP -DeleteFromDisk -Confirm:$true
}

ALCATEL 6900

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