How can i get output in single coloum .
team ,
i am using below query to get the NTP Server data , however is tried all option to get the output in single coloum , but i am not sucess.
NQE Query
ciscontppattern=
```
ntp server {server:string}
```;
ciscontppattern2=
```
ntp server {vrf:string} {dir:string} {ser:ipv4Address}
```;
patternf5 = ```
sys ntp
servers { server1:string} {server2:string}
```;
cisco1(device) =
foreach command in device.outputs.commands
let response = parseConfigBlocks(device.platform.os, command.response)
foreach match in blockMatches(response, ciscontppattern)
select match.data.server;
cisco2(device) =
foreach command in device.outputs.commands
let response = parseConfigBlocks(device.platform.os, command.response)
foreach match in blockMatches(response, ciscontppattern2)
select match.data.ser;
getServers(device) =
foreach command in device.outputs.commands
where command.commandText == "list sys ntp"
let filtered_response = replace(command.response, "{", "")
let filtered_response = replace(filtered_response, "}", "")
let blocks = parseConfigBlocks(OS.F5, filtered_response)
foreach match in blockMatches(blocks, patternf5)
select {server1: match.data.server1, server2: match.data.server2,
};
foreach device in network.devices
select {
vendor: device.platform.vendor,
"Device Name": device.name,
"IP Address": device.snapshotInfo.collectionIp,
Tags: device.tagNames,
Location: device.locationName,
"Server-Cisco1": cisco1(device),
"Server-Cisco/Arista": cisco2(device),
"F5_server": max(getServers(device))?.server1,
"F5_server2": max(getServers(device))?.server2,}