Jump to content
Калькуляторы

Статус LAN в NanaStation NanoStation

Доброго времени суток!! Суть вопроса такова, можно ли как то по SSH посмотреть статус подключения кабеля к NanoStation (10 или 100, half или full) ?

Share this post


Link to post
Share on other sites

На M-серии можно так:

XM.v5.5.6# ethtool eth0
Settings for eth0:
       Supported ports: [ TP MII ]
       Supported link modes:   10baseT/Half 10baseT/Full
                               100baseT/Half 100baseT/Full
       Supports auto-negotiation: Yes
       Advertised link modes:  10baseT/Half 10baseT/Full
                               100baseT/Half 100baseT/Full
       Advertised auto-negotiation: Yes
       Speed: 100Mb/s
       Duplex: Full
       Port: MII
       PHYAD: 4
       Transceiver: internal
       Auto-negotiation: on
       Current message level: 0x00000000 (0)
       Link detected: yes

Share this post


Link to post
Share on other sites

B_TpaHce Спасибо, а какие еще есть у Вас команды??

есть к примеру проверка AIRmax, Stations, DHCP Leases (когда настроина роутером)?!

Edited by MaxZX2

Share this post


Link to post
Share on other sites

посмотрите на официальном форуме, например тут:

https://community.ubnt.com/t5/airOS-Software-Configuration/Is-there-a-Manual-on-the-Radios-command-line/m-p/402841#M31008

основная часть команд из linux(openwrt)

Share this post


Link to post
Share on other sites

B_TpaHce

Спасибо за инфу

Вот кстати нашел (может кому то и пригодиться)

DHCP Leases - cat /tmp/dhcpd.leases

Stations - wlanconfig ath0 list station

CCQ - mca-status | grep ccq (единица измерения 1000 %)

Discovery - discover

 

все ни как не найду Align Antenna, Airmax Quality, Airmax Capacity

Share this post


Link to post
Share on other sites

B_TpaHce Как раз ее пробовал, но она что то не работает на Station, в АР показывает Airmax Quality и Airmax Capacity но они отличаются от графического интерфейса на 20( к примеру на графике 50%,а через SSH по 70%)

Share this post


Link to post
Share on other sites

B_TpaHce Как раз ее пробовал, но она что то не работает на Station, в АР показывает Airmax Quality и Airmax Capacity но они отличаются от графического интерфейса на 20( к примеру на графике 50%,а через SSH по 70%)

Может усредняет по всем клиентам в вебе, а по ссш показывает по отдельности на каждого?

Share this post


Link to post
Share on other sites

Может усредняет по всем клиентам в вебе, а по ссш показывает по отдельности на каждого?

Кстати возможно, сегодня тестировал эту функцию на Rocket M2(активных подключений 5), подключался к нему через микротик 750 по SSH ввожу:

1) wstalist показывает всю информация подключений 5 антенн

2) wstalist -i ath0 тот же самый результат

3) wstalist -i ath0 00:27:22:EC:70:8A -||-

4) wstalist -a ath0 00:27:22:EC:70:8A -||- хотелось бы вывести информацию только AP, что то не выходит...

 

wstalist -a ath0 00:27:22:EC:70:8A

