This content has been marked as final.
Show 1 reply
-
1. Re: Is it possible to read a child attribute via CLI ?
ssilvert Jan 28, 2013 7:15 AM (in response to markboletti)1 of 1 people found this helpfulI think the closest you can get with a CLI command is
/core-service=platform-mbean/type=memory/:read-attribute(name=heap-memory-usage)
{
"outcome" => "success",
"result" => {
"init" => 67108864L,
"used" => 119206544L,
"committed" => 272367616L,
"max" => 477233152L
}
}
The problem is that "heap-memory-usage" and "non-heap-memory-usage" are attributes of type ModelNode.Object. If you want to write a script that pull out only "used" or "max" I think you wil need to use Advanced CLI scripting with Groovy, Rhino, Jython, etc.
Stan