Skip to content

Ping node doesn't work in node-Red

I have made a complete reinstall of my AXC F 2152, starting from factory default.

Then, FW 2019.3, then node.js from the PlcNetx store, and then, node-red.

Then, I install ping node from the node-red palette.

Here is the result :

2019-05-15T09:57:17.180Z Install : node-red-node-ping 0.0.16

2019-05-15T09:56:50.124Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-node-ping@0.0.16
2019-05-15T09:57:25.541Z [out] + node-red-node-ping@0.0.16
2019-05-15T09:57:25.541Z [out] added 1 package from 1 contributor in 14.572s
2019-05-15T09:57:26.244Z rc=0

So then, as the result code is correct, I think the node will work correctly.

So, I create a simple ping node connected to a debug node :

[{"id":"dcb4bee1.e30e1","type":"debug","z":"c71d23e6.4d3ab","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":611.53125,"y":301.9375,"wires":[]},{"id":"ea125913.57d348","type":"ping","z":"c71d23e6.4d3ab","name":"","host":"www.google.com","timer":"5","x":407.7890625,"y":304.7734375,"wires":[["dcb4bee1.e30e1"]]}]

 

And I get this reply in the debug node :

15/05/2019 à 12:03:35node: ea125913.57d348msg : string[29]

"ENOENT ping command not found"

 

Of course, when I use a ping in the console, it succeeded :

admin@axcf2152:~$ ping www.google.com
PING www.google.com (172.217.22.132): 56 data bytes
64 bytes from 172.217.22.132: seq=0 ttl=47 time=15.803 ms
64 bytes from 172.217.22.132: seq=1 ttl=47 time=14.257 ms
64 bytes from 172.217.22.132: seq=2 ttl=47 time=13.349 ms

I really don't understand why that fails, and waht i can do.

I tested the same thing with an exec node, making a ping, and i have the same result.

An advice?

Thanks

Comments

  • Hi Michel,

    sorry but at least we from the PLCnext support team are not that deep into node red.

    It might be the best when you just raise a question on stackoverflow and tag it with "node-red".

    I'm sure that you'll get a fast feedback there.

    Take care

    Frank

  • Hi Michel,

    To Ping, you can use the 'Exec' node and in command parameter: /bin/ping 'IP Address' and '-c 4' in 'extra input parameters'.

    Regards,

    Amilton.

     

     

     

Sign In or Register to comment.