Actions11
Get Interface Information
AI-generatedSummary
Retrieve detailed information about physical or logical interfaces on a Juniper device via NETCONF with customizable query parameters.
Inputs
- Host (required) — The hostname or IP address of the Juniper device to connect to.
- Port (required) — The NETCONF over SSH port, default is 830.
- Interface Name — The physical or logical interface name (e.g., xe-0/0/0); leave empty to query all interfaces.
- Logical System — Name of the logical system; leave empty for the default system.
- Routing Instance — Name of the routing instance.
- Level — The detail level of the interface information to display; options include Default, Extensive, Media, and Statistics.
- Level Extra — Additional detail level modifier, such as Brief, Descriptions, Detail, PRBS Stats, or Terse.
- Routing Engine — Select which routing engine to query, e.g., Backup, Both, Local, Master, RE0, RE1, etc.
- SNMP Index — The SNMP index of the interface to target.
- Include Raw XML — Whether to include the raw XML response in the output for debugging.
Output shape
a JSON object parsed from NETCONF XML response containing interface information, optionally including raw XML when requested.
Returns detailed interface data based on specified input parameters. If Include Raw XML is enabled, the raw NETCONF XML reply is also provided under a 'rawXml' field. Supports querying single or multiple interfaces with various filters for logical system, routing instance, routing engine, SNMP index, and detail levels.
Examples
Example 1: Get detailed information for a specific physical interface
Provide Host, Port, and Interface Name; optionally set detail levels and include raw XML if needed.
Example 2: Get information for all interfaces in a logical system
Leave Interface Name empty, specify Logical System name, and define desired detail levels.