How to list the sync status of smart proxy via hammer

Problem: How to list the sync status of smart proxy via hammer

Expected outcome: Able to list sync status of smart proxy via hammer

Foreman and Proxy versions: foreman 3.13 with katello 4.15

Foreman and Proxy plugin versions:

Distribution and version: Rocky 9

Other relevant data:

How to list the sync status of smart proxy via hammer

Hi there!

I currently don’t have a system with a smart proxy attached, but I think it’s:
hammer proxy content synchronization-status --id <proxy-id>

 hammer proxy content synchronization-status --id 2
Last sync:                    2025/03/27 13:28:34
Status:                       Capsule is synchronized
Currently running sync tasks:
 1) Task id:  eb406c5d-e564-420c-8587-9337f702db96
    Progress: 64%
 2) Task id:  67bbbe8e-93a4-4df5-8a60-7e53e0b3cb93
    Progress: 71%
Last failure:
    Task id:
    Messages:

Could see synchronization is completed and there is no tasks running currently on running tasks page. But I am able to see the below in smart proxy tab

Content Sync

Smart proxy is synchronized

68%

Last sync: 2025-03-27 18:58:34 +0530

After the synchronization, still the sync status bar is showing as 68% eventhough the sync is completed without any issues.

On the smartproxy, are you seeing in errors from Pulp in /var/log/messages?

Didnot find any error in /var/log/messages from pulp… Please let us know any other logs required for this investigation.

Can you run the hammer command but put -d before it so hammer -d command so we can see what the api is returning incase something is not being displayed correctly?