Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

gquintard
Copy link
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
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.

bin/varnishd/mgt/mgt_cli.c Show resolved Hide resolved
@dridi
Copy link
Member

dridi commented Aug 20, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.