Home AMX User Forum AMX General Discussion

Reboot master from code

I've searched several times and I can't find the answer.

What code can I use to reboot the master from within the program? I know.. bad idea, etc. , but I need a temporary fix for a problem that's happening at a site 3 hours away.

Comments

  • HedbergHedberg Posts: 671
    reboot(0)

    or

    reboot(0:1:0)

    Check out the Netlinx Studio online help.
  • BigsquatchBigsquatch Posts: 216
    Sent to which device?

    Trying this from "Control a Device' does not work.

    SEND_COMMAND 0:1:1, "'REBOOT (0:1:0)'"

    SEND_COMMAND 0:1:1, "'REBOOT (0:1:1)'"

    SEND_COMMAND 0:1:1, "'REBOOT (0)'"

    No luck with any of them.
  • HedbergHedberg Posts: 671
    it's a function, not a string to be sent. For example:
    if(snafu)
    {
      snafu = 0
      reboot(0:1:0)
    }
    
  • BigsquatchBigsquatch Posts: 216
    Hedberg wrote: »
    it's a function, not a string to be sent. For example:
    if(snafu)
    {
      snafu = 0
      reboot(0:1:0)
    }
    

    Ok, thank you!
  • PhreaKPhreaK Posts: 966
    Alternatively if you are just using it for some troubleshooting you can telnet/ssh into the box and issue a reboot i]<device number>[/i command.
  • BigsquatchBigsquatch Posts: 216
    PhreaK wrote: »
    Alternatively if you are just using it for some troubleshooting you can telnet/ssh into the box and issue a reboot i]<device number>[/i command.

    Right. But there are some network issues there (another company is in charge of the network there) and when there are problems I can't telnet to the master, only ping works.
  • Bigsquatch wrote: »
    Right. But there are some network issues there (another company is in charge of the network there) and when there are problems I can't telnet to the master, only ping works.

    Is this a older NIxxxx?

    John
  • BigsquatchBigsquatch Posts: 216
    John_Glove wrote: »
    Is this a older NIxxxx?

    John

    Yes, it's a NI3000 installed at least 3 years ago. Maybe 4 or 5 years old. Why do you ask?
  • Bigsquatch wrote: »
    Yes, it's a NI3000 installed at least 3 years ago. Maybe 4 or 5 years old. Why do you ask?

    Please read:
    http://www.amxforums.com/showthread.php?7903-Network-Probs-since-change-switch

    there are some network problems with older NI's.

    john
Sign In or Register to comment.