Advertisement
alexcarrega

agent_catalog-nprobe

Jun 3rd, 2020
973
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.29 KB | None | 0 0
  1. [
  2.     {
  3.         "id": "nprobe",
  4.         "parameters": [
  5.             {
  6.                 "id": "network-interface",
  7.                 "type": "string",
  8.                 "example": "eth0",
  9.                 "description": "Set the network interface to probe",
  10.                 "config": {
  11.                     "schema": "properties",
  12.                     "source": "/etc/nprobe/nprobe.conf",
  13.                     "path": [
  14.                         "-i"
  15.                     ]
  16.                 }
  17.             },
  18.             {
  19.                 "id": "capture-direction",
  20.                 "type": "integer",
  21.                 "example": 1,
  22.                 "description": "Specify packet capture direction: 0=RX+TX (default), 1=RX only, 2=TX only",
  23.                 "config": {
  24.                     "schema": "properties",
  25.                     "source": "/etc/nprobe/nprobe.conf",
  26.                     "path": [
  27.                         "-capture-direction"
  28.                     ]
  29.                 }
  30.             },
  31.             {
  32.                 "id": "flow-template",
  33.                 "type": "string",
  34.                 "example": "%IPV4_SRC_ADDR %IPV4_DST_ADDR %IPV4_NEXT_HOP %INPUT_SNMP %OUTPUT_SNMP %IN_PKTS %IN_BYTES %FIRST_SWITCHED %LAST_SWITCHED %L4_SRC_PORT %L4_DST_PORT %TCP_FLAGS %PROTOCOL %SRC_TOS %SRC_AS %DST_AS %IPV4_SRC_MASK %IPV4_DST_MASK",
  35.                 "description": "Specifies the NFv9 template",
  36.                 "config": {
  37.                     "schema": "properties",
  38.                     "source": "/etc/nprobe/nprobe.conf",
  39.                     "path": [
  40.                         "-T"
  41.                     ]
  42.                 }
  43.             }
  44.         ],
  45.         "actions": [
  46.             {
  47.                 "id": "start",
  48.                 "status": "started",
  49.                 "config": {
  50.                     "cmd": "sudo systemctl start nprobe"
  51.                 }
  52.             },
  53.             {
  54.                 "id": "stop",
  55.                 "status": "stopped",
  56.                 "config": {
  57.                     "cmd": "sudo systemctl stop nprobe"
  58.                 }
  59.             },
  60.             {
  61.                 "id": "restart",
  62.                 "status": "started",
  63.                 "config": {
  64.                     "cmd": "sudo systemctl restart nprobe"
  65.                 }
  66.             }
  67.         ]
  68.     }
  69. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement