SquirrelCorporation / SquirrelServersManager

A user friendly, UI/UX focus server & configuration management tool
https://squirrelserversmanager.io/
GNU Affero General Public License v3.0
747 stars 22 forks source link

[CHORE] Optional trigger to force device ip when installing agent 🧹 #119

Open SquirrelDeveloper opened 4 months ago

SquirrelDeveloper commented 4 months ago

Trigger when installing / reinstalling agent to force device IP on agent

SquirrelDeveloper commented 2 months ago

Added in doc

chrisbehectik commented 1 month ago

Has this been implemented?

I installed the agent on a few hosts connected by Tailscale network, which worked fine, but then it defaulted to local ip instead of Tailscale IP and now can't manage the host. I assume resinstalling the agent works but to what extent until I have to do the same again.

SquirrelDeveloper commented 1 month ago

Hi @chrisbehectik . It has been implemented on the agent , you can see here https://squirrelserversmanager.io/docs/technical-guide/troubleshoot#the-device-s-ip-has-automatically-changed-to-its-lan-ip-the-ip-changed-to-vlan-s-one how to do it. It will be possible to do it from the UI directly in a future release

chrisbehectik commented 1 month ago

Thanks @SquirrelDeveloper, got it working after following your instructions! Is there a way to restart the agent manually? I rebooted which worked but only after running 'restart.sh' didn't work. I got the following error:

internet-lab-01:/opt/squirrelserversmanager $ sudo ./restart.sh 

########################################
#### SQUIRREL SERVERS MANAGER AGENT ####
########################################

##### Clean PM2
./restart.sh: line 14: pm2: command not found
./restart.sh: line 15: pm2: command not found
##### Start agent...
./restart.sh: line 18: pm2: command not found
##### PM2 startup...
./restart.sh: line 20: pm2: command not found
##### PM2 save...
./restart.sh: line 22: pm2: command not found
./restart.sh: line 23: pm2: command not found` 
SquirrelDeveloper commented 1 month ago

@chrisbehectik Thanks for the update, Do you have the same result from the UI in inventory , bottom facing arrow, restart agent ?

Screenshot 2024-10-03 at 10 06 13