mirror of
https://github.com/gbudny93/RouterOS_Useful_Scripts.git
synced 2025-06-24 18:58:37 +02:00
Update.
This commit is contained in:
parent
e2280aad84
commit
8e7ce73c99
2 changed files with 77 additions and 4 deletions
81
README.md
81
README.md
|
@ -1,11 +1,38 @@
|
|||
# RouterOS_Useful_Scripts
|
||||
> MikroTik RouterOS Scripts for various use and shared among different projects. Repository contains ready to use scripts as well functions ready to use in larger projects.
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
## Change log
|
||||
|
||||
- 7/19/2019 v1.1 update
|
||||
- FTP_Backup_Template.rsc
|
||||
- Schedules generation of *.backup* and *.rsc* file on RouterOS. Create FTP user dedicated for automatic backups. More on automatic RouterOS
|
||||
backups can be found under dedicated project: :link: [Backup_mt by gbudny93](https://github.com/gbudny93/Backup_mt)
|
||||
- RouterOS_Auto_Upgrade.rsc
|
||||
- in progress
|
||||
- RouterOS_Create_Directory.rsc
|
||||
- Function that creates directory with specific name in RouterOS
|
||||
- RouterOS_Log_Filtering.rsc
|
||||
- Function that filters logs based on specified criteria: time or message and put in desired output
|
||||
- RouterOS_Log_To_Alert.rsc
|
||||
- Fucntion that sends an email alert based on log message match
|
||||
- RouterOS_Send_Email.rsc
|
||||
- Fucntion sending email via SMTP server with common email parameters as function parameters
|
||||
- RouterOS_File_Logging.rsc
|
||||
- Function that adds log entry if file was added or removed
|
||||
- RouterOS_LCD_Change.rsc (Applies only to physical devices with LCD)
|
||||
- Function that changes LCD mode from dark to light and vice versa based on schedule set up
|
||||
- RouterOS_Low_Disk_Space.rsc
|
||||
- Function sending email alert if disk space is under specified treshhold
|
||||
- RouterOS_File_Screening.rsc
|
||||
- in progress
|
||||
- RouterOS_Eth_Errors_Handling.rsc
|
||||
- in progress
|
||||
- RouterOS_Config_Check.rsc
|
||||
- in progress
|
||||
|
||||
- 6/14/2019 v1.0 first release
|
||||
- FTP_Backup_Template.rsc
|
||||
- Schedules generation of *.backup* and *.rsc* file on RouterOS. Create FTP user dedicated for automatic backups. More on automatic RouterOS
|
||||
|
@ -24,12 +51,13 @@
|
|||
## Prerequisites
|
||||
|
||||
- :white_check_mark: RouterOS v6.40 or higher
|
||||
- :white_check_mark: MikroTik CRS or CCR with LCD for RouterOS_LCD_Change.rsc
|
||||
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
> Use the following scripts to make your RouterOS management easier or use them in various scripts you write
|
||||
> Use the following scripts to make your RouterOS management easier or use them in various larger scripts or projects
|
||||
:+1:
|
||||
|
||||
### FTP_Backup_Template.rsc
|
||||
|
@ -55,11 +83,20 @@ Script is a part of :link: [Backup_mt by gbudny93](https://github.com/gbudny93/
|
|||
|
||||
### RouterOS_Log_Filtering.rsc
|
||||
|
||||
:soon:
|
||||
> RouterOS function for log messages filtering based on message or time match stored in chosed output.
|
||||
|
||||
```
|
||||
$LogFilter;
|
||||
```
|
||||
|
||||
### RouterOS_Log_To_Alert.rsc
|
||||
|
||||
:soon:
|
||||
> RouterOS function sending mail alert if log entry matches message criteria.
|
||||
|
||||
```
|
||||
$LogToAlert message="message" fileName="fileName" smtpServer=smtpServer smtpPort=smtpPort domain="@example.com" \
|
||||
recipient="recipient@example.com";
|
||||
```
|
||||
|
||||
### RouterOS_Send_Email.rsc
|
||||
|
||||
|
@ -70,6 +107,42 @@ Script is a part of :link: [Backup_mt by gbudny93](https://github.com/gbudny93/
|
|||
$SendEmail smtpServer=SMTPServer smtpPort=SMTPPort from=From to=To subject=Subject body=Body
|
||||
```
|
||||
|
||||
### RouterOS_File_logging.rsc
|
||||
|
||||
> RouterOS function adding log entry if file was added or removed.
|
||||
|
||||
```
|
||||
$FileToLog;
|
||||
```
|
||||
|
||||
### RouterOS_LCD_Change.rsc
|
||||
|
||||
> RouterOS function changing LCD mode from dark to light and vice versa based on schedule setup.
|
||||
|
||||
```
|
||||
$ChangeLcd lightModeStartTime="08:00:00" darkModeStartTime="17:00:00";
|
||||
```
|
||||
|
||||
### RouterOS_Low_Disk_Space.rsc
|
||||
|
||||
> RouterOS function genersting mail alert if disk space is below defined treshhold.
|
||||
|
||||
```
|
||||
$LowDiskSpace treshhold=free_disk_space_in_%;
|
||||
```
|
||||
|
||||
### RouterOS_File_Screening.rsc
|
||||
|
||||
:soon:
|
||||
|
||||
### RouterOS_Eth_Errors_Handling.rsc
|
||||
|
||||
:soon:
|
||||
|
||||
### RouterOS_Config_Check.rsc
|
||||
|
||||
:soon:
|
||||
|
||||
## Authors
|
||||
|
||||
- Grzegorz Budny
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue