Use Local Scripts to Query Across Devices for Open Ports
You can use this script to query one or more devices about port(s) that are open.
The parameter PORTS expects one or more port numbers separated by a comma, for example, 22,23,80. If no port numbers are provided, then the script displays the output you would normally expect to see from a "show system connections" command.
This script returns the data in an HTML table format and should be readable in all supported browsers.
Select one or more devices from the Device Management view, then execute the script from within the Actions menu.
Enter the list of port numbers to search for in the parameter PORTS value field.
Once executed, the script will display the results in a table as shown below.
If the PORTS parameter value was left empty, you should see results such as the following:
Junos Space Script
NOTE: This script is not designed to be executed from the CLI, but only from within Junos Space.