Mobil Mewah

Salah satu sumber Inspirasi.

Mobil Sport terbaik

Anda pasti bisa memilikinya.

Bermain dengan pesawat

Salah satu ide yang gila, Balapan di udara.

Bermain di angkasa

Apakah ini salah satu Goals dalam hidup anda? anda pasti bisa mencapainya

Thursday, 29 March 2018

To add a Vlan in a VMware cluster in 1 line of command

One task as a Vmware admin was to add a network Vlan on the ESXi server you manage.

How are you going to update a cluster with more than 10 server ? Simple way was access the Vcenter and do it 1 by 1 on network config. Really ?

Can we do like a linux machine, update on 1 command and then enter ?

Get friend with the Vsphere CLI , you can do a batch update on a cluster.

Here are command to add a vlan in a Vmware cluster using Vsphere CLI.

Connect-VIServer vcenter01.localnetwork.local
get-cluster -name datacenter01 | Get-VMHost | Get-VirtualSwitch -name “vSwitch1” | New-VirtualPortGroup -Name “Srv.SecureServers” -VLanId “1337”

You will be thankfull with these command.

Yes thank you .

I am a lazy system admin.

Tuesday, 6 March 2018

Docker the new best friend of developer

Docker Logo
Recently i had review some Docker talks in youtube, and curious what it's value for me to learn it. So Docker is some package manager like vagrant, which ships code easily, or like to say same with puppet / chef out there.

And this time , seems docker differentiate it with Virtualization and claim more better and efficient. Like Git which only updates the changes part, so its efficient on storage and speed.

Also Docker based on Go, and foundation is running lxc (Linux container). so if compare to virtualization, of course docker is faster, as it is native on the os.

So the promise of Docker was when you build and run on your machine, it will run in any machine. Sounds good for developer. And for me this one of my problem with development, as i have move several times on my computer which have issue, i have to build my development environment, not to mention different OS and also updated library make it worse and some times not compatible anymore.

I problem i hit was my app using CakePHP 1.1 and PHP 5.1, yeah so old. I try to run it but cannot on newer OS, but install old OS version neither an options as many provider not support old OS also. Try tinkering with Docker and have fun, but still PHP5.1 still not available in Docker.

Thats the end of my journey with Docker, and then some days ago also hit issue with Erlang.
I need my Erlang code run with OTP 17.5 but on newest OS debian stretch , cannot compile perfectly with crypto support.

Tired with this, try Docker again, and i see some light with the development using Docker, Docker-compose.

Let see next step, i will blog more on my Docker journey.

Twitter Delicious Facebook Digg Stumbleupon Favorites More