On Wed, Feb 28, 2024 at 8:05 PM Andrea Venturoli <m...@netfence.it> wrote:
> On 2/28/24 12:51, Francesco Chemolli wrote: > > > Hi Andrea, > > there's https://wiki.squid-cache.org/Features/CacheManager/Index > > <https://wiki.squid-cache.org/Features/CacheManager/Index> , > > although it could probably be more explicit > > Hello and thanks. > > I had seen that document before posting, but, possibly due to my > ignorance, I cannot understand how to use it. > For example I see some endpoints listed under the SMP chapter (e.g. > curl http://localhost:8080/squid-internal-mgr/info), but I guess that's > not a complete list. > Does such a list exist? Where? > > I'm in need to purge some objects from the cache and I always used > something like: > > squidclient mgr:objects | grep -i somesite | grep GET | sed "s/.*GET > //"rgs -n 1 squidclient -m PURGE > Hi Andrea, just replace squidclient mgr:objects with curl --silent --user squid_cachemgr_user:squd_cachemgr_password http://squid.host.name:3128/squid-internal-mgr/objects (and of course replace port 3128 with whatever port you're using for Squid) Everything else is the same as previously. Also, the same applies to all other cachemgr reports: curl --silent --user squid_cachemgr_user:squd_cachemgr_password http://squid.host.name:3128/squid-internal-mgr/menu will give you the list of available subpages; replace menu with the subpage name to access any > > What could be an equivalent using curl/wget? > > bye & Thanks > av. > > > _______________________________________________ > squid-users mailing list > squid-users@lists.squid-cache.org > https://lists.squid-cache.org/listinfo/squid-users > -- Francesco
_______________________________________________ squid-users mailing list squid-users@lists.squid-cache.org https://lists.squid-cache.org/listinfo/squid-users