June 2021

You are currently browsing the monthly archive for June 2021.

安装参考

https://github.com/portainer/portainer
https://documentation.portainer.io/quickstart/
https://documentation.portainer.io/v2.0/deploy/ceinstalldocker/

Linux 主机安装示例如下:

[root@localhost ~]# docker volume create portainer_data
portainer_data
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
Unable to find image 'portainer/portainer-ce:latest' locally
latest: Pulling from portainer/portainer-ce
94cfa856b2b1: Pull complete 
49d59ee0881a: Pull complete 
3fc1bc38fb56: Pull complete 
Digest: sha256:f133bfdd9646f48a8ddb54b9555070f628caa530924045eeff8144a32de2dcc7
Status: Downloaded newer image for portainer/portainer-ce:latest
f4bf3f5fe82d1e15aff223752b10b987f298ebdea5a987c6303d38dc6c4079d3

安装完成后, 访问9000端口, 第一次登录会让你配置用户名/密码, 之后选择Docker–> Local.

Read the rest of this entry »

Tags:

SecureCRT本身提供一种录制脚本的功能,可以通过录制脚本得到一个示例, 然后在此基础进行更改, 得到自己想要的脚本。

示例

#$language = "VBScript"
#$interface = "1.0"

crt.Screen.Synchronous = True

' This automatically generated script may need to be
' edited in order to work correctly.

Sub Main
	While 1     <<<<< 循环
		crt.Screen.Send "telnet  10.1.1.1" & chr(13)
		crt.Screen.WaitForString "Username: "
		crt.Screen.Send "cisco" & chr(10) & "cisco" & chr(10) & "show tcp trace " & chr(124) & " in vrfid " & chr(124) & " ex 0x60000000" & chr(13) & "exit" & chr(13)
		crt.Screen.WaitForString "[ciscotac@CNP " & chr(126) & "]$ "
		crt.Screen.Send chr(13)
		crt.Sleep 5000    <<<<< sleep 5s
	WEnd
End Sub

Others

就目前来说, 循环+send chr + wait chr 已经满足我的一些测试,后续再遇到其他的发现再添加。

#### for 循环
    For i = 1 To 10 
    Next

一直以来SPAN都是作为排查丢包问题很好用的feature, 但是在XR低版本上存在很多的限制,比如只支持local SPAN, 只能要求现场有人协助连个PC,将流量SPAN到PC上进行抓包,现在从XR 7.1.2 版本开始我们支持将SPAN的流量保存成一个文件,可以直接远程从设备上copy 出来。

SPAN Feature Support

ASR9kDNXSpitFire
Local SPANSupported-3.9.1NCS5500: Supported-6.1.1Being targetted for 7.2.1
Remote SPANSupported-3.9.1
Sampled SPANSupported-5.1.0
ERSPANNoNCS5500: Supported- 6.1.31Supported-7.2.1
MPLS-ERSPAN
PW-SPANSupported- 4.0.1Supported- 7.0.1  ( no support in 71x)No
ACL Based Traffic MirroringSupported-4.0.1NCS5500: Supported-6.1.1NCS560:  SupportedNCS540: SupportedSupported
SPAN to File7.1.27.1.27.2.2
SPAN to File PCAPngNo7.3.1No
CloudSpanNoNoNo
Read the rest of this entry »