IoT Edge Dev Quick Book

Please find my quick book for IoT Edge development

IoT Edge

List IoT Edge modules

iotedge list

Check IoT Edge configs and deployment issues

iotedge check

Show logs from IoT Edge module

iotedge logs modulename

IoT Edge Version

iotedge version

Restart one module in IoT Edge

iotedge restart modulename

Stop IoT Edge

sudo systemctl stop iotedge

Start IotEdge

sudo systemctl start iotedge

Restart IotEdge

sudo systemctl restart iotedge

Date Time

Know the date and time on the edge device and we can verfiy that the UTC time stamp is synced


Update timeserver

sudo apt install ntpdate
sudo timedatectl set-ntp off
sudo apt install ntp
sudo nano /etc/ntp.conf

then you can see content like below, please add your ip or domain of timeserver. Add on top for getting high priority

server iburst
server iburst
server iburst
server iburst

then follow below steps

sudo systemctl restart ntp
ntpq -p

Get date details



Get module logs from the tail 500(- - tail 500 ) and keep getting the logs from there onwards ( -f )

iotedge logs --tail 500 -f

Get logs files with last 50 lines

tail -n 50 /folder/logfilename.log

Get the logs files to zip

tar zcvf /tmp/logs.tar.gz /folder/*.log

Listing all log files

//get into the admin
sudo su
ls -lrt /var/lib/docker/containers/*/*-json.log -h

Truncating all json log files

truncate -s 0 /var/lib/docker/containers/*/*-json.log

Remove specific file

rm -r filename-json.log


All permission to specific folder

sudo chmod a+rwx /foldername


Get disk space information

df -h

Get memory details


Get active docker status

sudo docker stats

Ge running process and Process Id

ps -aux


List running docker images

sudo docker ps 

List all docker images

sudo docker images -a

Prune all images

docker image prune -a

Execute commands on docker

docker exec -it <container> /bin/bash
docker exec -it <container> bash




Am an IoT developer interested in microsoft technologies and cloud technologies

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Data Analysis and Algorithm — Divide and Conquer

USSD + Bank Payments +Airtime

Giving up GTD? Read this article before you quit!

IPv6+Ruby part 4: Dual stack (IPv4+IPv6) UDP sockets

Remotely turn on Windows 10 PC Configuration

Latest Tips on Using Video Content in Technical Documentation

Send simple email in Azure DevOps using PowerShell (without any smtp server)

A simple and configurable API to build 2D and 3D U-Net architectures

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gibin Francis

Gibin Francis

Am an IoT developer interested in microsoft technologies and cloud technologies

More from Medium

How to Enable Windows Sandbox

Filtering messages in Azure Service Bus Queue — AzureServiceBusSieve

Checking reboot requirements when using the RHEL SELinux system role

How to share docker images without Docker hub or any registry