1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry id="cmdebug1">
4 <refentrytitle>cmdebug</refentrytitle>
5 <manvolnum>1</manvolnum>
8 <refname>cmdebug</refname>
9 <refpurpose>Reports the status of a host Cache Manager</refpurpose>
12 <title>Synopsis</title>
13 <para><emphasis role="bold">cmdebug</emphasis> <emphasis role="bold">-servers</emphasis> <<emphasis>machine</emphasis>> [<emphasis role="bold">-port</emphasis> <<emphasis>IP port</emphasis>>]
14 [<emphasis role="bold">-long</emphasis>] [<emphasis role="bold">-refcounts</emphasis>] [<emphasis role="bold">-callbacks</emphasis>] [<emphasis role="bold">-addrs</emphasis>] [<emphasis role="bold">-cache</emphasis>]</para>
16 <para><emphasis role="bold">cmdebug</emphasis> <emphasis role="bold">-s</emphasis> <<emphasis>machine</emphasis>> [<emphasis role="bold">-p</emphasis> <<emphasis>IP port</emphasis>>] [<emphasis role="bold">-l</emphasis>] [<emphasis role="bold">-r</emphasis>] [<emphasis role="bold">-c</emphasis>]
17 [<emphasis role="bold">-a</emphasis>] [<emphasis role="bold">-h</emphasis>]</para>
21 <title>Description</title>
22 <para>The <emphasis role="bold">cmdebug</emphasis> command displays information about the Cache Manager and
23 client cache status on an AFS client machine. By default, it displays all
24 locked cache entries, but other information can be requested via various
29 <title>Options</title>
32 <term><emphasis role="bold">-servers</emphasis> <<emphasis>machine</emphasis>></term>
34 <para>Names the client machine for which to display Cache Manager status.
35 Provide the machine's IP address in dotted decimal format, its fully
36 qualified host name (for example, <emphasis role="bold">fs1.abc.com</emphasis>), or the shortest
37 abbreviated form of its host name that distinguishes it from other
38 machines. Successful use of an abbreviated form depends on the
39 availability of a name resolution service (such as the Domain Name Service
40 or a local host table) at the time the command is issued.</para>
45 <term><emphasis role="bold">-port</emphasis> <<emphasis>IP port</emphasis>></term>
47 <para>Identifies the port on which to contact the Cache Manager. By default,
48 the standard port 7001 is used, so this option is very rarely needed.</para>
53 <term><emphasis role="bold">-long</emphasis></term>
55 <para>Reports on all lock statuses and all cache entries, rather than only
56 locked cache entries. Do not use this option with <emphasis role="bold">-refcounts</emphasis>,
57 <emphasis role="bold">-callbacks</emphasis>, <emphasis role="bold">-addrs</emphasis>, or <emphasis role="bold">-cache</emphasis>.</para>
62 <term><emphasis role="bold">-refcounts</emphasis></term>
64 <para>Reports only those cache entries with non-zero reference counts. Do not
65 use this option with <emphasis role="bold">-long</emphasis>, <emphasis role="bold">-callbacks</emphasis>, <emphasis role="bold">-addrs</emphasis>, or <emphasis role="bold">-cache</emphasis>.</para>
70 <term><emphasis role="bold">-callbacks</emphasis></term>
72 <para>Reports only those cache entries with callbacks. Do not use this option
73 with <emphasis role="bold">-long</emphasis>, <emphasis role="bold">-refcounts</emphasis>, <emphasis role="bold">-addrs</emphasis>, or <emphasis role="bold">-cache</emphasis>.</para>
78 <term><emphasis role="bold">-addrs</emphasis></term>
80 <para>Rather than showing any cache entries, displays the interfaces the Cache
81 Manager answers on, including their netmasks and MTUs. This is useful for
82 analyzing clients that are multihomed and identifying problems with
83 netmasks or MTU settings. Do not use this option with <emphasis role="bold">-long</emphasis>,
84 <emphasis role="bold">-refcounts</emphasis>, <emphasis role="bold">-callbacks</emphasis>, or <emphasis role="bold">-cache</emphasis>.</para>
89 <term><emphasis role="bold">-cache</emphasis></term>
91 <para>Rather than showing any cache entries, displays the cache configuration
92 for the client machine. The information displayed is essentially the
93 information that can be configured via parameters to <emphasis role="bold">afsd</emphasis>. Do not use
94 this option with <emphasis role="bold">-long</emphasis>, <emphasis role="bold">-refcounts</emphasis>, <emphasis role="bold">-callbacks</emphasis>, or <emphasis role="bold">-addrs</emphasis>.</para>
99 <term><emphasis role="bold">-help</emphasis></term>
101 <para>Prints the online help for this command. All other valid options are
109 <title>Examples</title>
110 <para>Displays all of the locked cache entries on <computeroutput>client1</computeroutput>:</para>
116 <para>Displays the cache configuration for <computeroutput>client1.abc.com</computeroutput>:</para>
119 % cmdebug client1.abc.com -cache
122 <para>Displays all cache entries for <computeroutput>client2.abc.com</computeroutput>:</para>
125 % cmdebug client2.abc.com -long
130 <title>Privilege Required</title>
135 <title>See Also</title>
136 <para><link linkend="afsd8">afsd(8)</link></para>
140 <title>Copyright</title>
141 <para>Copyright 2005 Russ Allbery <rra@stanford.edu></para>
143 <para>This documentation is covered by the IBM Public License Version 1.0. This
144 man page was written by Russ Allbery for OpenAFS.</para>