Pages

Friday, March 12, 2021

Ansible for Vcenter

Ansible with Vcenter gives the following error. 

vmware_guest Module not found. 

To install it use: ansible-galaxy collection install community.vmware.

Tuesday, March 9, 2021

Sed Command in MAC

Method to use Sed in Mac

sudo sed -i "/kube/d" /etc/hosts

give error sed: 1: "/etc/hosts": extra characters at the end of h command


Following Syntax Worked. 
sudo sed -i '' '/kube/d' /etc/hosts

Test WinRm connection to Windows Env

 How to check if Winrm is enabled in an Windows Server

Test-NetConnection -ComputerName XX -Port 5986

Test-NetConnection -ComputerName XX -Port 5985

 

Test-WSMan -ComputerName XX