HPE6-A84 · Question #28
You are working with a developer to design a custom NAE script for a customer. The NAE agent should trigger an alert when ARP inspection drops packets on a VLAN. The customer wants the admins to be…
The correct answer is B. Define a VLAN ID parameter; reference that parameter when defining the monitor URI. A custom NAE script is a Python script that defines the monitors, the alert-trigger logic, and the remedial actions for an NAE agent. A monitor is a URI that specifies the data source and the data type that the NAE agent should collect and analyze. For example, to monitor the…
Question
You are working with a developer to design a custom NAE script for a customer. The NAE agent should trigger an alert when ARP inspection drops packets on a VLAN. The customer wants the admins to be able to select the correct VLAN ID for the agent to monitor when they create the agent. What should you tell the developer to do?
Options
- AUse this variable, %{vlan-id} when defining the monitor URI in the NAE agent script.
- BDefine a VLAN ID parameter; reference that parameter when defining the monitor URI.
- CCreate multiple monitors within the script from which admins can select when they create the
- DUse a callback action to collect the ID of the VLAN on which admins have enabled NAE
How the community answered
(43 responses)- A7% (3)
- B70% (30)
- C19% (8)
- D5% (2)
Explanation
A custom NAE script is a Python script that defines the monitors, the alert-trigger logic, and the remedial actions for an NAE agent. A monitor is a URI that specifies the data source and the data type that the NAE agent should collect and analyze. For example, to monitor the ARP inspection statistics on a VLAN, the monitor URI would be something like this: where <vlan-id> is the ID of the VLAN to be monitored. To allow the admins to select the correct VLAN ID for the agent to monitor when they create the agent, you need to define a VLAN ID parameter in the NAE script. A parameter is a variable that can be set by the user when creating or modifying an agent. A parameter can be referenced in other parts of the script by using the syntax ${parameter-name}. For example, to define a VLAN ID parameter and reference it in the monitor URI, you would write something like this: This way, when the admins create or modify the agent, they can enter the VLAN ID that they want to monitor, and the NAE script will use that value in the monitor URI.
Topics
Community Discussion
No community discussion yet for this question.