摘要
从高等学校校园网巡检和运维工作实际出发,提出了一种基于Python语言,利用parami⁃ko模块中的invoke_shell通过ssh协议和网络设备交互,进而实现设备巡检和命令集发送功能的方法。系统采用C/S模式和脚本定时运行的方法,实现按需立即巡检和定时巡检两种巡检模式。同时还支持命令集编辑和发送,辅助实现故障精准定位。通过本系统获取设置数据后形成独立的设备巡检详细文件和关键项目集合文件。该系统的开发可以协助高校校园网管理运维人员进行按需网络设备的巡检,提高工作效率。另一方面通过对不同类型网络设备的性能监控,也有助于帮助运维人员实现网络调优。
Based on the practice of campus network inspection and operation and maintenance,this paper puts forward a Python⁃based method,which uses invoke_shell in paramiko module to interact with network devices through ssh protocol,and then realizes the functions of equipment inspection and command set sending.The system adopts the method of C/S mode and script running regularly to realize two inspection modes:on⁃demand immediate inspection and regular inspection.At the same time,it also supports the editing and sending of command sets,which helps to achieve accurate fault location.After obtaining the setting data through this system,an independent equipment inspection detailed file and a key project collection file are formed.The development of this system can assist the management and operation staff of campus network in universities to carry out on⁃demand network equipment inspection and improve work efficiency.On the other hand,by monitoring the performance of different types of network equipment,it is also helpful to operation and maintenance personnel to realize network tuning.
作者
杨海鹏
徐志英
YANG Hai-peng;XU Zhi-ying(Jilin Engineering Normal University,Changchun Jilin 130052,China;Chaoyang Teacher College,Chaoyang Liaoning 122000,China)
出处
《吉林工程技术师范学院学报》
2024年第2期91-96,共6页
Journal of Jilin Engineering Normal University
关键词
PYTHON
网络设备巡检
网络运维
Python
Network Equipment Inspection
Network Operation and Maintenance