alexcarrega icon

agent_catalog-nprobe

alexcarrega | PRO | 06/03/20 10:08:53 PM UTC | 0 ⭐ | 1188 👁️ | Never ⏰ | []
JSON |

2.29 KB

|

None

|

0 👍

/

0 👎

[
    {
        "id": "nprobe",
        "parameters": [
            {
                "id": "network-interface",
                "type": "string",
                "example": "eth0",
                "description": "Set the network interface to probe",
                "config": {
                    "schema": "properties",
                    "source": "/etc/nprobe/nprobe.conf",
                    "path": [
                        "-i"
                    ]
                }
            },
            {
                "id": "capture-direction",
                "type": "integer",
                "example": 1,
                "description": "Specify packet capture direction: 0=RX+TX (default), 1=RX only, 2=TX only",
                "config": {
                    "schema": "properties",
                    "source": "/etc/nprobe/nprobe.conf",
                    "path": [
                        "-capture-direction"
                    ]
                }
            },
            {
                "id": "flow-template",
                "type": "string",
                "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",
                "description": "Specifies the NFv9 template",
                "config": {
                    "schema": "properties",
                    "source": "/etc/nprobe/nprobe.conf",
                    "path": [
                        "-T"
                    ]
                }
            }
        ],
        "actions": [
            {
                "id": "start",
                "status": "started",
                "config": {
                    "cmd": "sudo systemctl start nprobe"
                }
            },
            {
                "id": "stop",
                "status": "stopped",
                "config": {
                    "cmd": "sudo systemctl stop nprobe"
                }
            },
            {
                "id": "restart",
                "status": "started",
                "config": {
                    "cmd": "sudo systemctl restart nprobe"
                }
            }
        ]
    }
]

Comments