The bhyve guest sometimes receives another IP address from my LAN router.
I can always login into the guest using "screen /dev/nmdm0B" .
I would like to write an automatic script which logs in the guest and then writes the output of the command "ifconfig -a" into a file on the host.
In fact some serial-line "automation".
If I could write a python program which opens "/dev/nmdm0B" but I have no idea which API to use.
I can always login into the guest using "screen /dev/nmdm0B" .
I would like to write an automatic script which logs in the guest and then writes the output of the command "ifconfig -a" into a file on the host.
In fact some serial-line "automation".
If I could write a python program which opens "/dev/nmdm0B" but I have no idea which API to use.