Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Determining Device Connections with Junos Space Nodes

    You can determine the devices connected to Junos Space from the devices or from Junos Space Network Management Platform.

    To determine the connections between Junos Space Platform and managed devices, use the following commands:

    • To determine the Junos Space instances to which a device is connected by device-initiated connection, issue the show configuration system services outbound-ssh command from the cli prompt of the device:
      root@host> show configuration system services outbound-ssh

      The following is a sample output of the command:

      client 0050568a22c4 {
          device-id B9859F;
          secret "$ABC123; ## SECRET-DATA
          services netconf;
          192.0.2.100 port 7804;
      }
      client 000c297a03a8 {
          device-id 285AFF;
          secret "$DEF456"; ## SECRET-DATA
          services netconf;
          192.0.2.200 port 7804;
      }
      

      The output indicate that the device is connected to Junos Space nodes with IP addresses 192.0.2.100 and 192.0.2.200 through port 7804.

    • To view active connections of the device with a Junos Space node, use Show system connections as follows:
      root@host> show system connections | grep <ip address of Junos Space node>

      The following is a sample output of the command:

      root@host> show system connections | grep 192.0.2.51
      tcp4 0 0 198.51.100.230.22 192.0.2.51.35181 ESTABLISHED

      where 192.0.2.51 is the IP address of the Junos Space node and 198.51.100.230 is the IP address of the device.

    • To get a list of all SSH connections on a Junos Space node, execute the netstat -na command from the shell prompt of a Junos Space node:
      [root@host] netstat -na | grep 22

      The following is a sample output of the command:

      Output:-
      tcp4       0      0  192.0.2.51.22                                198.51.100.230.54732                            ESTABLISHED
      tcp4       0      0  192.0.2.51.22                               198.51.100.235.33580                            ESTABLISHED
      

      where 198.51.100.230 is the device IP address and 192.0.2.51 is the IP address of the Junos Space node to which the device is connected.

    Modified: 2017-06-08