HiNeil

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.