[GTER] Dica para status de equipamentos UBNT

Mail GTER mail.gter at gmail.com
Mon Jun 18 17:55:56 -03 2012


Na verdade a resposta está no formato JSON, que um dos formatos utilizados pelo JQuery. 

Enviado via iPhone

Em 18/06/2012, às 16:41, Lucas Willian Bocchi <lucas.bocchi at gmail.com> escreveu:

> Isso Parece muito com uma resposta no formato jQuery.
> 
> 
> 2012/6/18 Leandro Marczykoski <leandrol at incoterm.com.br>:
>> boa alexandre!! grande dica!!
>> muito obrigado.
>> 
>> 
>> Leandro Marczykoski
>> Seinfo - T.I. | Incoterm
>> +55 51 32457163
>> 
>> 
>>>>> "Alexandre Pires Avilla [Dominioz Telecom]"
>> <ale.avilla at dominioz.com.br> 16/06/2012 23:03 >>>
>> Uma dica para os "Ubiquititeiros" rs
>> 
>> Estava "fucando" no shell de uma rocket M5, com o firmware 5.5, e
>> achei
>> estas duas paginas no www dele
>> status.cgi
>> status-new.cgi
>> elas mostram muitas informacoes importates como CCQ, ACK e etc etc e
>> etc.
>> pra quem gosta de monitorar até a "cor do cabo" que sobe pra torre,
>> esta
>> facil para criar um VBS/SH/ASP/PHP ou coisa parecida para buscar as
>> infos
>> via wget ou qualquer outra coisa, nos radios e mostrar em um local
>> centralizado ou plotar algum grafico no nagius/prtg/mrtg e etc
>> Aproveitem rs
>> 
>> Conteudo do status.cgi:
>> 
>> { "host": {
>>    "uptime": 529549,
>>    "time": "2012-06-16 22:53:33",
>>    "fwversion": "v5.5",
>>    "hostname": "XXXXXXXXXXXXXXXXXXXXX",
>>    "netrole": "bridge"
>> },
>> "wireless": {
>>    "mode": "ap",
>>    "essid": "XXXXXXXXXXXXX",
>>    "hide_essid": 0,
>>    "apmac": "XXXXXXXXXXXXXXXXXXXXX",
>>    "channel": 137,
>>    "frequency": "5685 MHz",
>>    "opmode": "11naht40minus",
>>    "antenna": "Combined",
>>    "chains": "2X2",
>>    "signal": -69, "rssi": 27, "noisef": -93,
>>    "ack": 192,
>>    "distance": 22350,
>>    "ccq": 948,
>>    "txrate": "225", "rxrate": "236.25",
>>    "security": "none", "qos": "No QoS",
>>    "rstatus": 5,
>>    "count": 3,
>>    "polling": {
>>        "enabled": 1, "quality": 59, "capacity": 62, "priority": 3,
>> "noack": 0,
>>        "airsync_mode": 0, "airsync_connections": 0,
>>        "airsync_down_util" : 0, "airsync_up_util" : 0,
>>        "airselect" : 0, "airselect_interval" : 1000
>>    },
>>    "stats": {        "rx_nwids": 10547,
>>        "rx_crypts": 0,
>>        "rx_frags": 0,
>>        "tx_retries": 0,
>>        "missed_beacons": 0,
>>        "err_other": 0
>>    },
>>    "wds": 1,
>>    "aprepeater": 1,
>>    "chwidth": 40,
>>    "chanbw": 0,
>>    "cwmmode": 0,
>>    "rx_chainmask": 3,
>>    "tx_chainmask": 3,
>>    "chainrssi" : [ 29, 30, 0 ],
>>    "chainrssimgmt" : [ 29, 30, 0 ],
>>    "chainrssiext" : [ 29, 30, 0 ]
>> },
>> "airview": { "enabled": 0 },
>> "services": { "dhcpc": 0, "dhcpd": 0, "pppoe": 0 },
>> "firewall": { "iptables": 0, "ebtables" : 0 },
>> "genuine": "",
>> "interfaces" : [
>>    {
>>        "ifname" : "lo",
>>        "hwaddr": "00:00:00:00:00:00",
>>        "enabled" : true,
>>        "status" : { "plugged": 1, "speed": 0, "duplex": 255 },
>>        "services" : { "dhcpc": false, "dhcpd": false, "pppoe": false
>> }
>>    },
>>    {
>>        "ifname" : "eth0",
>>        "hwaddr": "XXXXXXXXXXXXXX",
>>        "enabled" : true,
>>        "status" : { "plugged": 1, "speed": 100, "duplex": 1 },
>>        "services" : { "dhcpc": false, "dhcpd": false, "pppoe": false
>> }
>>    },
>>    {
>>        "ifname" : "wifi0",
>>        "hwaddr": "XXXXXXXXXXXXXX",
>>        "enabled" : true,
>>        "status" : { "plugged": 1, "speed": 0, "duplex": 255 },
>>        "services" : { "dhcpc": false, "dhcpd": false, "pppoe": false
>> }
>>    },
>>    {
>>        "ifname" : "ath0",
>>        "hwaddr": "XXXXXXXXXXXXXXXXX",
>>        "enabled" : true,
>>        "status" : { "plugged": 1, "speed": 300, "duplex": 255 },
>>        "services" : { "dhcpc": false, "dhcpd": false, "pppoe": false
>> }
>>    },
>>    {
>>        "ifname" : "br0",
>>        "hwaddr": "XXXXXXXXXXXXXXXXXXX",
>>        "enabled" : true,
>>        "status" : { "plugged": 1, "speed": 0, "duplex": 255 },
>>        "services" : { "dhcpc": false, "dhcpd": false, "pppoe": false
>> }
>>    }
>> ]
>> }
>> 
>> 
>> Conteudo do status-new.cgi
>> 
>> { "status" : {
>> "host" : {
>>    "uptime" : "529900",
>>    "time" : "2012-06-16 22:59:23",
>>    "utime" : "1339898363",
>>    "hostname" : "xxxxxxxxxxxxx",
>>    "fwversion" : "XM.ar7240.v5.5.12536.120406.1455",
>>    "role" : "unknown",
>>    "loadavg" : [ 0.00, 0.00, 0.00 ],
>>    "meminfo" : {
>>        "total" : 62012,
>>        "free" : 39924,
>>        "buffers" : 3232
>>    }
>> },
>> "interfaces" : [
>>    {
>>        "ifname" : "ath0",
>>        "ifindex" : "5",
>>        "flags" : "4931",
>>        "hwaddr" : "xxxxxxxxxxxxxxxxx",
>>        "hwtype" : "1",
>>        "mtu" : "1500",
>>        "status": [{ "plugged": 1, "speed": 300, "duplex": 255 }],
>>        "stats" : {
>>            "rx_packets" : "243753437",
>>            "rx_bytes" : "2523169903",
>>            "rx_errors" : "0",
>>            "rx_dropped" : "0",
>>            "rx_overruns" : "0",
>>            "rx_frame" : "0",
>>            "rx_compressed" : "0",
>>            "rx_multicast" : "0",
>>            "tx_packets" : "318652203",
>>            "tx_bytes" : "706908623",
>>            "tx_errors" : "0",
>>            "tx_dropped" : "0",
>>            "tx_overruns" : "0",
>>            "tx_carrier" : "0",
>>            "tx_compressed" : "0",
>>            "collisions" : "0"
>>        },
>> "wireless": {
>>    "mode": "ap",
>>    "essid": "xxxxxxxxxxxxxx",
>>    "apmac": "xxxxxxxxxxxxxxxxxxx",
>>    "channel": 137,
>>    "frequency": "5685 MHz",
>>    "signal": -69,
>>    "rssi": 27,
>>    "noisef": -93,
>>    "rstatus": 5,
>>    "stats": {
>>        "rx_nwids": 10548,
>>        "rx_crypts": 0,
>>        "rx_frags": 0,
>>        "tx_retries": 0,
>>        "missed_beacons": 0,
>>        "err_other": 0    },
>>    "hide_essid": 0,
>>    "opmode": "",
>>    "antenna": "",
>>    "chains": "",
>>    "ack": 192,
>>    "distance": 22350,
>>    "ccq": 956,
>>    "txrate": "210.0",
>>    "rxrate": "215.0",
>>    "security": "",
>>    "qos": "",
>>    "count": 3,
>>    "polling": {
>>        "enabled": 1,
>>        "quality": 57,
>>        "capacity": 58,
>>        "noack": 0,
>>        "airsync_mode": 0,
>>        "airsync_connections": 0,
>>        "airsync_down_util" : 0,
>>        "airsync_up_util" : 0
>>    },
>>    "wds": 1,
>>    "chwidth": 20,
>>    "chanbw": 0,
>>    "cwmmode": 0,
>>    "rx_chainmask": 0,
>>    "tx_chainmask": 0,
>>    "chainrssi" : [ 0, 0, 0 ],
>>    "chainrssimgmt" : [ 0, 0, 0 ],
>>    "chainrssiext" : [ 0, 0, 0 ],
>>    "dummy_comma_align": 1
>> }
>> 
>>    },
>>    {
>>        "ifname" : "br0",
>>        "ifindex" : "6",
>>        "flags" : "4675",
>>        "hwaddr" : "xxxxxxxxxxxxxxxxxxxxxxxx",
>>        "hwtype" : "1",
>>        "mtu" : "1500",
>>        "status": [{ "plugged": 1, "speed": 0, "duplex": 255 }],
>>        "ipv4" : {
>>            "addr" : "xxxxxxxxxxxx",
>>            "netmask" : "255.255.255.0",
>>            "broadcast" : "xxxxxxxxxxxxxx"
>>        },
>>        "stats" : {
>>            "rx_packets" : "7522018",
>>            "rx_bytes" : "366715034",
>>            "rx_errors" : "0",
>>            "rx_dropped" : "0",
>>            "rx_overruns" : "0",
>>            "rx_frame" : "0",
>>            "rx_compressed" : "0",
>>            "rx_multicast" : "7392076",
>>            "tx_packets" : "138357",
>>            "tx_bytes" : "13788332",
>>            "tx_errors" : "0",
>>            "tx_dropped" : "0",
>>            "tx_overruns" : "0",
>>            "tx_carrier" : "0",
>>            "tx_compressed" : "0",
>>            "collisions" : "0"
>>        }
>>    },
>>    {
>>        "ifname" : "eth0",
>>        "ifindex" : "2",
>>        "flags" : "4931",
>>        "hwaddr" : "xxxxxxxxxxxxxxxxxx",
>>        "hwtype" : "1",
>>        "mtu" : "1500",
>>        "status": [{ "plugged": 1, "speed": 100, "duplex": 1 }],
>>        "stats" : {
>>            "rx_packets" : "318785959",
>>            "rx_bytes" : "724665528",
>>            "rx_errors" : "0",
>>            "rx_dropped" : "0",
>>            "rx_overruns" : "0",
>>            "rx_frame" : "0",
>>            "rx_compressed" : "0",
>>            "rx_multicast" : "2049641",
>>            "tx_packets" : "243891671",
>>            "tx_bytes" : "2536925941",
>>            "tx_errors" : "0",
>>            "tx_dropped" : "5",
>>            "tx_overruns" : "0",
>>            "tx_carrier" : "0",
>>            "tx_compressed" : "0",
>>            "collisions" : "0"
>>        }
>>    },
>>    {
>>        "ifname" : "eth1",
>>        "ifindex" : "3",
>>        "flags" : "4611",
>>        "hwaddr" : "xxxxxxxxxxxxxxxxxxxxx",
>>        "hwtype" : "1",
>>        "mtu" : "1500",
>>        "status": [{ "plugged": 0, "speed": 0, "duplex": 0 }],
>>        "stats" : {
>>            "rx_packets" : "0",
>>            "rx_bytes" : "0",
>>            "rx_errors" : "0",
>>            "rx_dropped" : "0",
>>            "rx_overruns" : "0",
>>            "rx_frame" : "0",
>>            "rx_compressed" : "0",
>>            "rx_multicast" : "0",
>>            "tx_packets" : "0",
>>            "tx_bytes" : "0",
>>            "tx_errors" : "0",
>>            "tx_dropped" : "0",
>>            "tx_overruns" : "0",
>>            "tx_carrier" : "0",
>>            "tx_compressed" : "0",
>>            "collisions" : "0"
>>        }
>>    }
>> ]
>> }}
>> 
>> 
>> Atenciosamente,
>> 
>> Alexandre Pires Avilla
>> Gerente de Tecnologia e Redes
>> Dominioz Serviços de Telecomunicações Ltda*
>> *
>> TargetNet - Banda Larga - www.targetnet.com.br
>> Vale Link - Acesso Dedicado - www.valelink.com.br
>> Dominioz - Hospedagem de sites - www.dominioz.com.br
>> 
>> Rua Dr Rubião Junior, 192 / 7º Andar - Centro
>> Pindamonhangaba/SP
>> Central de Atendimento:
>> Vale do Paraíba [12] 3645.4975
>> Mobile: [12] 9745.9679
>> Messenger: eu at aleavilla.com.br
>> --
>> gter list    https://eng.registro.br/mailman/listinfo/gter
>> 
>> http://www.incoterm.com.br
>> Av. Eduardo Prado, 1670 | Porto Alegre | RS
>> 
>>      Se você precisa medir a temperatura ou a velocidade do vento, nós
>> temos a solução.Pressão atmosférica ou pressão arterial, nós somos a
>> solução. Peso corporal ou umidade relativa, nós temos um universo em
>> medição. E agora é assim que seremos conhecidos: Incoterm - Soluções em
>> Medição.
>> 
>> --
>> gter list    https://eng.registro.br/mailman/listinfo/gter
> --
> gter list    https://eng.registro.br/mailman/listinfo/gter



More information about the gter mailing list