juniper srx debug配置

juniper debug排错

1. Enter Config Mode //进入配置模式
netquirker@fw1> configure
{primary:node0}[edit]
netquirker@fw1#
2. Set Parameters //设置debug参数
set security flow traceoptions file MY_DEBUG
set security flow traceoptions flag basic-datapath
set security flow traceoptions packet-filter MATCH_TRAFFIC source-prefix 1.1.1.1/32
commit
3. Activate the Debug Process //激活debug进程
activate security flow traceoptions
4. Verify that it’s working //验证debug工作状态
show security flow traceoptions
5. Exit config mode
exit
6. Perform debugging //执行调试
Initiate relevant traffic flows
7. Show the log file to view debug output //查看debug日志文件
show log MY_DEBUG

#关闭debug
8. Re-enter config mode
netquirker@fw1> configure
{primary:node0}[edit]
netquirker@fw1#
9. Deactivate the logging
deactivate security flow traceoptions
10. Remove previously added parameters
delete security flow traceoptions file MY_DEBUG
delete security flow traceoptions flag basic-datapath
delete security flow traceoptions packet-filter MATCH_TRAFFIC source-prefix 1.1.1.1/32
commit
exit
Miscellaneous
Showing log files and delete them and deleting files
file list /cf/var/log
file delete /cf/var/log/MY_DEBUG
file delete /cf/var/log/DMY_DEBUG.0.gz
Example output when disabling debug
netquirker@fw1# show security flow traceoptions
flag basic-datapath;
packet-filter MATCH_TRAFFIC {
 source-prefix 1.1.1.1/32;
}
{primary:node0}[edit]
netquirker@fw1# deactivate security flow traceoptions
{primary:node0}[edit]
netquirker@fw1# show security flow traceoptions
##
## inactive: security flow traceoptions
##
flag basic-datapath;
packet-filter MATCH_TRAFFIC {
 source-prefix 1.1.1.1/32;
}
{primary:node0}[edit]
netquirker@fw1#

原文地址:点击直达

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