Confirmed users
1,989
edits
Line 336: | Line 336: | ||
Also, in general what you probably care more about is which relay it's attached to. Each production panda has a k/v store key of system.relay.0 that will tell you which relay it's hooked up to (which corresponds to chassis as well) and which bank and slot on the relay. | Also, in general what you probably care more about is which relay it's attached to. Each production panda has a k/v store key of system.relay.0 that will tell you which relay it's hooked up to (which corresponds to chassis as well) and which bank and slot on the relay. | ||
== Rebooting Pandas == | |||
<pre> | |||
kmoir jmaher: how do you connect to a panda via a serial console to reboot it when it's not on the network. I have several dead pandas.... | |||
jmaher kmoir: you need to use the relay script that ted wrote and match it up with the bank:relay | |||
jmaher kmoir: http://hg.mozilla.org/users/tmielczarek_mozilla.com/relay-control | |||
jmaher kmoir: then look in https://inventory.mozilla.org/en-US/#inventory | |||
jmaher kmoir: for example panda-0010: https://inventory.mozilla.org/en-US/systems/show/6812/ | |||
jmaher at the bottom of the page, you can see the server, bank and relay: panda-relay-01.build.scl1.mozilla.com:bank1:relay4 | |||
kmoir yes | |||
jmaher those are the parameters to relay.py: "python relay.py panda-relay-001.build.scl1.mozilla.com 1 4" | |||
kmoir so on what machine do you run the relay script? | |||
jmaher kmoir: you can run it on any machine that can access the panda-relay-01 via ping | |||
kmoir okay thanks, very helpful | |||
ted yeah, it's just TCP | |||
ted soon we'll have these all hooked up to BMM | |||
ted and you'll just be able to HTTP POST to reboot a panda | |||
kmoir ooh, that will be awesome | |||
ted kmoir: relay.py just talks to the relay control board that the pandas' power supplies are wired through | |||
ted so it's a hard powercycle | |||
ted FYI | |||
kmoir thanks ted | |||
</pre> |