/tool fetch to a Canopy AP?

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

I think the user/pass only works for ftp. Honestly, I have had problems getting the user/pass to work on ftp as well. I get an unrecognized response on the CLI in MT. When using any other CLI it works as expected. Since http works, I am sticking with that. Might I suggest using the directive to keep the rif raf out? Close to the same result with no user/pass requirements.

Best thing to do is the capture the traffic and view it to see what is going wrong.