down

钉钉群机器人发送消息

冷暖自知 提交于 2019-11-26 21:29:44
1 添加淘宝依赖 <dependency> <groupId>taobao-sdk-java</groupId> <artifactId>taobao-sdk-java-auto</artifactId> <version>1.0</version> </dependency> 若添加依赖有问题,可参考 Maven使用第三方Jar文件 <dependency> <groupId>taobao-sdk-java</groupId> <artifactId>taobao-sdk-java-auto</artifactId> <version>1.0</version> <scope>system</scope> <systemPath>${basedir}/lib/taobao-sdk-java-auto-1.0.jar</systemPath> </dependency> 2 发送Markdown格式消息 public class MarkdownTest { public void sendMessage() throws Exception { String WEBHOOK_TOKEN = "https://oapi.dingtalk.com/robot/send?access_token=xxxxxx"; String DING = ""; String MARK_DOWN

搭建网络验证RIP协议

天涯浪子 提交于 2019-11-26 18:41:51
RIP协议: :周期性广播路由表,选择最佳路径为跳数最少。RIP 认为一个好的路由就是它通过的路由器的数目少,即“距离短”。 :RIP 允许一条路径最多只能包含 15 个路由器。 “距离”的最大值为16 时即相当于不可达。 :RIP 不能在两个网络之间同时使用多条路由。RIP 选择一个具有最少路由器的路由(即最短路由),哪怕还存在另一条高速(低时延)但路由器较多的路由。 :仅和相邻路由器交换信息。 :交换的信息是当前本路由器所知道的全部信息,即自己的路由表。 :按固定的时间间隔交换路由信息,例如,每隔 30 秒。 用eNSP搭建一个小型网络:PC1-SW1-(G0/0/0)R1(G4/0/0)---(G0/0/0)R2(G0/0/1)---(G0/0/1)R5(G0/0/0)-SW3-PC2 PC2-SW2-(G0/0/1)R1(G4/0/1)-(G0/0/1)R3(G0/0/0)-(G0/0/0)R4(G0/0/2)-(G0/0/2)R5 划分网段及配置路由信息 配置路由器R1: [R1]display ip interface brief 接口信息: Interface IP Address/Mask Physical Protocol GigabitEthernet0/0/0 192.168.1.1/24 up up GigabitEthernet0/0/1 192.168

使用三层交换实现不同网段、不同 vlan 互通

谁说我不能喝 提交于 2019-11-26 18:08:21
上一篇实现了使用 Trunk 做跨交换机 VLAN 通信,这一篇就试试使用三层交换实现不同网段,不同 VLAN 间的通信。 实验拓扑 在一台三层交换机下面连接一台二层交换机,再在二层交换机下面连接两台 VPC ,地址规划如下: 名称 接口 VLAN 地址 PC1 SW1-f1/1 vlan 10 192.168.10.10/24 PC2 SW1-f1/2 vlan 20 192.168.20.10/24 名称 接口 地址 SW2 vlan 10 192.168.10.1/24 SW2 vlan 20 192.168.20.1/24 配置方法 SW2(config)#int vlan 10 SW2(config-if)#ip address 192.168.10.1 255.255.255.0 SW2(config-if)#no shutdown 配置过程 SW1 SW1 关闭路由功能 SW1#conf t SW1(config)#no ip routing SW1 创建 VLAN 10 和 VLAN 20 ,并添加接口。 SW1(config)#vlan 10,20 SW1(config-vlan)#ex SW1(config)#int f1/1 SW1(config-if)#sw m a SW1(config-if)#sw a v 10 SW1(config-if)#int f1

堆积木——GBQ4.0设置“统一设置安装费用”中的“高层建筑增加费”

一笑奈何 提交于 2019-11-26 16:43:37
为什么我要写这么一个脚本?因为我有几十个签证和变更需要分别设置“安装费用”,我发现,一个个的点速度太慢了,于是脑袋一热,想着我为什么不写个脚本模拟按键来解决这重复的操作呢。 于是为了应付当前的工作,用VBScript写了一个简易的脚本,代码如下: 1 Dim WshShell 2 Set WshShell = CreateObject("WScript.Shell") 3 4 Do 5 WScript.Sleep 200 6 Loop Until WshShell.AppActivate("统一设置安装费用") 7 8 For k = 1 to 8 9 If K <> 4 Then 10 '发送Enter键用于选择当前列表 11 WshShell.SendKeys "{Enter}" 12 WScript.Sleep 200 13 14 '发送Alt+Down键用于打开下拉列表 15 WshShell.SendKeys "%{Down}" 16 WScript.Sleep 200 17 18 '发送UP键10次,用于定位到第一个选项[无] 19 WshShell.SendKeys "{UP 10}" 20 WScript.Sleep 100 21 22 '当前楼层数为33,根据列表中的选项,排在第9位 23 WshShell.SendKeys "{Down 9}" 24

Procedures to Deploy RMA device into Juniper SRX Chassis Cluster

亡梦爱人 提交于 2019-11-26 16:24:02
Juniper KB mentioned some RMA steps for failed Juniper device replacement. There are some steps not clear enough. I put some more configuration steps in this post for future reference: There are many preparation works before you can add RMA device into your chassis group. Step 1, Upgrade JunOS Remotely Usually your RMA Device is delivered to the production environment to do replacement. You will have to remotely upgrade JunOS first. login: root root> --- JUNOS 10.0R1.8 built 2009-11-03 10:06:39 UTC root> root> show version Model: srx240-hm JUNOS Software Release [10.0R1.8] root> configure

Configure a RMA-ed SRX340 with a JunOS Upgrade and Joining it into a Existing Cluster

我们两清 提交于 2019-11-26 16:21:24
My previous post ( Juniper SRX DB mode (Debug mode) ) described a situation which is one of firewall cluster members got stuck into DB mode. Although it was fixed eventually by re-installed image, it was still failed again after a couple of months. RMA ticket created with vendor Juniper and a new device was issued by Juniper. This post recorded all steps how to configure this new device and re-joined it back into existing cluster. The all steps are quite straightforward. You may meet some file transferring issues or connectivity issues, but as long as you know your environment enough, those

Checkpoint Cluster Member Down because interfaces show partially up

二次信任 提交于 2019-11-26 16:15:39
Symptoms: One of cluster member shows problem. It always happened on standby member. If goes into deep, you will find some of cluster member interfaces are showing down or partially up, although physically interface is up and connected properly. Log into command line on primary member: [ [email protected] ]# cphaprob stat Cluster Mode: New High Availability (Active Up) with IGMP Membership Number Unique Address Assigned Load State 1 (local) 1.1.1.1 100% Active 2 1.1.1.2 0% Down On standby checkpoint member : [ [email protected] ]# cphaprob stat Cluster Mode: New High Availability (Active Up)

[导入]Symantec Antivirus

强颜欢笑 提交于 2019-11-26 15:16:44
朋友经常问我Symantec Antivirus Corporation Edition的下载地址,就只好弄过来了: http://www.piaodown.com/down/down.asp?id=100 &no=3 文章来源: http://www.hesicong.net/pjblog/default.asp?id=58 转载于:https://www.cnblogs.com/hesicong/archive/2006/09/04/648678.html 来源: https://blog.csdn.net/weixin_30319097/article/details/98913575

Leetcode之回溯法专题-52. N皇后 II(N-Queens II)

微笑、不失礼 提交于 2019-11-26 15:04:18
Leetcode之回溯法专题-52. N皇后 II(N-Queens II) 与51题的代码80%一样,只不过52要求解的数量,51求具体解, 点击进入51 class Solution { int ans = 0; public int totalNQueens(int n) { char mp[][] = new char[n][n]; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { mp[i][j] = '.'; } } dfs(mp, n, 0, 0); return ans; } public void dfs(char[][] mp, int len, int i, int queen) { int x = i / len; int y = i % len; if ((x >= len || y >= len)) { if (queen != len) return; ans++; return; } dfs(mp, len, i + 1, queen); if (ok(mp, len, x, y)) { mp[x][y] = 'Q'; dfs(mp, len, i + 1, queen + 1); mp[x][y] = '.'; } } public boolean ok(char[][] mp,