Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

[adm] introduce admin_socket.info#4382

Closed
gquintard wants to merge 1 commit intovarnishcache:masterfrom
gquintard:admin_socket.info
Closed

[adm] introduce admin_socket.info#4382
gquintard wants to merge 1 commit intovarnishcache:masterfrom
gquintard:admin_socket.info

Conversation

@gquintard
Copy link
Copy Markdown
Member

provide an easy way for external script/programs to extract admin socket data without C bindings.

JSON output example:

[ 2, ["admin_socket.info", "-j"], 1755637539.258,
  {
    "sockets": [
      {
        "address": "::1",
        "port": 46391
      },
      {
        "address": "127.0.0.1",
        "port": 38191
      }
    ],
    "secret": "/tmp/vtc.1013468.3b74cfce/v1/_.secret"
  }
]

Non-JSON:

sockets=::1 46129,127.0.0.1 44135
secret=/tmp/vtc.1014381.62ab002d/v1/_.secret

provide an easy way for external script/programs to extract admin socket
data without C bindings.
Copy link
Copy Markdown
Member

@dridi dridi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On principle I don't like the idea, but I understand the motivation.

Maybe what we need is a standalone utility to query the VSM, a small program on top of libvarnishapi to list configuration segments.

Comment thread bin/varnishd/mgt/mgt_cli.c
@dridi
Copy link
Copy Markdown
Member

dridi commented Aug 20, 2025

Never mind my comment, I was certain this was a change you wanted to make in varnish enterprise.

@gquintard
Copy link
Copy Markdown
Member Author

bump

@bsdphk
Copy link
Copy Markdown
Contributor

bsdphk commented Feb 9, 2026

Like #4444 I think this would be a job for varnishadm

@gquintard
Copy link
Copy Markdown
Member Author

I'll close this as really, I just need to know the workdir and I can discover all this by reading a few files

@gquintard gquintard closed this Feb 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants