Hi,
you can use NXSL script and function AgentReadList like this:
where $node is a node with SSH subagent installed. Of course you can use string concatenation to insert proper credentials and device IP address. For example, if variable $node points to NetXMS server node and variable mt to Mikrotik device, you can do
Best regards,
Victor
you can use NXSL script and function AgentReadList like this:
Code Select
AgentReadList($node, "SSH.Command(mikrotik_ip,login,password,/system package update install)");
where $node is a node with SSH subagent installed. Of course you can use string concatenation to insert proper credentials and device IP address. For example, if variable $node points to NetXMS server node and variable mt to Mikrotik device, you can do
Code Select
AgentReadList($node, "SSH.Command(" . mt->ipAddr . ",login,password,/system package update install)");
Best regards,
Victor