Like to recreate the mikrotik shutdown single boot and starting dual beep through a script. If anyone know the frequency and duration, I will very much appreciate it.
Simple search with your favourite search engine gives: Scripting - RouterOS - MikroTik Documentation, however less and less devices have buzzers to emit sound.
search engines dont work anymore. Not looking for the script. Looking for the frequency and time duration.
I have a script, $PIANO, that lets you play various tones using :beep. What you "play" using the onscreen keyboard will be output as a command that can be used in a script.

I set my router to reboot at 0000hr. So, the shutdown and starting/booting sound kinda became nostalgic and household thing to me. Trying to recreate that. Need to reschedule the time. I can write the script though. But thanks for the piano script though.
You have just "killed" Google/Bing/Yahoo/Yandex/.... could you elaborate please?
search engine doesn’t yield that much, that it was used too. Before it was 10-12 pages of results, now in some cases its just 1-2 pages. I already did searched the starting beep frequency and duration.
Scripting - RouterOS - MikroTik Documentation - 6th row in global commands table
I think OP is looking for exact frequency and length...
Of which tone?
It is easy to test by executing command from terminal with some frequency and duration like 1000/200ms, and set in script which one sounds best for need.
I just used this Android app FrequenSee - Spectrum Analyzer - Apps on Google Play and did some test on my old hEX RB750Gr3. The beep sound played at reboot appears to have a frequency of 5 kHz. I've then confirmed with:
for i from=1 to=100 do={ :beep; :delay 1; }
and
for i from=1 to=100 do={ :beep frequency=5000; :delay 1; }
that the default :beep frequency is 5 kHz too. The spectrum also looks exactly like the one at shutdown/reboot.
Also, after some tests with:
for i from=1 to=10 do={ :beep; :delay 1; :beep length=0.05; :delay 1; }
for i from=1 to=10 do={ :beep; :delay 1; :beep length=0.10; :delay 1; }
for i from=1 to=10 do={ :beep; :delay 1; :beep length=0.20; :delay 1; }
The duration of the standard :beep is most probably 100 ms.
This reproduces the "reboot" experience:
:beep frequency=5000 length=0.1;
:delay 5;
:beep frequency=5000 length=0.1;
:delay 0.2;
:beep frequency=5000 length=0.1;
Please note that the :beep command returns immediately while the sound is still playing, so with :delay 0.2; the real silence between the two beeps is only 100 ms!
Is this Defined in RouterBoot ? So we can't get it from the default config.
I think there some command to save the default config to a file, and then get it.
/system/default-configuration/print file=default
It is interesting how you post an example with 1000 Hz only two posts below the one by CGGXANNX that actually measured it as being 5000 Hz, specifically on a RB750Gr3.
Even if we allow for some tolerance for the measuring tools, something measured as 5000 Hz may be something between 4500 and 5500, certainly not 1000.
Taking a step back here...
-
AFAIK RouterOS (really RouterBOOT) still defaults to beeping on startup/shutdown, so IDK how someone gets into this situation. But not all devices have beepers, so
:beepdoes nothing if there is no beeper. And the beep behavior, on device with beeper, by/system/routerboard/settings/set silent-boot=<yes|no> -
In no case could config/scripting "mimic" the shutdown beep, since there is no "on-shutdown" event hook. Now a startup beep could be done in scheduler.
On non-beeper devices it reminds the sound of clapping with one hand ...
Can be done, though. Quiet but it does make sound.
Or snapping the fingers.
All one-handed.
If I understood it correctly, the OP used to have a router with beeper that was normally rebooted at midnight. And now he/she no longer has a router with beeper, misses that sound at midnight, and now wants to write a script (probably running on a PC or another non MikroTik device) that emits the sound at the exact time everyday.
@optio already checked and used that on a script. @holvoetn you are spot on. @CGGXANNX that a great effort. But @patrikg config doesnt contain anything regarding the beep. 1000 Hz , definitely not the frequency. Already tested 1 khz. Probably, in 5k range as @CGGXANNX mentioned, will test and report back. I still using a hap ac
Mikrotiks are hard to get or expensive, there even replicas in my locality. For a home router I still haven’t still exploited it full features yet. Besides its the only device with 3X3 MUMIMO.
There is also DIY “beeper” in topic serial-MP3-player Catalex YX6300 for RBM33G or other RB with serial port for devices without beeper ![]()
So, far 5KHz is the frequency tested . timing needs some fine tuning though.