I found a way with the help of a colleague: First, find out the hostname, port and password by querying the environment of the application which is successfully connected to Redis with cf env [APP-NAME]
. The relevant chunk looks like this:
"VCAP_SERVICES": {
"p.redis": [
{
"binding_name": null,
"credentials": {
"host": "q-s0.redis-instance.default.service-instance-deadbeef-8008.bosh",
"password": "THXQCcElifUCCbJD2RlU7tgjZegmkn",
"port": 6379
},
(...)
Now, SSH into the apps container with cf ssh [APP-NAME]
and use Netcat to connect to Redis:
vcap@...:~$ nc q-s0.redis-instance.default.service-instance-deadbeef-8008.bosh 6379
Then use AUTH
and the password to "login"...
AUTH THXQCcElifUCCbJD2RlU7tgjZegmkn
+OK
...and issue the INFO
command - the Redis version is displayed right at the top:
INFO
$3365
# Server
redis_version:5.0.2
(...)
Anyway, this is likely very much work for a tiny bit of information - are there other ways?