Attempt to restart a client host using remote execution feature results in error shutdown: command not found in Red Hat Satellite 6

Solution Verified - Updated -

Issue

  • When using the job template Power Action - SSH Default and selecting the action restart , the job fails on few of the hosts with following error.

      1:
    restart host
      2:
    /var/tmp/foreman-ssh-cmd-8c55881e-5bac-414f-8189-d10e655b4c71/script: line 2: shutdown: command not found
      3:
    Exit status: 127
    

Environment

  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content