Show compact Redis server and memory state
Build a paste-ready command, then review its compatibility and effects before running it.
redis-cli -h <host> --no-auth-warning INFO server memory | rg '^(redis_version|uptime_in_seconds|used_memory_human|maxmemory_human):'Complete required fields to copy the generated command.
Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementsredis-cliredis-cli must be installed and available on PATH.Network accessThe target must be reachable from the current environment.
Version supportredis-cli Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsredis_version:8.0.3Representative successful output; values vary with the selected target and system state.
Known errorsredis-cli: command not foundredis-cli is missing or is not available on PATH.
Verifyredis-cli -h {{host}} --no-auth-warning INFO server memory | rg '^(redis_version|uptime_in_seconds|used_memory_human|maxmemory_human):'The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01redis-cliCommandRuns the redis-cli stage of this one-liner.
02-hOptionRequests human-readable units or command help, depending on the tool.
03<host>ParameterA value supplied in the Fill parameters section.
04--no-auth-warningOptionConfigures redis-cli with the --no-auth-warning option.
05INFOArgumentPasses INFO to redis-cli.
06serverArgumentPasses server to redis-cli.
07memoryArgumentPasses memory to redis-cli.
08|PipelinePasses the output on the left to the command on the right.
09rgCommandRuns the rg stage of this one-liner.
10'^(redis_version|uptime_in_seconds|used_memory_human|maxmemory_human):'ArgumentPasses '^(redis_version|uptime_in_seconds|used_memory_human|maxmemory_human):' to rg.
Example input
redis-cli -h example.com --no-auth-warning INFO server memory | rg '^(redis_version|uptime_in_seconds|used_memory_human|maxmemory_human):'
Example output
redis_version:8.0.3
uptime_in_seconds:842311
used_memory_human:128.42M
maxmemory_human:2.00G
Illustrative output — exact values vary by system and data.
Official sources