scripting

Posts related to scripting, mainly using shell scripts.

Curl not working when executed by a particular user

In one of my Linux node, I was not able to use curl command if executed by a particular user(“root”). Strange enough, it was working when executed using some other user. If you face similar issue try to follow the following strategy to debug the issue: When executed with non-root User: curl google.com -I HTTP/1.1 …

Curl not working when executed by a particular user Read More »

How to check the IP address reputation programmatically

Countless predators are sitting in the wild to spam or attack the network. So sometimes, before trusting a random IP address on the Internet, it’s a good idea to check its reputation. There are multiple methods to check the details and reputation of an IP address, but here we are covering only one via “www.abuseipdb.com.” …

How to check the IP address reputation programmatically Read More »

Find the installed Hardware info in Ubuntu

Like listing the directories and files using the “ls” command, we can list hardware in the system using the “lshw” command. Various filters are available to filter the result of the “lshw” command based on the type of hardware, like disk, processor, etc. Please see the below examples and follow along. Note that to use …

Find the installed Hardware info in Ubuntu Read More »

How to create Virtual machines using cloud-init

Want to create virtual machines frequently? Consider using “cloud-init.” Before going into the usage of cloud-init, let’s understand what cloud-init is and why we need it. Cloud-init allows users to write down their desired configurations into a YAML file before creating the VM. During the creation of the VM, the YAML configuration file will be …

How to create Virtual machines using cloud-init Read More »

Scroll to Top