Ask , 0 Comments

Let’s take the linux shadow file as an example. Using sed you can replace the root user password with an empty character. Suppose your /etc/shadow file look like this: [root@localhost ~]# cat /etc/shadow root:$6$GE3JYGgDvt5jloXN$l0cNhqsh8564GHsdSgUGz79Cqm2ml.Q0xmtgSDyUVdJRHrgFIWPd0QKB02RedspqunU4yYS0/xDI0fcZgEGt.::0:99999:7::: You can use the following sed command to replace the root password string between the two semicolon with an empty string.

Read More

Python 0 Comments

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

Read More