-
Hi, guys, Despite of the serial console access, we may want to have a secondary connection to board.
But if I our boards were configured under a dhcp server, means the ip may changes. Then if labgrid has any solution to allow the second connection with ssh? You know, the board is there, when it's up, the upside software surely possible to get the ip of that board. If possible labgrid exporter can get the ip by itself? The final aim is: user could use Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
This can be done, but requires your board to have a strategy at the moment. If you have a strategy, you can boot up the board within a state, login, get the current IP address and register the |
Beta Was this translation helpful? Give feedback.
-
There is also support to collect information from a switch via SNMP (https://github.com/labgrid-project/labgrid/blob/master/labgrid/resource/ethernetport.py). Together with the ARP information from that network's router, you can get the IPs used on a specific port. This is not integrated with the SSH driver, but a Strategy could easily collect that information and update the NetworkService with it. |
Beta Was this translation helpful? Give feedback.
This can be done, but requires your board to have a strategy at the moment. If you have a strategy, you can boot up the board within a state, login, get the current IP address and register the
NetworkService
yourself within the strategy. ThereafterSSHDriver
connections should work. Since labgrid client will use an existing registered driver from the environment, this will work with the labgrid-client environment and state command line options i.e.labgrid-client -c env.yaml -s ssh ssh
wheressh
is a state within yourenv.yaml
which boots up the board, gets the ip address and registers aNetworkService
.