automation
Mass network connection tracker
At times, you want to keep track of network connections between multiple hosts on different TCP ports. For example, if you have a medium or large scale infra comprising of many applications, databases, devices etc. All these mutually connect with each other on TCP ports. And in case there is an unannounced change in routing […]
Automated bulk command execution on SSH enabled hosts and devices
In the lockdown period, during pandemic, there is nothing much to do over weekend 😏. Was just thinking of writing ✍️ something, something useful…. then came up with an idea to address a common problem that many sysadmins and netadmins come across. At times, we want to run set of commands on many devices, hosts […]
micropython – an exciting firmware for microcontrollers
Arduino based controller boards have been all time favorite for developing prototypes and small projects.Arduino uses C++ style of coding. For many new starters it may not be the best programming language with start with. A promising alternate to Arduino is micropython firmware. This is available for variety of boards.In this article, I will cover […]
High performance python based SNMP poller
In my last post, I wrote a basic SNMP poller using python easysnmp module. To make it more practical and industry ready I have further enriched it with following: Read SNMPv2 and SNMPv3 devices from CSV file. Based on the field count in device record use SNMPv2 or SNMPv3 module. Poll thousands of devices by […]
SNMP polling using python
To play with SNMP using python install easysnmp python module. SNMP v2 Let us take a sample device Poll device using snmpwalk to get sysDescr value Python code to get same Save above code as pysnmpv2.py and execute SNMP v3 Lets take a sample device and its SNMP v3 parameters First using command line you […]
IoT ready relay to operate 220v AC home appliances
When I am away from home during long vacations I felt need of having control of some lights back at home, specially during Diwali holidays to turn on lights at night. I had already interfaced my 4 channel relay with raspberry and NodeMCU and control it via ssh terminal on raspberry and serial port of […]
How to operate relay using NodeMCU
NodeMCU board is powered by ESP8266 WiFi unit which gives advantage of controlling circuits connected to NodeMCU over home WiFi or even internet. Idea of connecting relay with NodeMCU will enable us to control 220AC appliances at home from anywhere in the world over internet. Some basics first: 1) NodeMCU does provides 3.3V power and […]
Build own IoT enabled weather station
After performing some stand alone tests with my DHT22 weather sensor on NodeMCU board and MQTT broker on raspberry, I thought to publish weather data on my home MQTT network. To do this I took part of code in examples of Adafruit sensor and MQTT libraries. To start you will need following three libraries installed […]
MQTT protocol – Telemetry for IoT
Message Queuing Telemetry Transport (MQTT) is a light weight message exchange protocol. This protocol has emerged as efficient way of telemetry data transmission/reception for IoT devices. Common programming languages have MQTT libraries available to implement this protocol. Apart from IoT you can think of using MQTT in other areas as well. For eg facebook uses […]
Connecting 220V AC load to relay controlled by raspberry pi GPIO
Read http://www.mka.in/wp/raspberry-pi-3b-with-5v-4-channel-relay/ first. After gaining confidence in simple relay control using raspberry pi GPIO pins I have now tried connecting 220V AC load to the relay controlled by raspberry. For sake of safety I bought a pair of male-female plug and socket to connect AC load. Connection is really simple. 1) Connect one terminal of […]