webmasterbeta
New Member
Yes, believe me or not some servers i have dont have remote reboot, that means i have to log into the datacenter and create a reboot Ticket.
Well this is major pain for my clients as well.
I have made a good idea but know i don't know how to finalize it. Please a more expert member help me, maybe a programmer.
I have made a task with a macro software which opens the browser, logs in, selects the server and reboots it on the datacenter page. That was hard but it works. You execute the macro on my PC and it reboots a server. The problem now is I dont know how to link it to my website or customer panel.
I really would like a button on the client side where the client clics on it and it goes to my local server which then executes the macro to reboot a specific server on the datacenter. I just dont know how do it. Maybe if i install a local webserver but still how would the user execute the macro remotely?
Can someone give me a better advice?In what programming language is the macro?
As you allude to, an easier solution would be to have a script (likely Perl or PHP) on your web site that will itself submit the login credentials and reboot request -- via HTTP -- to the datacenter page you mentioned.
Before coding this yourself, you may want to ask your datacenter if they have something already coded for this type of usage. They may, especially if they have others resellers.
If they won't help you, feel free to PM me, and I can help you put together a simple script. It would be free, but it would just have the base "logic" to execute the reboots on behalf of your clients -- you would need to provide the client authentication checks and such to stop abuse of the script. [Remote reboot methods are handy, but can be abused by outsiders!]
-MikeA proper remote reboot system is hardware related, not software. Using something like APC or IPMI is always optimal here.
Why?
Simple really. Software reboots fail, end of story. There's a reason your server is down, unaccessible, etc. If you can't get to it, how do you expect a "software reboot" to be able to?
In most cases, a reboot it required because the server is inaccessible. Whether that would be because the server has loaded down too much (usually) or it's somehow shut itself down. Software reboots can't resolve these problems at all.Simple really. Software reboots fail, end of story. There's a reason your server is down, unaccessible, etc. If you can't get to it, how do you expect a "software reboot" to be able to?
That's the impression I got on the first read of the post, but take a look again at:
I have made a task with a macro software which opens the browser, logs in, selects the server and reboots it on the datacenter page
I think his datacenter offers remote reboots through a reboot switch. In that case, a script only needs to tell that to reboot the server, and it'll power-cycle the port or similar.
-MikeThat's the impression I got on the first read of the post, but take a look again at:
I think his datacenter offers remote reboots through a reboot switch. In that case, a script only needs to tell that to reboot the server, and it'll power-cycle the port or similar.
-Mike
Thats right. The real reboot is done via hardware. Im just the middle man. I have found a solution to execute the macro via web but i have not tested it yetReboot hardware switch is the only way to reboot your server if the software is completely stuck. Just make sure the server is configured to come up after power off/on cycle. A support system ticket is probably a too slow solution.Do you have a windows server or a Linux one?Linux only so far.will the ssh reboot command be a good solution for you?I thought for linux server, you can reboot it using ssh; for windows, using remote desk...?It's a shame they didn't make it easier for you to automate with your script.You can try using a network analyzer like WireShark (it's open source software) to watch the actual commands and data your macro is sending to do the reboot. (If it's all HTTP data, you can use cURL to send arbitrary HTTP data from a script on *nix). You can then wrap this up in a script that can be tied into your client software.Like I said, it would be much easier if there was an easy to use API in place. But once you get it working, it will be worth it for you and your customers.One of the most useful things to do after getting remote reboot up and running is to tie it into your network monitoring software like WhatsUp or Nagios... if a service fails, it can automatically restart just the service; if the operating system fails, it can reboot the server; if the server overheats, it can email you and power it down, etc.I would be happy to send over some example code for similar integrations I've done in the past.can you ssh in and use the rebbot command?can you ssh in and use the rebbot command?If the server is down, how is he meant to login and issue a reboot command? Whats he got to login in to? The server would be DOWN.If all you have access to is a web page where you reboot the server, as someone mentioned, you could easily do it from your own webpage, control panel using curl. I've done it in the past using that method.. needs must.
Well this is major pain for my clients as well.
I have made a good idea but know i don't know how to finalize it. Please a more expert member help me, maybe a programmer.
I have made a task with a macro software which opens the browser, logs in, selects the server and reboots it on the datacenter page. That was hard but it works. You execute the macro on my PC and it reboots a server. The problem now is I dont know how to link it to my website or customer panel.
I really would like a button on the client side where the client clics on it and it goes to my local server which then executes the macro to reboot a specific server on the datacenter. I just dont know how do it. Maybe if i install a local webserver but still how would the user execute the macro remotely?
Can someone give me a better advice?In what programming language is the macro?
As you allude to, an easier solution would be to have a script (likely Perl or PHP) on your web site that will itself submit the login credentials and reboot request -- via HTTP -- to the datacenter page you mentioned.
Before coding this yourself, you may want to ask your datacenter if they have something already coded for this type of usage. They may, especially if they have others resellers.
If they won't help you, feel free to PM me, and I can help you put together a simple script. It would be free, but it would just have the base "logic" to execute the reboots on behalf of your clients -- you would need to provide the client authentication checks and such to stop abuse of the script. [Remote reboot methods are handy, but can be abused by outsiders!]
-MikeA proper remote reboot system is hardware related, not software. Using something like APC or IPMI is always optimal here.
Why?
Simple really. Software reboots fail, end of story. There's a reason your server is down, unaccessible, etc. If you can't get to it, how do you expect a "software reboot" to be able to?
In most cases, a reboot it required because the server is inaccessible. Whether that would be because the server has loaded down too much (usually) or it's somehow shut itself down. Software reboots can't resolve these problems at all.Simple really. Software reboots fail, end of story. There's a reason your server is down, unaccessible, etc. If you can't get to it, how do you expect a "software reboot" to be able to?
That's the impression I got on the first read of the post, but take a look again at:
I have made a task with a macro software which opens the browser, logs in, selects the server and reboots it on the datacenter page
I think his datacenter offers remote reboots through a reboot switch. In that case, a script only needs to tell that to reboot the server, and it'll power-cycle the port or similar.
-MikeThat's the impression I got on the first read of the post, but take a look again at:
I think his datacenter offers remote reboots through a reboot switch. In that case, a script only needs to tell that to reboot the server, and it'll power-cycle the port or similar.
-Mike
Thats right. The real reboot is done via hardware. Im just the middle man. I have found a solution to execute the macro via web but i have not tested it yetReboot hardware switch is the only way to reboot your server if the software is completely stuck. Just make sure the server is configured to come up after power off/on cycle. A support system ticket is probably a too slow solution.Do you have a windows server or a Linux one?Linux only so far.will the ssh reboot command be a good solution for you?I thought for linux server, you can reboot it using ssh; for windows, using remote desk...?It's a shame they didn't make it easier for you to automate with your script.You can try using a network analyzer like WireShark (it's open source software) to watch the actual commands and data your macro is sending to do the reboot. (If it's all HTTP data, you can use cURL to send arbitrary HTTP data from a script on *nix). You can then wrap this up in a script that can be tied into your client software.Like I said, it would be much easier if there was an easy to use API in place. But once you get it working, it will be worth it for you and your customers.One of the most useful things to do after getting remote reboot up and running is to tie it into your network monitoring software like WhatsUp or Nagios... if a service fails, it can automatically restart just the service; if the operating system fails, it can reboot the server; if the server overheats, it can email you and power it down, etc.I would be happy to send over some example code for similar integrations I've done in the past.can you ssh in and use the rebbot command?can you ssh in and use the rebbot command?If the server is down, how is he meant to login and issue a reboot command? Whats he got to login in to? The server would be DOWN.If all you have access to is a web page where you reboot the server, as someone mentioned, you could easily do it from your own webpage, control panel using curl. I've done it in the past using that method.. needs must.