摘要: from pyzabbix.api import ZabbixAPI with ZabbixAPI(url='http://192.168.1.10:8080', user='admin', password='admin') as zapi: hosts = zapi.host.get( # 获取 阅读全文
posted @ 2024-06-03 10:39 Me-lihu 阅读(33) 评论(0) 推荐(0) 编辑
摘要: import re from netmiko import ConnectHandler import time import queue import pandas as pd import threading date = time.strftime('%Y%m%d', time.localti 阅读全文
posted @ 2024-05-30 17:37 Me-lihu 阅读(25) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.common.by import By from selenium.webdriv 阅读全文
posted @ 2023-10-17 11:38 Me-lihu 阅读(3) 评论(0) 推荐(0) 编辑
摘要: k8s基于containerd安装yum update -y 升级系统(master和work节点都需要配置)1、关闭防火墙:systemctl stop firewalldsystemctl disable firewalld 2、关闭selinux:(master和work节点都需要配置)sed 阅读全文
posted @ 2023-10-13 17:37 Me-lihu 阅读(330) 评论(0) 推荐(0) 编辑
摘要: from netmiko import ConnectHandler sw={ 'device_type':'cisco_ios_telnet', 'ip':'10.122.77.180', 'username':'cisco', 'password':'cisco' } with ConnectH 阅读全文
posted @ 2023-10-09 10:51 Me-lihu 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 华为堆叠配置交换机A:stack enablestack slot 0 renumber 1stack slot 1 priority 200stack reserved-vlan 4093stack timer mac-address switch-delay 10 interface stack 阅读全文
posted @ 2023-09-22 14:23 Me-lihu 阅读(410) 评论(0) 推荐(0) 编辑
摘要: NAT分类:(1) Network Object NAT ——又名Auto NAT(自动NAT)(2) Twice NAT ——又名Manual NAT (手动NAT)两大类的区别,从配置命令上看:(1) 自动NAT,在object network <Name> 模式下配置NAT规则object n 阅读全文
posted @ 2023-07-28 18:16 Me-lihu 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 一、更新服务器,关闭selinuxyum update -yvim /etc/selinux/configSELINUX=disabled 二、搭建rsyslog1、创建日志存放目录及权限mkdir /var/log/networkchmod 700 -R /var/log/network/ cho 阅读全文
posted @ 2023-07-25 14:18 Me-lihu 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、安装pandas、openpyxl、requests模块python -m pip install --upgrade pippip install whlpip install pandaspip install openpyxlpip install requests 2、编写脚本 (列表给 阅读全文
posted @ 2023-07-06 17:51 Me-lihu 阅读(6) 评论(0) 推荐(0) 编辑
摘要: var Wechat = { token: null, to: null, message: null, parse_mode: null, sendMessage: function() { var params = { msgtype: "markdown", chat_id: Wechat.t 阅读全文
posted @ 2023-03-16 15:21 Me-lihu 阅读(213) 评论(0) 推荐(0) 编辑