Hi,Neil: I want to control device power on/off by lavapdu.,but when I run pduclient --daemon autotest001 --hostname 10.5.142.6 --command off --port 10 ERROR : Error sending command, wrong daemon hostname? Can you help me solve this problem?
Lava-server :IP 10.5.21.5 autotest001 Pdudaemon run on the lava-server
Lavapdu.conf:
{ "daemon": { "hostname": "10.5.21.5", "port": 16421, "dbhost": "127.0.0.1", "dbuser": "pdudaemon", "dbpass": "pdudaemon", "dbname": "lavapdu", "retries": 5, "logging_level": "INFO" }, "pdus": { "192.168.10.2": { "driver": "apc9210" }, "192.168.10.3": { "driver": "apc7952", "telnetport": 5023 }, "192.168.10.4": { "driver": "apc7952" }, "192.168.10.5": { "driver": "apc8959", "this": "that", "something": "else" }, "192.168.25.52": { "driver": "apc7952" } }
This email is intended only for the named addressee. It may contain information that is confidential/private, legally privileged, or copyright-protected, and you should handle it accordingly. If you are not the intended recipient, you do not have legal rights to retain, copy, or distribute this email or its contents, and should promptly delete the email and all electronic copies in your system; do not retain copies in any media. If you have received this email in error, please notify the sender promptly. Thank you.
Hi Xuelian,
On 12/09/2017 12:00, Li, Xuelian wrote:
Hi,Neil:
I want to control device power on/off by lavapdu.,but when I run pduclient --daemon autotest001 --hostname _10.5.142.6_--command off --port 10
pduclient --daemon 10.5.21.5 --hostname 192.168.10.2 --port 10 --command off
This will shutdown the port 10 on PDU *named* 192.168.10.2. The request is sent to pdudaemon host by *10.5.21.5* hostname.
The couple daemon.hostname and daemon.port is the configuration needed to set the TCP server. It will listen on hostname hostname on port port.
If you run pduclient on the same host, you will need one of your net interface to have the 10.5.21.5 IP set so that it can communicate with the server. OR you could set the daemon.hostname to localhost if it isn't used outside of the machine.
Hope it makes sense, Quentin
ERROR : Error sending command, wrong daemon hostname?
Can you help me solve this problem?
Lava-server :IP 10.5.21.5 autotest001
Pdudaemon run on the lava-server
Lavapdu.conf:
{
"daemon": { "hostname": "10.5.21.5", "port": 16421, "dbhost": "127.0.0.1", "dbuser": "pdudaemon", "dbpass": "pdudaemon", "dbname": "lavapdu", "retries": 5, "logging_level": "INFO" }, "pdus": { "192.168.10.2": { "driver": "apc9210" }, "192.168.10.3": { "driver": "apc7952", "telnetport": 5023 }, "192.168.10.4": { "driver": "apc7952" }, "192.168.10.5": { "driver": "apc8959", "this": "that", "something": "else" }, "192.168.25.52": { "driver": "apc7952" } }
This email is intended only for the named addressee. It may contain information that is confidential/private, legally privileged, or copyright-protected, and you should handle it accordingly. If you are not the intended recipient, you do not have legal rights to retain, copy, or distribute this email or its contents, and should promptly delete the email and all electronic copies in your system; do not retain copies in any media. If you have received this email in error, please notify the sender promptly. Thank you.
Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
lava-users@lists.lavasoftware.org