def agentInfo = "hostName, agentId, agentType, agentName, agentNamespace, agentActive, agentCollectingData, agentVersion, agentTags, cartridgeName, cartridgeVersion \n"; def agentSvc = server.get("AgentService"); def configSvc = server.get("ConfigService"); agentList = agentSvc.findAll(); for (agent in agentList){ hostName = agent.getHostname(); agentId = agent.getId(); agentType = agent.getTypeId(); agentName = agent.getName(); agentNamespace = agent.getAgentNamespace(); agentActive = agent.getIsActive(); agentCollectingData = agent.getIsCollectingData(); //agentHealthState = agent.getHealthState(); agentVersion = agent.getVersion(); agentTags = agent.getTags(); primaryASP = configSvc.getAgentTypePrimaryAsp(agentNamespace, agentType); cartridgeName = primaryASP.getCartridgeName(); cartridgeVersion = primaryASP.getCartridgeVersion(); agentInfo += "$hostName, $agentId, $agentType, $agentName, $agentNamespace, $agentActive, $agentCollectingData, $agentVersion, $agentTags, $cartridgeName, $cartridgeVersion \n"; } return agentInfo;
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Nutzungsbedingungen Datenschutz Cookie Preference Center