一、快速抓取华为交换机、路由器、防火墙配置
- 以下操作在用户视图下可操作,level≥3用户可直接查看,level=1用户需要提权命令。
- SecureCRT连接交换之后,记录回话日志
- <HUAWEI> screen-length 0 temporary #关闭分屏
- <HUAWEI> display current-configuration #查看当前配置(便于SecureCRT保存log)
- <HUAWEI> undo screen-length temporary #恢复缺省(缺省每屏显示24行)
快速粘贴如下
- screen-length 0 temporary
- display current-configuration
- undo screen-length temporary
二、使用SFTP上传文件
- 最近我的Winscp崩溃了,无奈只能使用SecureCRT建立sftp连接上传文件
- 1、建立SFTP连接方法
![24fb7cd1fb49a978a7228c2113e226f2.png](https://img-blog.csdnimg.cn/img_convert/24fb7cd1fb49a978a7228c2113e226f2.png)
- 2、指定本地目录 lcd C:usersoftware
- 3、上传文件 put WinSCP-5.15.2-Setup.exe
- 4、命令介绍:
- cd 路径 更改远程目录到“路径”
- lcd 路径 更改本地目录到“路径”
- ls [选项] [路径] 显示远程目录列表
- lls [选项] [路径] 显示本地目录列表
- put 本地路径 上传文件
- get 远程路径 下载文件
三、自动保存日志
- 1、全局配置
![3307c7c123ab7e155f97c37f678e51b2.png](https://img-blog.csdnimg.cn/img_convert/3307c7c123ab7e155f97c37f678e51b2.png)
- 2、编辑默认配置
![45b3371dcab5ca9efc7fe6dd661f0699.png](https://img-blog.csdnimg.cn/img_convert/45b3371dcab5ca9efc7fe6dd661f0699.png)
- 3、选择“外观-日志文件”
![9d8423f9da37fe1327d0279aa620f5f1.png](https://img-blog.csdnimg.cn/img_convert/9d8423f9da37fe1327d0279aa620f5f1.png)
- 4、自己常用配置
- D:Program FilesSecureCRTlog%S_%Y-%M-%D-%h_%m_%s.log
- %H-%Y-%M-%D-%h:%m:%s
- 5、参数的意义:
%H 主机名 %S 会话名 - %Y 年份 %M 月份 %D 日
- %h 小时 %m 分钟 %s 秒