jmx - Accessing TaublarData from javascript -
i trying invoke jmx javascript code using node-jmx module https://www.npmjs.com/package/jmx.
the code able return composite data , can accessed using getsync('nameofitem') function, confused on how access in case of tabular data. since tabular data array of compositedata have treat array.
would helpful know how can done.
regards ivan
solved issue client.getattribute("com.test.mgmt.mbeans:type=testgroupmbean", "testgroups",
function(data) { console.log(data.entrysetsync() + " "); var iterator = data.entrysetsync().iteratorsync(); while (iterator.hasnextsync()){ console.log("value: "+iterator.nextsync().getvaluesync().getsync('name')+ " "); }
Comments
Post a Comment