Skip to content

Instantly share code, notes, and snippets.

@c1982
Created February 28, 2011 09:32
Show Gist options
  • Save c1982/847133 to your computer and use it in GitHub Desktop.
Save c1982/847133 to your computer and use it in GitHub Desktop.
Create Backup, Change Identity, Login Notice, Reboot
using Mikrotik.Api;
namespace Usage
{
class Program
{
static void Main(string[] args)
{
//TODO : Create Mikrotik backup
var variable = new RouterOs("192.168.2.8", "admin", "password")
.Backup();
//TODO: Change Mikrotik Identity, Set Login Notice Text and Reboot Mikrotik
variable.Identity("home-router")
.LoginNotice("Warning! Please do not change this Text")
.Reboot();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment