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