AXIOMTEK DSA-132 Series Información técnica Pagina 170

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 189
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de 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
Vista de pagina 169
1 2 ... 165 166 167 168 169 170 171 172 173 174 175 ... 188 189

Comentarios a estos manuales

Sin comentarios