Categories
vmware

Kemaskini ESXi 5.1 menggunakan PowerShell

> Connect-VIServer -Server 10.0.0.100 -User root -Password password

> Get-VMhost | Select name, ConnectionState, Version, Build

[code lang=’plain’]Name ConnectionState Version Build
—- ————— ——- —–
10.0.0.100 Connected 5.1.0 2323236[/code]

> Set-VMhost -State Maintenance

[code lang=’plain’]Name ConnectionState PowerState NumCpu CpuUsageMhz CpuTotalMhz MemoryUsageGB MemoryTotalGB Version
—- ————— ———- —— ———– ———– ————- ————- ——-
10.0.0.100 Maintenance PoweredOn 4 137 9040 1.527 43.991 5.1.0

> Get-Datastore

Name FreeSpaceGB CapacityGB
—- ———– ———-
maildatastore1 328.009 1,672.750
datastore1 265.133 274.000[/code]

> New-PSDrive -name "mounteddatastore" -Root \ -PSProvider VimDatastore -Datastore (Get-Datastore datastore1)

[code lang=’plain’]Name Used (GB) Free (GB) Provider Root CurrentLocation
—- ——— ——— ——– —- —————
mounted… VimDatastore \10.0.0.100@443\ha-datacenter\da…[/code]

> Copy-Datastoreitem C:\Users\umarz\Downloads\ESXi510-201605001.zip -Destination mounteddatastore:

SSH ke ESXi dan taip

# esxcli software vib install -d /vmfs/volumes/datastore1/ESXi510-201605001.zip
# esxcli system shutdown reboot --reason patch

Categories
xen

Patch XenServer (server tunggal)

Selepas upload patch file dalam format zip ke XenServer

scp

  1. Ekstrak fail zip patch

    # unzip XS62E004.zip

  2. Upload ke master pool (default untuk single server)

    # xe patch-upload file-name=XS62E004.xsupdate
    5579f1f0-ff83-11e2-b778-0800200c9a66

  3. Apply patch

    # xe patch-pool-apply uuid=5579f1f0-ff83-11e2-b778-0800200c9a66

    # xe-toolstack-restart

  4. Reboot kalau perlu

applied

Categories
internet perisian

Patch MediaWiki

Contoh patch dari versi 1.15.2 ke 1.15.3
*akses ssh ke pelayan web diperlukan

Setelah tukar ke dalam folder di aras atas folder mediawiki. Cth: /home/umarzuki/laman/wiki adalah lokasi pemasangan, jadi
cd /home/umarzuki/laman/

Muat turun fail patch
wget http://download.wikimedia.org/mediawiki/1.15/mediawiki-1.15.3.patch.gz

Mulakan
zcat mediawiki-1.15.3.patch.gz | patch -p1 -d wiki