, , Mikrotik Routerboard |
Mikrotik Routerboard, FTP- Mikrotik Routerboard. Python, , Mikrotik Routerboard.
:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import time
import datetime
from paramiko import SSHClient
from paramiko import AutoAddPolicy
import subprocess
mip = "192.168.4.253"
mlogin = "ubnt"
mpassword = "ubnt"
now_date = datetime.date.today()
:
:
import time
import datetime
from paramiko import SSHClient
from paramiko import AutoAddPolicy
import subprocess
mip = "192.168.4.253"
mlogin = "ubnt"
mpassword = "ubnt"
. now_date:
now_date = datetime.date.today()
Mikrotik Routerboard SSH :
ssh = SSHClient()
ssh.set_missing_host_key_policy(AutoAddPolicy())
ssh.connect(mip, port=22, username=mlogin, password=mpassword) – Mikrotik Routerboard;
cmd = "/system backup save name=%s" % (now_date) – , .