2 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
5 <link type=
"text/css" rel=
"stylesheet" href=
"style.css" />
12 <img style=
"border:none" alt=
"Redis Documentation" src=
"redis.png">
16 <div id=
"pagecontent">
18 <!-- This is a (PRE) block. Make sure it's left aligned or your toc title will be off. -->
19 <b>MonitorCommand: Contents
</b><br> <a href=
"#MONITOR">MONITOR
</a><br> <a href=
"#Return value">Return value
</a><br> <a href=
"#See also">See also
</a>
22 <h1 class=
"wikiname">MonitorCommand
</h1>
29 <h1><a name=
"MONITOR">MONITOR
</a></h1><blockquote>MONITOR is a debugging command that outputs the whole sequence of commandsreceived by the Redis server. is very handy in order to understandwhat is happening into the database. This command is used directlyvia telnet.
</blockquote>
30 <pre class=
"codeblock python" name=
"code">
31 % telnet
127.0.0.1 6379
33 Connected to segnalo-local.com.
34 Escape character is '^]'.
53 </pre><blockquote>The ability to see all the requests processed by the server is useful in orderto spot bugs in the application both when using Redis as a database and asa distributed caching system.
</blockquote>
54 <blockquote>In order to end a monitoring session just issue a QUIT command by hand.
</blockquote>
55 <h2><a name=
"Return value">Return value
</a></h2><b>Non standard return value
</b>, just dumps the received commands in an infinite flow.
<h2><a name=
"See also">See also
</a></h2>
56 <ul><li> <a href=
"InfoCommand.html">INFO
</a></li></ul>