Skip to content

Instantly share code, notes, and snippets.

@kabir
Created May 15, 2012 21:19
Show Gist options
  • Select an option

  • Save kabir/2705229 to your computer and use it in GitHub Desktop.

Select an option

Save kabir/2705229 to your computer and use it in GitHub Desktop.
[[email protected]:9999 /] :read-children-names(child-type=host)
{
"outcome" => "success",
"result" => [
"SlaveA",
"master"
]
}
[[email protected]:9999 /] /host=master:read-
read-attribute read-children-names read-children-resources read-children-types
read-config-as-xml read-operation-description read-operation-names read-resource
read-resource-description
[[email protected]:9999 /] /host=master:read-resource
read-resource read-resource-description
[[email protected]:9999 /] /host=master:read-resource
{
"outcome" => "success",
"result" => {
"directory-grouping" => "by-server",
"domain-controller" => {"local" => {}},
"extension" => undefined,
"management-major-version" => 1,
"management-minor-version" => 2,
"name" => "master",
"namespaces" => [],
"path" => undefined,
"product-name" => undefined,
"product-version" => undefined,
"release-codename" => "Steropes",
"release-version" => "7.2.0.Alpha1-SNAPSHOT",
"schema-locations" => [],
"system-property" => undefined,
"core-service" => {
"management" => undefined,
"host-environment" => undefined,
"platform-mbean" => undefined,
"ignored-resources" => undefined
},
"interface" => {
"management" => undefined,
"public" => undefined,
"unsecure" => undefined
},
"jvm" => {"default" => undefined},
"server" => {"server-one" => undefined},
"server-config" => {
"server-one" => undefined,
"server-two" => undefined,
"server-three" => undefined
}
}
}
[[email protected]:9999 /] /host=SlaveA:read-resource
{
"outcome" => "failed",
"result" => undefined,
"failure-description" => "JBAS010850: No handler for operation read-resource at address [(\"host\" => \"SlaveA\")]",
"rolled-back" => true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment