[jboss-as7-dev] How to get interface addresses using the Management CLI

Misty Stanley-Jones misty at redhat.com
Mon Oct 31 20:47:15 EDT 2011


I am trying to find a way to get the addresses of the interfaces using the Management CLI. I thought this would be easy! I have tried all of these ways:

[domain at localhost:9999 /] :read-children-names(child-type=interface)
{
    "outcome" => "success",
    "result" => [
        "management",
        "public"
    ]
}



[domain at localhost:9999 /] :read-children-attributes(child-type=interface)
Failed to get the list of supported operation properties.


[domain at localhost:9999 /] :read-children-resources(child-type=interface)
{
    "outcome" => "success",
    "result" => {
        "management" => {
            "criteria" => undefined,
            "name" => "management"
        },
        "public" => {
            "criteria" => undefined,
            "name" => "public"
        }
    }
}



[domain at localhost:9999 interfaces] /interface=management:read-resource
{
    "outcome" => "success",
    "result" => {
        "criteria" => undefined,
        "name" => "management"
    }
}



[domain at localhost:9999 interfaces] /interface=management:read-children-resources
{
    "outcome" => "failed",
    "failure-description" => "child-type may not be null.",
    "rolled-back" => true
}



[domain at localhost:9999 interfaces] /interface=management:read-children-resources(recursive=true)
{
    "outcome" => "failed",
    "failure-description" => "child-type may not be null.",
    "rolled-back" => true
}




[domain at localhost:9999 interfaces] /interface=management:read-children-resources(child-type=inet-address)
{
    "outcome" => "failed",
    "failure-description" => "No known child type named inet-address",
    "rolled-back" => true
}



-- 
Misty Stanley-Jones, RHCE 
Content Author, ECS Brisbane 
☺: misty (Freenode IRC) ✉: misty at redhat.com ☏: + 61 7 3514 8105 ☏: 88105 



More information about the jboss-as7-dev mailing list