OPNsense Forum

English Forums => 26.1 Series => Topic started by: FredFresh on March 31, 2026, 06:08:53 PM

Title: Cron script
Post by: FredFresh on March 31, 2026, 06:08:53 PM
Hi,

I created this working script for the Cron

[START]
command:traceroute -g 127.0.0.1 10.2.0.1
parameters:
type:script
message:Automatic traceroute to 10.2.0.1
description:Automatic traceroute to 10.2.0.1

How should I modify it in order to pass as parameterthe ip to trace route (10.2.0.1)?

Thank you
Title: Re: Cron script
Post by: nero355 on March 31, 2026, 08:11:14 PM
You are aware of https://docs.opnsense.org/manual/diagnostics_interfaces.html#trace-route or not ?

You can create a "Traceroute Job" there too.
Title: Re: Cron script
Post by: FredFresh on March 31, 2026, 08:49:00 PM
Yes I am aware, but I need to schedule it because of a particular issue.