This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

AgentReadTable()

Deprecated in 3.0.

Please use method readAgentTable() of class Node.

AgentReadTable(node, name) ⇒ Table

Request table metric directly from agent on given node.

Table 1. Parameters

node

Node object instance (e.g. $node)

name

Table name

Return

Instance of Table or null if failed.

>>> t = AgentReadTable($node, "Agent.SubAgents");
>>> for (c : t.columns) {
>>>   print(c.name .. " | ");
>>> }
>>> println("");
>>> for (row : t.rows) {
>>>   for (cell : row.values) {
>>>      print(cell .. " | ");
>>>   }
>>>   println("");
>>> }
NAME | VERSION | FILE |
Darwin | 2.2.13 | darwin.nsm |
FILEMGR | 2.2.13-3-g4c02b65c50 | filemgr.nsm |
PING | 2.2.13-3-g4c02b65c50 | ping.nsm |