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@localhost:9999 /] :read-children-names(child-type=interface)
{
"outcome" => "success",
"result" => [
"management",
"public"
]
}
[domain@localhost:9999 /] :read-children-attributes(child-type=interface)
Failed to get the list of supported operation properties.
[domain@localhost:9999 /] :read-children-resources(child-type=interface)
{
"outcome" => "success",
"result" => {
"management" => {
"criteria" => undefined,
"name" => "management"
},
"public" => {
"criteria" => undefined,
"name" => "public"
}
}
}
[domain@localhost:9999 interfaces] /interface=management:read-resource
{
"outcome" => "success",
"result" => {
"criteria" => undefined,
"name" => "management"
}
}
[domain@localhost:9999 interfaces] /interface=management:read-children-resources
{
"outcome" => "failed",
"failure-description" => "child-type may not be null.",
"rolled-back" => true
}
[domain@localhost:9999 interfaces]
/interface=management:read-children-resources(recursive=true)
{
"outcome" => "failed",
"failure-description" => "child-type may not be null.",
"rolled-back" => true
}
[domain@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(a)redhat.com ☏: + 61 7 3514 8105 ☏: 88105