November 2020

You are currently browsing the monthly archive for November 2020.

[root@xuxing ~]#yum -y install expect
[root@xuxing ~]# cat 123
#!/bin/expect
spawn ssh root@10.124.45.123 
expect "password:"
send "cisco\r"
interact
[root@xuxing ~]# chmod 777 123 
[root@xuxing ~]# 
[root@xuxing ~]# 
[root@xuxing ~]# ./123
spawn ssh root@10.124.45.123
root@10.124.45.123's password: 
Last login: Fri Nov 20 04:53:03 2020 from 10.140.0.42
[root@nso ~]# 
[root@nso ~]#
四个命令的解释

send:用于向进程发送字符串
expect:从进程接收字符串
spawn:启动新的进程
interact:允许用户交互,如果没有该命令会直接终端session,返回之前的终端

Read the rest of this entry »

Tags:

由于测试,需要安装一个syslog server, Windows上的免费软件搜到了KIWI Syslog Server,但是需要注册,然后还得去等两天的审核,想想还是算了不折腾了,打算在Linux上装一个,还好过滤看log。

Install
[root@xuxing ~]#yum install rsyslog
Configure
Read the rest of this entry »

Tags:

reoptimize timers delay cleanup 60
reoptimize timers delay installation 60
reoptimize timers delay path-protection 50 


Install delay:
How much time the head end waits before it "activates" the reoptimized LSP after receiving the RESV. This gives some time to mid/tail nodes to program their fowardng.

Cleanup delay:
How much time the "old" LSP is kept around after the new reoptimize LSP has been installed. This makes sure there's no longer and traffic flowing over the "old" LSP before tearing it down

Path-protection 
Delays the time between path protection switchover event and tunnel reoptimization. 

//default values:

cleanup delay: 20
installation delay: 20
path-protection: 180 
Read the rest of this entry »

Tags: