7 Replies Latest reply on May 10, 2013 4:53 AM by Wolf-Dieter Fink

    Creating mail subsystem using cli

    Mustaq Pradhan Newbie

      As there is no easy way to copy/clone a whole profile, I am putting together a series of cli and got stuck at mail subsystem.

       

      [domain@localhost:9999 /] /profile=test-profile-1/subsystem=mail:add

      {

          "outcome" => "failed",

          "failure-description" => {"domain-failure-description" => "JBAS014677: Failed to persist configuration change: JBAS014675: Failed to marshal configuration"},

          "rolled-back" => true

      }

       

       

      Then after removing other subsystems from the profile, I went to remove the profile:

       

      [domain@localhost:9999 /] /profile=test-profile-1:remove

      {

          "outcome" => "failed",

          "failure-description" => {"host-failure-descriptions" => [

              ("j0004" => "JBAS014804: Cannot remove resource before removing child resources [\"subsystem\" => \"mail\"]"),

              ("j0002" => "JBAS014804: Cannot remove resource before removing child resources [\"subsystem\" => \"mail\"]"),

              ("j0003" => "JBAS014804: Cannot remove resource before removing child resources [\"subsystem\" => \"mail\"]")

          ]},

          "rolled-back" => true

      }

       

      j0002, j0003 & j0004 are the hosts for this domain.

       

      How I remove this profile? I might be running wrong command to add mail subsystem. Please help.