traphandle

来自「snmp的源代码,已经在我的ubuntu下编译通过」· 代码 · 共 18 行

TXT
18
字号
title		Trap Handlersdescription	Here we define what programs are run when a trap isdescription	received by the trap receiver.token	    traphandleinfo	    When traps are received, a program can be run.info	    When traps are received, the list of configured trapinfo	    handles is consulted and any configured program is run.info	    If no handler is found, any handler with "default" as theinfo	    traphandle type is run instead.  The information containedinfo	    in trap is passed to the program via standard input (seeinfo	    the snmptrapd.conf manual page for details).info	    #info	    arguments: oid|"default" program argsquestion 1  The oid of the trap you want to handle.question 2  The program you want to run  If the program is a script, specify the script program first (ie /bin/sh /path/to/script).question 3  Arguments that you want passed to the program

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?