You are here

Software version from command line?

3 posts / 0 new
Last post
w6bi
w6bi's picture
Software version from command line?

Is there a way to do it?  A place where it's stored?  As our network grows, it would be convenient to script something to go out to all the nodes and gather all the versions.

 

Thanks.

AE6XE
AE6XE's picture
cat /etc/mesh-release

cat /etc/mesh-release

cat /etc/openwrt_release

cat /etc/openwrt_version

 

K5DLQ
K5DLQ's picture
Yes. Today, you can:    cat

Yes. Today, you can:    cat /etc/mesh-release

In AREDN 3.15.1.0 (RC1 and beyond), you will be able to get it programmatically from browsing to:   http://localnode.local.mesh:8080/cgi-bin/sysinfo.json

In AREDN.next (upcoming release), it will be available via SNMP.

Darryl

 

P.S.  Here is a sample output from sysinfo.json:

{"firmware_version":"release-3.15.1.0-38-7652624d","tunnel_installed":"true",
"model":"Ubiquiti Nanostation M","grid_square":"","lon":"",
"api_version":"1.0","board_id":"0xe012","firmware_mfg":"AREDN",
"node":"K5DLQ-UNSM2-101","ssid":"AREDN-5-v3","lat":"","active_tunnel_count":"2",
"interfaces":{
"eth0":{"ip":"10.149.168.169","mac":"00:15:6D:73:B5:15"},
"eth0.1":{"ip":"192.168.0.152","mac":"00:15:6D:73:B5:15"},
"eth0.2":{"ip":"10.115.181.21","mac":"00:15:6D:73:B5:15"},
"eth1":{"ip":"none","mac":"02:15:6D:73:B5:15"},
"tun50":{"ip":"172.31.182.78","mac":"00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00"},
"tun51":{"ip":"172.31.182.82","mac":"00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00"},
"wlan0":{"ip":"10.114.181.21","mac":"00:15:6D:72:B5:15"},
"wlan0-1":{"ip":"none","mac":"00-15-6D-72-B5-15-00-44-00-00-00-00-00-00-00-00"}}}

 

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer