While experimenting with the vSphere API using the Python pyvmomi SDK, I was wondering if there is any way to test guest credentials after I have reset a user password, so the main idea is to automate all the process of resetting the root password on a linux virtual machine. If you haven’t read my
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.
I was working on my CentOS 7 box to get familiar with some new functionalities, as you know RHEL 7 and CentOS 7 come with many changes in many aspect. To have a quick reference for many of this changes, I will try to document some basic command on managing my system, so let start
Configuring central logging is one of many important thing that you should configure to secure your system, it allow you to have an exact timeline in case of an incident or for troubleshooting reason. I was in the process of configuring some machines to send their logs to a remote system, the thing is 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
A lot of things can cause this behavior, in my case, when I tried to create a Fabric Groups, the compute resources didn’t show! The logs in vRealize Automation appliance (v7.0.1) show the following error in Infrastructure => Monitoring => Log: This exception was caught: The attached endpoint ‘vCenter’ cannot be found. The first thing
I was experimenting with the VMware Web service SDK using pyVmomi and I got some error that need to be documented her. I’m using pyVmomi 6.0.0 in a vSphere 6 environment. The first one was an SSL warning when using pyVmomi to acquire a service instance, if you try to use SmartConnect you will get the
If you are having a problem using Winscp to upload files to the vCenter Server Appliance (VCSA), you should change some settings on the Winscp client or the VSCA appliance, it depend on what protocol you are using SFTP or SCP. Using SFTP: When opening a connection to VCSA, you get the following error: Host
Last week I was experimenting with a Squid proxy server configuration and trying to see if I can get better performance, I still have a lot to do, but I thought it will be more interesting to publish my configuration and see if someone can take it to the next level and share his experience.