<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic dfm run cmd hanging all dfm commands in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55971#M11605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to use “dfm run cmd filer01 aggr show_space &amp;gt; file.out” at a customer DFM server (ancient 4.0 by the way) and it hung the cmd prompt. Now if I run any “dfm” command, even “dfm help” it outputs that previous command that was issued and then hangs that new cmd prompt.&amp;nbsp; From host diag web view I see that RSH and SSH are both disabled on the original host, so I tried enabling RSH, and now host diag shows success via RSH, but that stuck job remains stuck.&amp;nbsp;&amp;nbsp; I already rebooted the DFM server but the behavior hasn’t changed; it seems to remember it wanted to run that job.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now that my job has hung things other commands (like rsh checking to vfiler quotas, dfmrotatelogs, etc) look to be hanging too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the dfm logs but didn’t find any messages that were helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone seen this before and know how to cancel a CLI hung job?&amp;nbsp; I checked in the web GUI under that host hoping to be able to cancel it but it's not shown in the running list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:50:55 GMT</pubDate>
    <dc:creator>madden</dc:creator>
    <dc:date>2025-06-05T05:50:55Z</dc:date>
    <item>
      <title>dfm run cmd hanging all dfm commands</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55971#M11605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to use “dfm run cmd filer01 aggr show_space &amp;gt; file.out” at a customer DFM server (ancient 4.0 by the way) and it hung the cmd prompt. Now if I run any “dfm” command, even “dfm help” it outputs that previous command that was issued and then hangs that new cmd prompt.&amp;nbsp; From host diag web view I see that RSH and SSH are both disabled on the original host, so I tried enabling RSH, and now host diag shows success via RSH, but that stuck job remains stuck.&amp;nbsp;&amp;nbsp; I already rebooted the DFM server but the behavior hasn’t changed; it seems to remember it wanted to run that job.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now that my job has hung things other commands (like rsh checking to vfiler quotas, dfmrotatelogs, etc) look to be hanging too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the dfm logs but didn’t find any messages that were helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone seen this before and know how to cancel a CLI hung job?&amp;nbsp; I checked in the web GUI under that host hoping to be able to cancel it but it's not shown in the running list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:50:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55971#M11605</guid>
      <dc:creator>madden</dc:creator>
      <dc:date>2025-06-05T05:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: dfm run cmd hanging all dfm commands</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55976#M11607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command "dfm run" MAN page entry (copied below) will show you the available sub-commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried the status and/or delete commands yet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DL&gt;&lt;DT&gt;&lt;STRONG&gt;&lt;A name="item_dfm_run" target="_blank"&gt;dfm run&lt;/A&gt;&lt;/STRONG&gt;&lt;/DT&gt;&lt;DD&gt;This command manages the execution of remote commands.&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;CODE style="font-family: monospace;"&gt;dfm run attempt [ -t timeout ] [ -f ] [ job-id ... ]&lt;/CODE&gt;&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;Trigger an attempt to run the listed jobs.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;The optional &lt;EM&gt;timeout&lt;/EM&gt; argument sets a maximum time limit (in seconds) for the command to complete on the host. This timeout overrides the timeout set by &lt;STRONG&gt;dfm run submit&lt;/STRONG&gt;. The optional &lt;STRONG&gt;-f&lt;/STRONG&gt; flag asks the DataFabric Manager server to force execution of the job even if the reschedule time has not been reached. The optional &lt;EM&gt;job-id&lt;/EM&gt; arguments will limit the job attempts to only the listed jobs. If no &lt;EM&gt;job-id&lt;/EM&gt; is given, all jobs will be attempted. If the &lt;STRONG&gt;-t&lt;/STRONG&gt; &lt;EM&gt;timeout&lt;/EM&gt; is triggered on a particular host, that part of the job will be marked as ``failed'' (i.e.: it will not be rescheduled).&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;CODE style="font-family: monospace;"&gt;dfm run cmd [ -t timeout ] [ -R retry-count ] [ -r ] { host | group | - } command ...&lt;/CODE&gt;&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;This is the simplest way to run a command on one or more hosts.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;The optional &lt;EM&gt;timeout&lt;/EM&gt; argument sets a maximum time limit (in seconds) for the command to complete on the client. The default is 0 (wait forever). The &lt;STRONG&gt;-R retry-count&lt;/STRONG&gt; parameter can be used to optionally specify the number of times job should be retried in case of errors. The optional &lt;STRONG&gt;-r&lt;/STRONG&gt; flag runs the command via the host's &lt;EM&gt;hostRLMAddress&lt;/EM&gt; using the ssh protocol instead of using the &lt;EM&gt;hostPrimaryAddress&lt;/EM&gt; and the default protocol. When &lt;STRONG&gt;-&lt;/STRONG&gt; is used instead of a &lt;EM&gt;host&lt;/EM&gt; or a &lt;EM&gt;group&lt;/EM&gt; causes the command to read standard input for a list of hosts to execute the command on. The &lt;EM&gt;command&lt;/EM&gt; is the command string to execute on the host. If &lt;EM&gt;command&lt;/EM&gt; matches an alias name, then the command string is substituted by the sequence of commands defined in the alias definition.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;CODE style="font-family: monospace;"&gt;dfm run delete [ -k ] job-id ...&lt;/CODE&gt;&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;Delete a pending or running job.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;If you try to delete a currently running job, a warning message will be printed and the job will not be deleted. The &lt;STRONG&gt;-k&lt;/STRONG&gt; option will force the job to be killed and deleted in these situations.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;CODE style="font-family: monospace;"&gt;dfm run status [ job-id ... ]&lt;/CODE&gt;&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;Show the status of the requested jobs. If no &lt;EM&gt;job-id&lt;/EM&gt; arguments are given, then status will be listed for all jobs.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;CODE style="font-family: monospace;"&gt;dfm run submit [ options ] [ -a ] [ -r ] { host | group | - } command ...&lt;/CODE&gt;&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;The &lt;EM&gt;options&lt;/EM&gt; are&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;STRONG&gt;-j&lt;/STRONG&gt; &lt;EM&gt;job-id&lt;/EM&gt;: normally the command chooses a &lt;EM&gt;job-id&lt;/EM&gt; automatically; this option allows you to specify a particular job ID.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;STRONG&gt;-t&lt;/STRONG&gt; &lt;EM&gt;timeout&lt;/EM&gt;: set a maximum limit in seconds for the command to complete on the remote host. The default is 300 seconds.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;STRONG&gt;-a&lt;/STRONG&gt;: attempt to run the job immediately.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;STRONG&gt;-r&lt;/STRONG&gt;: attempt to run the job on the host's &lt;EM&gt;hostRLMAddress&lt;/EM&gt; using the ssh protocol.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;CODE style="font-family: monospace;"&gt;dfm run wait [ -t timeout ] job-id&lt;/CODE&gt;&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;Wait until the job identified by &lt;EM&gt;job-id&lt;/EM&gt; is complete. Wait forever or for &lt;EM&gt;timeout&lt;/EM&gt; seconds.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;CODE style="font-family: monospace;"&gt;dfm run alias import [ -d ] { path | - }&lt;/CODE&gt;&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;Import alias definitions from the specified path or standard input. All alias definitions are imported in the single transaction. If there is an error in importing, no new definition will be imported and old definitions will be preserved. If &lt;EM&gt;path&lt;/EM&gt; is specified, alias definitions will be read from the file named &lt;EM&gt;path&lt;/EM&gt;. If &lt;STRONG&gt;-&lt;/STRONG&gt; is specified then alias defintions are read from the standard input.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;See &lt;A href="http://mannoroth:8080/help/dfm.1.html#format_for_importing_alias_definitions" target="_blank"&gt;FORMAT FOR IMPORTING ALIAS DEFINITIONS&lt;/A&gt; for more information about the format of the alias definition file.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;STRONG&gt;-d&lt;/STRONG&gt;: delete all old alias definitions before importing the new ones.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;CODE style="font-family: monospace;"&gt;dfm run alias export { path | - }&lt;/CODE&gt;&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;Export alias definitions to the specified path or standard output. If &lt;EM&gt;path&lt;/EM&gt; is specified, alias definitions will be written into the file named &lt;EM&gt;path&lt;/EM&gt;. If &lt;STRONG&gt;-&lt;/STRONG&gt; is specified then alias defintions are written to the standard output.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;CODE style="font-family: monospace;"&gt;dfm run alias list [ object ]&lt;/CODE&gt;&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;List all aliases available to the client. The &lt;EM&gt;object&lt;/EM&gt; can be a group or a host. If &lt;EM&gt;object&lt;/EM&gt; is specified, then list all aliases executable on the given &lt;EM&gt;object&lt;/EM&gt;. If &lt;EM&gt;object&lt;/EM&gt; is not specified, list all aliases that client can execute on any host.&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;&lt;CODE style="font-family: monospace;"&gt;dfm run alias reset&lt;/CODE&gt;&lt;/P&gt;&lt;/DD&gt;&lt;DD&gt;&lt;P&gt;Delete all alias definitions.&lt;/P&gt;&lt;/DD&gt;&lt;/DL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 12:20:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55976#M11607</guid>
      <dc:creator>kryan</dc:creator>
      <dc:date>2013-10-28T12:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: dfm run cmd hanging all dfm commands</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55980#M11608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/SPAN&gt;Also be aware that for future commands that the command "dfm run cmd" has an option "-R" to specify retires for that job before giving up and it is not specified on the CLI help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 12:22:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55980#M11608</guid>
      <dc:creator>kryan</dc:creator>
      <dc:date>2013-10-28T12:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: dfm run cmd hanging all dfm commands</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55984#M11609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks, but any dfm command, even just "dfm help", prints out the command I originally ran (&lt;/SPAN&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;“dfm run cmd filer01 aggr show_space 1&amp;gt; file.out”&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;) and then proceeds to hang itself.&amp;nbsp; So there is no chance to use the CLI to kill the job, and the GUI doesn't appear to display the job either.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe / hopefully when I return to the customer tomorrow it will have timed out, but if not, is there any way to remove this entry from the DB so that on restart of the server it won't try to launch it again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 15:18:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55984#M11609</guid>
      <dc:creator>madden</dc:creator>
      <dc:date>2013-10-28T15:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: dfm run cmd hanging all dfm commands</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55989#M11610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a jobs table in the database, but it appears to only list the jobs submitted through the UI (at least on my server).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend opening a support case and attaching a DFMDC output to start (hopefully this will complete) so that we can resolve the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 20:47:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55989#M11610</guid>
      <dc:creator>kryan</dc:creator>
      <dc:date>2013-10-28T20:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: dfm run cmd hanging all dfm commands</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55993#M11611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if you can kill the dfm.exe and restart the server, which can solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;adai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 05:56:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55993#M11611</guid>
      <dc:creator>adaikkap</dc:creator>
      <dc:date>2013-10-29T05:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: dfm run cmd hanging all dfm commands</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55998#M11612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wow.&amp;nbsp; Mystery solved and boy do I feel dumb.&amp;nbsp; I had created a file "dfm.bat" in that directory with a bunch of dfm command lines in it (including the first one that hangs because RSH/SSH hasn't been configured for some hosts).&amp;nbsp; Each time I run "dfm version" or the like it is actually running dfm.bat and passing the parameters as arguments.&amp;nbsp; Duh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the responses and sorry for wasting your time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 08:12:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/dfm-run-cmd-hanging-all-dfm-commands/m-p/55998#M11612</guid>
      <dc:creator>madden</dc:creator>
      <dc:date>2013-10-29T08:12:03Z</dc:date>
    </item>
  </channel>
</rss>

