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

Creating A Wordpress application using Kubernetes

Kubernetes on Devstack part 3: Running applications on the cluster

Accelerating Software Product Quality In a DevOps Environment

Implement an Email Masking Proof-of-concept Using AWS Simple Email Service (SES) and AWS Rust SDK

LoveSentMe — A mission-based social platform

Building a Multi Micro:bit display

Method Chaining

Productivity tips for senior developers.

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

Azure — Windows Update Management for on-premises VMware VMs with snapshots

Vulnerability Scanning in Microsoft Defender For Server

L&D series: Generate GitHub SSH key

Cloning Oracle Pluggable Databases on DBCS