Community discussions

MikroTik App
 
pgardiner
just joined
Topic Author
Posts: 2
Joined: Tue Feb 16, 2021 6:26 pm

Extract firmware version to a email

Thu Jun 17, 2021 1:53 pm

Hi all,

I have a perfectly good script that backs up and emails the current config every day,

However I would like to add the current version of firmare in the emaiil header to track which backup is with with a particular firmware.

Current header "Mikrotik, XXXXXXX XXXXX XXX, Mikrotik System Backup, CCR2004-1G-12S+2XS @ 08:00"

I cant find how to insert just the firmware-version into the string subject="$[/system identity get name], Mikrotik System Backup, CCR2004-1G-12S+2XS @ 08:00" \

Regards
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Extract firmware version to a email

Fri Jun 18, 2021 12:26 pm

User serial number (that should be unique fore each box)
subject="$[/system identity get name] $[/system routerboard get serial-number], Mikrotik System Backup, CCR2004-1G-12S+2XS @ 08:00" 
Firmware
[/system routerboard get current-firmware]
 
pgardiner
just joined
Topic Author
Posts: 2
Joined: Tue Feb 16, 2021 6:26 pm

Re: Extract firmware version to a email

Mon Jun 21, 2021 2:23 pm

Excellent, worls a treat,

Regards
 
gotsprings
Forum Guru
Forum Guru
Posts: 2102
Joined: Mon May 14, 2012 9:30 pm

Re: Extract firmware version to a email

Mon Jul 05, 2021 4:07 pm

Send yourself an export... That has the firmware at the top of the text.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Extract firmware version to a email

Mon Jul 05, 2021 7:57 pm

The user has already solved.
Using your method, everytime must open the attach for see the version, instead to read directly on subject.
 
gotsprings
Forum Guru
Forum Guru
Posts: 2102
Joined: Mon May 14, 2012 9:30 pm

Re: Extract firmware version to a email

Mon Jul 05, 2021 8:43 pm

I find it he export more useful as I can read the configuration on the router without logging in.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Extract firmware version to a email

Mon Jul 05, 2021 8:45 pm

Read all before post:
I have a perfectly good script that backs up and emails the current config every day,
He want to add the firmware version on subject to do not open everytime the file to see inside,
He do not want exactly what you suggest.
 
gotsprings
Forum Guru
Forum Guru
Posts: 2102
Joined: Mon May 14, 2012 9:30 pm

Re: Extract firmware version to a email

Tue Jul 06, 2021 1:36 pm

I also wonder...

What changes in your router config that needs to be emailed?

I have the router back itself up every week and the file sits on the router. This is because the other techs often forget to take a backup after making changes.

I do my best to hit leaving script.
Which make a backup and export. I then download that to the customer file.

I asked Sara about what changes on the router that would require the daily backup. She didn't answer.

Also... I never have scripts or schedules that auto update firmware. That master/slave to bridge then some changed to how \? Worked really messed up some running systems.

Who is online

Users browsing this forum: Bing [Bot], donkeyKong, marcelofares, rogerioqueiroz and 23 guests