There is a config file, the structure is not very convenient:
[/ deployment / test_host / CISCO_2]
AdminInterface = ClassName = com.Process Description = 2016-11-01 ABS-222 Link = / deployment / test_host / CISCO_1 MBeanServerConnection = service: jmx: rmi: //10.0.0.0/jndi/rmi: //0.0.0.0/jmxconnector QueryInterface = SecureMBeanServerConnection = service: jmx: rmi: //0.0.0.0.202/jndi/rmi: //0.0.0.0: 39189 / jmxconnector
[/ deployment / test_host / CISCO_2 / Aggregator]
FileNameTemplate = '% scheme / CISCO_'yyyyMMddHHmmss' % FileName % _% fileseq'
[/ deployment / test_host / CISCO_2 / Aggregator / 00]
[/ deployment / test_host / CISCO_2 / Properties]
MAXRESTARTTIMES = 100000000 PROCESSARGS = -l 4 STARTUPMODE = Automatic
[/ deployment / test_host / CISCO_3]
AdminInterface = ClassName = com.Process Description = 2016-11-01 ABS-222 Link = / deployment / test_host / CISCO_1 MBeanServerConnection = service: jmx: rmi: //10.0.0.0/jndi/rmi: //0.0.0.0/jmxconnector QueryInterface = SecureMBeanServerConnection = service: jmx: rmi: //0.0.0.0.202/jndi/rmi: //0.0.0.0: 39189 / jmxconnector
[/ deployment / test_host / CISCO_3 / Aggregator]
FileNameTemplate = '% scheme / CISCO3_'yyyyMMddHHmmss' % FileName % _% fileseq'
You need to pull out from it everything that is within a particular branch, for example / deployment / test_host / CISCO_2 - including, it starts with / deployment / test_host / CISCO_2 and before the new agent [/ deployment / test_host / CISCO_3]
I still do not understand how best to do it. If only the agent's name is filtered, then how to pull out those lines that go between the paths of agent names (for example, FileNameTemplate ...)
AdminInterfacepropertyAdminInterfacevalue, is the set propertyClassName,Descriptionbut then doesABS-222break in, does it refer to a descriptor? - Ninazu