AXIOMTEK DSA-132 Series Informazioni Techniche Pagina 170

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 169
Manual:API
167
!re
=.id=*2
=disabled=no
=dynamic=no
=running=yes
=name=ether2
=mtu=1500
=type=ether
.tag=5
-- here interface getall ends (tag 5)
!done
.tag=5
-- stop listening - request to cancel command with tag 2, cancel itself uses tag 7
/cancel
=tag=2
.tag=7
-- listen command is interrupted (tag 2)
!trap
=category=2
=message=interrupted
.tag=2
-- cancel command is finished (tag 7)
!done
.tag=7
-- listen command is finished (tag 2)
!done
.tag=2
Example client
this is simple API client in Python2
example for Python3
usage: api.py ip-address username password
after that type words from keyboard, terminating them with newline
Since empty word terminates sentence, you should press enter twice after last word before sentence will be sent to
router.
#!/usr/bin/python
import sys, posix, time, md5, binascii, socket, select
Vedere la pagina 169
1 2 ... 165 166 167 168 169 170 171 172 173 174 175 ... 188 189

Commenti su questo manuale

Nessun commento