[

{

"mac": "24:A4:3C: : :9C",

"name" : "ubnt",

"lastip" : "0.0.0.0",

"associd" : 1,

"aprepeater" : 0,

"tx" : 19.5,

"rx" : 52,

"signal" : -77,

"ccq" : 94,

"idle" : 0,

"uptime" : 85015,

"ack" : 38,

"distance" : 2400,

"txpower" : 16,

"noisefloor" : -87,

"airmax" : {

"priority" : 3,

"quality" : 21,

"beam" : 255,

"signal" : -89,

"capacity" : 28 },

"stats" : {

"rx_data" : 857478,

"rx_bytes" : 75583511,

"rx_pps" : 19,

"tx_data" : 1550860,

"tx_bytes" : 2199875073,

"tx_pps" : 46 },

"rates" : [ "MCS0", "MCS1", "MCS2", "MCS3", "MCS4", "MCS5", "MCS6

", "MCS7", "MCS8", "MCS9", "MCS10", "MCS11", "MCS12", "MCS13", "MCS14", "MCS15" ]

,

"signals" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -79, -80, 0, 0, 0

]

},

{

"mac": "DC:9F:DB: : :41",

"name" : "ubnt1",

"lastip" : "192.168.5.100",

"associd" : 2,

"aprepeater" : 0,

"tx" : 78,

"rx" : 117,

"signal" : -62,

"ccq" : 100,

"idle" : 4,

"uptime" : 85014,

"ack" : 23,

"distance" : 150,

"txpower" : 16,

"noisefloor" : -87,

"airmax" : {

"priority" : 3,

"quality" : 76,

"beam" : 255,

"signal" : -70,

"capacity" : 75 },

"stats" : {

"rx_data" : 19,

"rx_bytes" : 1019,

"rx_pps" : 0,

"tx_data" : 13,

"tx_bytes" : 801,

"tx_pps" : 0 },

"rates" : [ "MCS0", "MCS1", "MCS2", "MCS3", "MCS4", "MCS5", "MCS6

", "MCS7", "MCS8", "MCS9", "MCS10", "MCS11", "MCS12", "MCS13", "MCS14", "MCS15" ]

,

"signals" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]

},

{

"mac": "DC:9F:DB: : :07",

"name" : "ubnt2",

"lastip" : "0.0.0.0",

"associd" : 3,

"aprepeater" : 0,

"tx" : 19.5,

"rx" : 78,

"signal" : -74,

"ccq" : 98,

"idle" : 0,

"uptime" : 85014,

"ack" : 38,

"distance" : 2400,

"txpower" : 16,

"noisefloor" : -87,

"airmax" : {

"priority" : 3,

"quality" : 31,

"beam" : 255,

"signal" : -88,

"capacity" : 32 },

"stats" : {

"rx_data" : 202667,

"rx_bytes" : 20268546,

"rx_pps" : 1,

"tx_data" : 171986,

"tx_bytes" : 151892600,

"tx_pps" : 1 },

"rates" : [ "MCS0", "MCS1", "MCS2", "MCS3", "MCS4", "MCS5", "MCS6

", "MCS7", "MCS8", "MCS9", "MCS10", "MCS11", "MCS12", "MCS13", "MCS14", "MCS15" ]

,

"signals" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -76, 0, 0, 0 ]

},

{

"mac": "24:A4:3C: : :31",

"name" : "ubnt3",

"lastip" : "0.0.0.0",

"associd" : 4,

"aprepeater" : 0,

"tx" : 52,

"rx" : 117,

"signal" : -69,

"ccq" : 95,

"idle" : 0,

"uptime" : 85014,

"ack" : 34,

"distance" : 1800,

"txpower" : 16,

"noisefloor" : -87,

"airmax" : {

"priority" : 3,

"quality" : 53,

"beam" : 255,

"signal" : -80,

"capacity" : 69 },

"stats" : {

"rx_data" : 145323,

"rx_bytes" : 16212140,

"rx_pps" : 1,

"tx_data" : 230465,

"tx_bytes" : 274085808,

"tx_pps" : 1 },

"rates" : [ "MCS0", "MCS1", "MCS2", "MCS3", "MCS4", "MCS5", "MCS6

", "MCS7", "MCS8", "MCS9", "MCS10", "MCS11", "MCS12", "MCS13", "MCS14", "MCS15" ]

,

"signals" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -70, -69

]

},

{

"mac": "DC:9F:DB: : :C6",

"name" : "ubnt4",

"lastip" : "0.0.0.0",

"associd" : 5,

"aprepeater" : 0,

"tx" : 26,

"rx" : 78,

"signal" : -70,

"ccq" : 93,

"idle" : 0,

"uptime" : 9693,

"ack" : 40,

"distance" : 2700,

"txpower" : 16,

"noisefloor" : -87,

"airmax" : {

"priority" : 3,

"quality" : 30,

"beam" : 255,

"signal" : -87,

"capacity" : 35 },

"stats" : {

"rx_data" : 95776,

"rx_bytes" : 13837272,

"rx_pps" : 3,

"tx_data" : 135405,

"tx_bytes" : 158715826,

"tx_pps" : 2 },

"rates" : [ "MCS0", "MCS1", "MCS2", "MCS3", "MCS4", "MCS5", "MCS6

", "MCS7", "MCS8", "MCS9", "MCS10", "MCS11", "MCS12", "MCS13", "MCS14", "MCS15" ]

,

"signals" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -74, 0, 0, 0 ]

}

]

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.