Git Product home page Git Product logo

python_networkengineer's Introduction

Python for network engineer

Outline

lab1

  • โมดูล subprocess เรียกคำสั่งต่างๆของระบบ เช่น ping เพื่อดึง stdout เข้ามาเก็บไว้ในตัวแปรภายในโปรแกรม
  • การเขียน Regular Expressions(regex) เพื่อดึงข้อมูลที่ต้องการ
  • การค้นหาตำแหน่งของคำที่ต้องการใน string
  • โมดูล time ฟังก์ชันด้านเวลา เช่น การจัดรูปแบบ, การหน่วงเวลาโปรแกรม
  • โมดูล numpy เบื้องต้นเพื่อช่วยจัดการฟังก์ชันเกี่ยวกับตัวเลข เช่น random ตัวเลขชนิดต่างๆ
  • โมดูล pandas ในการจัดการตัวเลขจาก numpy ให้อยู่ในรูปแบบ dataframe เพื่อให้ง่ายต่อการประมวลผล
  • โมดูล matplotlib เพื่อนำเอาข้อมูล dataframe มาแสดงผลเป็นกราฟ/รูปภาพ และการทำ animation เพื่ออัปเดทข้อมูลในกราฟที่แสดงผล
  • ทดลองใช้ความรู้ที่ได้สร้าง network monitor tool แสดงผลกราฟการ ping ip ปลายทางเป็นกราฟ
  • สร้าง "ascii art text" สวยๆด้วย online tool เช่น http://patorjk.com/software/taag/

lab2

  • โมดูล paramiko สำหรับการ ssh เข้าไปยังเครื่องปลายทางและเรียกใช้คำสั่งต่างๆ รวมถึงการทำ sftp get()/put() เพื่อ download/upload ไฟล์ไปยังเครื่องปลายทาง
  • โมดูล logging เพื่อจัดการ log level (debug/info/warning/error/critical)

lab3

  • โมดูล crassh สำหรับการจัดการอุปกรณ์ cisco ที่ง่ายขึ้นกว่าการเรียกโมดูล paramiko ตรงๆ

lab4

  • การดักจับข้อมูลการ login แบบ Basic authen ด้วย wireshark และการจับข้อมูลการกดปุ่ม FORM ในหน้า web config ของอุปกรณ์
  • โมดูล requests เพื่อสั่งยิง HTTP POST METHOD เลียนแบบการกดปุ่ม web config

Reference

python_networkengineer's People

Contributors

napat avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.