Renew DHCP command for Masters?
crobinson49
Posts: 3
in AMX Hardware
So, I know there is a telnet command to renew dhcp, but is this possible to do same thing through code? The idea is to perhaps add this for an "offline" event if our network takes a dive and masters no longer to respond when network is revived.
I know that there is a "reboot" command, but don't necessarily want to reboot if a system is in use, especially for the DVX systems.
I know that there is a "reboot" command, but don't necessarily want to reboot if a system is in use, especially for the DVX systems.
0
Comments
Can you elaborate on what code you're using in netlinx?
I don't believe there is any command that does what you want. But - have your tried to telnet to address 127.0.0.1? (local host)
Unfortunately I can't say if telnet works to the local host 127.0.0.1 if there's no active network. It's internal so it might but if the NIC is inactive maybe it won't. I do have code running that could test this but I have no motivation and my eyes are heavy. I think I posted a module in Mod Pedia called Ping_URL_Get so something like that I used to get the public IP and It could also telnet into the master to ping an IP address which could be easily modified to do what you want. The Get Public IP probably needs to be modified to use trade.amx.com instead of amx.com. I think that was changed after the Harmon purchase of AMX and I doubt I modified the module in mod pedia. I probably haven't modified all the system I have running that code either cuz at this point I feel like I'm maintaining dinosaurs that should just be allowed to die because there is no ecosystem for them any more.
In many cases of telling the client that these kinds of things only happened when a Linksys was present couldn't make them budge. So, the workaround was to programmatically reboot the master at some time in the wee hours of the morning. On those systems I rarely, if at all, ever got a call on the issue again. Also, having implimented it have never gotten a call saying their master had mysteriously rebooted. The odds of them actually witnessing the reboot are pretty slim if you think about it. Even if the system was doing something at the time, there was no interruption of functionality since back then AV switching usually lived on another box.
While I do have masters out there that literally go years between reboots, I kinda think an occasional reboot is probably a good idea really.