Página 2 de 2 PrimeiroPrimeiro 12
+ Responder ao Tópico



  1. Sobre o assunto API

  2. amigos fiz o que estava la no script do PHP e deu este erro:

    Connection attempt #1 to 172.169.10.5:8291... <<< [6] /login Connection attempt #2 to 172.169.10.5:8291... <<< [6] /login Connection attempt #3 to 172.169.10.5:8291... <<< [6] /login Connection attempt #4 to 172.169.10.5:8291... <<< [6] /login Connection attempt #5 to 172.169.10.5:8291... <<< [6] /login
    Fatal error: Maximum execution time of 30 seconds exceeded in C:\td-webserveur\web\mk\routeros_api.class.php on line 128

    o que eu estou fazendo de errado so mudei a porta que esta no script pra 8291 que é a do winbox do MK. OK



  3. não é a porta do winbox.. va em IP >> services e ativa a porta do API ... e use-a neste php !!

  4. fiz isto e olha o que ele me mostrou?

    Connection attempt #1 to 10.10.22.23:8728... <<< [6] /login >>> [5, 39] !done >>> [37, 1] =ret=9c42fd81fa05330f1ef4c87c243c7c1b <<< [6] /login <<< [11] =name=admin <<< [44] =response=0060b165fbb58fb60fadca15d37f1ba017 >>> [5, 1] !done Connected... <<< [17] /interface/getall >>> [3, 840] !re >>> [7, 832] =.id=*1 >>> [12, 819] =name=ether1 >>> [9, 809] =mtu=1500 >>> [11, 797] =type=ether >>> [11, 785] =running=no >>> [11, 773] =dynamic=no >>> [9, 763] =slave=no >>> [9, 753] =comment= >>> [12, 740] =disabled=no >>> [3, 735] !re >>> [7, 727] =.id=*2 >>> [12, 714] =name=ether2 >>> [9, 704] =mtu=1500 >>> [11, 692] =type=ether >>> [11, 680] =running=no >>> [11, 668] =dynamic=no >>> [9, 658] =slave=no >>> [9, 648] =comment= >>> [12, 635] =disabled=no >>> [3, 630] !re >>> [7, 622] =.id=*3 >>> [12, 609] =name=ether3 >>> [9, 599] =mtu=1500 >>> [11, 587] =type=ether >>> [11, 575] =running=no >>> [11, 563] =dynamic=no >>> [9, 553] =slave=no >>> [9, 543] =comment= >>> [12, 530] =disabled=no >>> [3, 525] !re >>> [7, 517] =.id=*4 >>> [11, 505] =name=BRAS3 >>> [9, 495] =mtu=1500 >>> [10, 484] =type=wlan >>> [12, 471] =running=yes >>> [11, 459] =dynamic=no >>> [9, 449] =slave=no >>> [9, 439] =comment= >>> [12, 426] =disabled=no >>> [3, 421] !re >>> [7, 413] =.id=*7 >>> [10, 402] =name=LINK >>> [9, 392] =mtu=1500 >>> [10, 381] =type=wlan >>> [12, 368] =running=yes >>> [11, 356] =dynamic=no >>> [9, 346] =slave=no >>> [9, 336] =comment= >>> [12, 323] =disabled=no >>> [3, 318] !re >>> [7, 310] =.id=*8 >>> [13, 296] =name=bridge1 >>> [9, 286] =mtu=1500 >>> [12, 273] =type=bridge >>> [12, 260] =running=yes >>> [11, 248] =dynamic=no >>> [9, 238] =slave=no >>> [9, 228] =comment= >>> [12, 215] =disabled=no >>> [3, 210] !re >>> [7, 202] =.id=*A >>> [11, 190] =name=BRAS4 >>> [9, 180] =mtu=1500 >>> [10, 169] =type=wlan >>> [12, 156] =running=yes >>> [11, 144] =dynamic=no >>> [9, 134] =slave=no >>> [9, 124] =comment= >>> [12, 111] =disabled=no >>> [3, 106] !re >>> [7, 98] =.id=*D >>> [10, 87] =name=wds1 >>> [9, 77] =mtu=1500 >>> [9, 67] =type=wds >>> [12, 54] =running=yes >>> [12, 41] =dynamic=yes >>> [9, 31] =slave=no >>> [9, 21] =comment= >>> [12, 8] =disabled=no >>> [5, 1] !done Array ( [0] => Array ( [.id] => *1 [name] => ether1 [mtu] => 1500 [type] => ether [running] => no [dynamic] => no [slave] => no [comment] => [disabled] => no ) [1] => Array ( [.id] => *2 [name] => ether2 [mtu] => 1500 [type] => ether [running] => no [dynamic] => no [slave] => no [comment] => [disabled] => no ) [2] => Array ( [.id] => *3 [name] => ether3 [mtu] => 1500 [type] => ether [running] => no [dynamic] => no [slave] => no [comment] => [disabled] => no ) [3] => Array ( [.id] => *4 [name] => BRAS3 [mtu] => 1500 [type] => wlan [running] => yes [dynamic] => no [slave] => no [comment] => [disabled] => no ) [4] => Array ( [.id] => *7 [name] => LINK [mtu] => 1500 [type] => wlan [running] => yes [dynamic] => no [slave] => no [comment] => [disabled] => no ) [5] => Array ( [.id] => *8 [name] => bridge1 [mtu] => 1500 [type] => bridge [running] => yes [dynamic] => no [slave] => no [comment] => [disabled] => no ) [6] => Array ( [.id] => *A [name] => BRAS4 [mtu] => 1500 [type] => wlan [running] => yes [dynamic] => no [slave] => no [comment] => [disabled] => no ) [7] => Array ( [.id] => *D [name] => wds1 [mtu] => 1500 [type] => wds [running] => yes [dynamic] => yes [slave] => no [comment] => [disabled] => no ) ) Disconnected...

    ta certo isto da alexandre?



  5. tah !

    veja que sao informacoes do seu router jah






Tópicos Similares

  1. Script para Pegar IP, Enviar e-mail e escrever no pptp.conf
    Por Skill no fórum Linguagens de Programação
    Respostas: 21
    Último Post: 26-06-2003, 11:34
  2. Script para Pegar IP da ETH ou PPP0, e enviar por email
    Por Skill no fórum Servidores de Rede
    Respostas: 0
    Último Post: 28-03-2003, 15:55
  3. Script para pegar IP
    Por Skill no fórum Servidores de Rede
    Respostas: 6
    Último Post: 15-03-2003, 14:30
  4. script para criação de contas
    Por no fórum Linguagens de Programação
    Respostas: 1
    Último Post: 08-02-2003, 16:08
  5. scripts para logs do Radius
    Por dboom no fórum Servidores de Rede
    Respostas: 1
    Último Post: 15-09-2002, 15:00

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L