New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Racknerd VPS: is there a way to...
the_wireless
Member
in Help
...start and stop it remotely, via some API or similar?
Or, I could "hibernate" it for some time?
I dont want it is accessible in some hours, but I cannot use the systemctl hibernate and wake-on-lan approach I use on my local networks...
Comments
When you say remotely, do you mean without using SolusVM?
You can shutdown via control panel
(SolusVM is their web control panel, right?)
yes, sorry me for not being clear.
I need to script it in someway, or from another controlling machine, or from inside the vps if it is possible to set a stop and start (but the first way is preferred because I can also manage restart on demand, from outside the vps and without passing to the SolusVM)
Racknerd use solusvm and solusvm has an api so you should be able to do this.
Log into your control panel and you'll see an api tab.
Hi, you mean this https://docs.solusvm.com/v1/api/client/Functions.html?
Yes
ok, the example is not clear to me https://docs.solusvm.com/v1/api/client/PHP+Code+Examples.html
if I want to stop my VPS with 1.2.3.4 ip in the most secure way (POST?) what should be the url to call?
it is something like that?
curl https://MY_VPS_IP/api/command.php?key=MY_API_KEY&hash=MY_API_KEY_ASH&action=reboot
In this case, is it racknerd infrastructure that intercept the calling to MY_VPS_IP (of, course, I have not an https server anserwing to the curl...) or I'm mistaking something? I think I have to use a different ip:port... and the command should be
curl https://RACKNERD_IP_PORT/api/command.php?key=MY_API_KEY&hash=MY_API_KEY_ASH&action=reboot
Replace the VPS IP with the URL of racknerds solusvm.
Naah i was just kidding you can't do anything through that
well, this is the teted and right command:
curl -v "https://nerdvm.racknerd.com/api/client/command.php?key=THE_KEY&hash=THE_HASH&action=THE_ACTION"
Or, you know, just leave the server up and just stop the service you want off and then turn it back on when you want. Powering off from the panel is usually last resort when not running from an embedded Linux that uses a read only filesystem intended for random power offs.
In other words, I think you'll occasionally trigger long file checks on boot doing it your way.
At the very least, power off over SSH and confirm off with API. Turn it back on with API call.
I would suggest to delete VPS and find new provider, cheers.
And move to Nottingham
Thanks for sharing your suggestion @Nekki it's great to see you in LET.
OH NOTTINGHAM, OH NOTTINGHAM, IS FULL OF FUN, IS FULL OF FUN, OH NOTTINGHAM IS FULL OF FUN. IT’S FULL OF TITS, FANNY AND FOREST, OH NOTINGHAM IS FULL OF FUN
LET? I thought this was the RackNerd forum!
I would suggest to send spam and run CPU miner on the VPS.
The VPS will delete itself after a while.
Sir, this is a Wendy's.
what am i missing here, why can you not just cron job service(s) and/or port(s) on and off.