#How to set packet size for Ping
1 messages · Page 1 of 1 (latest)
If it's not documented (and I don't see it), probably not possible.
instead of using the ping integration you could build your own ping sensor with the shell_command integration which would allow you to call a ping with any paramaters you like and capture the response.
another option might be to use uptime kuma addon, i think you can specify size on that but i am not sure i havent used it that much and not at all for a while
Thanks - I'll check this out. If I don't have to write scripts, it will be a win 🙂
Look like shell and scripts for me..
OK it works.
Maybe this helps someone:
In configuration.yaml:
shell_command:
ping_that_ip: ping [the ip] -c 5 -s 1500
You need a helper:
input_number.that_ip_big_mtu_ping
In Automations:
id: '[your id]'
alias: Ping A Big MTU
description: ''
triggers:
- trigger: time_pattern
seconds: '60'
conditions: []
actions:
- action: shell_command.ping_that_ip
metadata: {}
data: {}
response_variable: pingResponse
- action: input_number.set_value
target:
entity_id: input_number.that_ip_big_mtu_ping
data:
value: '{{ pingResponse[''stdout''].split('' = '')[1].split(''/'')[1] | float }}'
mode: single