2014-04-06 The fact I can't get status information ... 7 years ago
The fact I can't get status information from the fritz.box such as linespeed in a way I can use in scripts annoy me, especially since the linespeed changed tonight (to 22381 down 1402 up). I'd like to at least have access to those statistics for my pretty graphs again. I did find Universal Plug and Play How to get Status-Information from the FRITZ!Box which uses the Perl Net::UPnP::ControlPoint module. The downside is this module wants to discover upnp devices by itself via multicast. So I need to setup a specific route for 188.8.131.52/4 from the server. It does discover the Fritz!Box, but thinks it has no further information:$ ./get_upnp_info.mcast . Device = FRITZ!Box Fon WLAN 7360No possible actions. Digging a bit into the code reveals the problem is probably in the XML parsing bit. Changing the xml parser to search in namespace urn:dslforum-org:service-1-0 gives a tiny bit more:$ ./get_upnp_info.mcast . Device = FRITZ!Box Fon WLAN 7360 URL = http://192.168.178.1:49000/l2tpv3SCPD.xml urn:any-com:serviceId:l2tpv31::GetInfo:ServerInstanceId = 0000001F8BF6F4502F99CFB2F71DC374ECD623A957E08803247CDC9AD3856FF4DDA943C535C22E937DE07643AB2A6BBFEC45DED2FBF0E95AC5C2B3B28699F07 urn:any-com:serviceId:l2tpv31::GetInfo:ServerIP = 192.168.178.1 urn:any-com:serviceId:l2tpv31::GetInfo:RemoteEndIds = fritz.box:guestBut no DSL upstream and downstream yet.