-

   asp24

 - e-mail

 

 -

compex d-link emitech finmark foxgate ok-net senao engenius tp-link ubiquiti networks - "asp24" ) . (

 -

 LiveInternet.ru:
: 18.04.2011
: 240
: 8
: 248

:


, , Mikrotik Routerboard

, 23 2011 . 16:40 +

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

Mikrotik Routerboard:

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) – , .

, , Mikrotik Routerboard

: [1] []
 

:
: 

: ( )

:

  URL