摘要: 1. 检查设备基本信息 1.1. 查看设备的配置 命令:display current-configuration 1.2. 检查设备版本 命令: display version Huawei Versatile Routing Platform Software VRP (R) software, 阅读全文
posted @ 2023-09-04 09:32 段福 阅读(915) 评论(0) 推荐(0)
摘要: import logging class Logger: def __init__(self, stream=None, cmd_lever=logging.WARNING, file_level=logging.DEBUG, logname='mylog'): self.stream = stre 阅读全文
posted @ 2023-03-17 16:37 段福 阅读(15) 评论(0) 推荐(0)
摘要: ## 阅读全文
posted @ 2023-03-17 16:37 段福 阅读(8) 评论(0) 推荐(0)
摘要: 1、获取设备名称 def get_device_name(configs: str, devicetype='HW') -> str: if devicetype == 'HW': # 华为 for config in configs.splitlines(): # print(config) if 阅读全文
posted @ 2023-03-17 16:36 段福 阅读(19) 评论(0) 推荐(0)