I am writing a tool that opens an ssh session with a MT box, then runs /tool fetch to pull back the apstatus.html page from a Canopy v7 AP. I then parse the html stream for the fields I want. For the time being, I am doing all this manually to make sure it works. I am using putty to open the ssh session and log in the MT box (ROS 3.3). I then run the /tool fetch but get a 401 error even tho the user and pass I use in the fetch command is exacly the same as the ones I use when I point IE at the Canopy AP as succeed in getting apstatus.html.
Does anyone have a theory why fetch doesn’t work to pull a page from the same device and page that IE succeeds at? Is there some sort of browser ID string I need to pass with the fetch? a hhtp version number?
Dave
tool fetch add=12.34.56.78 path=“apstatus.html” user=“root” password=“simple” mode=http
status: connecting
status: failed
failure: 401 Unauthorized