Category: Python

There is many ways to backup and restore on Linux machines, but when you have a specific need you must use some sort of scripting, don’t rely on tools because i think this get you stuck in thinking that there no other way to do the thing you need to do. The requirement was that

AutoRoot will scan for any logical volume containing the word root or for block devices starting from /dev/sda1…/dev/sda10, /dev/sdb1…/dev/sdb10, /dev/sdc1…/dev/sdc10, it will then try to mount the volume and check for the password file,if found, it will change the root password to: vNugget.com This started as a simple exercise to get familiar with the python

ViewVmEvents is a python script that can be used to view a specific event related to a VMware virtual machine. The events type can be one of the following: Reboot, Shutdown or Standby. I was experimenting with the Pyvmomi SDK for the VMware vSphere API, on how I can quickly view a virtual machine event without going