Forum: CFEngine Help Subject: readtcp - Error: Too many bytes to read from TCP port Author: jordy Link to topic: https://cfengine.com/forum/read.php?3,22915,22915#msg-22915
Hi All, I want to download a script from a website. The script isn't big (about 12KB) but I don't know if the script in the future will grow. For that, I want to allocate a 100KB space. I have the next script: bundle agent system_dell_repo { vars: "dell_host" string => "linux.dell.com"; "script" string => readtcp ("$(dell_host)","80","GET /repo/hardware/latest/bootstrap.cgi HTTP/1.0 $(const.r)$(const.n)Host: $(dell_host)$(const.r)$(const.n)$(const.r)$(const.n)", 102400); commands: reports: linux:: "$(script)"; } However, when I run cf-anget, I get part of the data (not the complete data) as well the next error: Too many bytes to read from TCP port 8...@linux.dell.com Too many bytes to read from TCP port 8...@linux.dell.com Anyone knows how can I allocate 100KB for the variable "script" and avoid the error? Thank you! _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine