广告
返回顶部
首页 > 资讯 > 后端开发 > Python >Useful Commands(JUNO
  • 394
分享到

Useful Commands(JUNO

CommandsJUNO 2023-01-31 01:01:37 394人浏览 独家记忆

Python 官方文档:入门教程 => 点击学习

摘要

1.Capturing protocol packets: monitor traffic interface xxx size 2000 no-resolve extensive write-file xxx.capYou can get

1.Capturing protocol packets:
monitor traffic interface xxx size 2000 no-resolve extensive write-file xxx.cap
You can get the *.cap file in the current directory. As you can see it using just file list. You can open the *.cap file using Wireshark on your PC.
Note: The monitor traffic interface command just capture the packet upload to the system cpu through the specified interface.
 
Also, you can read the captured file on the router itself using the command below.
monitor traffic read-file xxx.cap
 
when in GNS3, type the following in the command window (Capturing packets of R0 interface g1/0):
capture R0 g1/0 /file_name.cap
no capture R0 g1/0   -----stop capturing.
Then you can get the *.cap file in the system root directory (likely C:/)
 
2.Debuging (said, "traceoption" in JUNOS)
set xxx traceoption flag xxx
set xxx traceoption file file_name size xxx files x
You can get the traceoption file in the directory: /var/log/logical_router_name/traceoption_file_name
You can get it to your PC, or you can read it by file show command
 
3.Tar files
gzip /var/xxx/yyy       #used in the shell
Caution!!When using the gzip command, the origin file will be deleted, leaving only the zip file. The zip file will be tared to be *.gz fORMat.
 
4.Mounting a directory to the file system
mount 202.105.123.123:/var/test /tmpdir
Mount the directory /var/test on 202.105.123.123 to local path: /tmpdir.
You can use the command above for even network file system mounting.

--结束END--

本文标题: Useful Commands(JUNO

本文链接: https://www.lsjlt.com/news/183786.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作