I’m trying to create a file on the monitored systems of the IP addresses BigFix is reporting so I can match them to match it up with a file from another system. However, when I run the commands:
delete createfile
createfile until end
{addresses whose (it as string != "0.0.0.0") of ip interfaces whose (not loopback of it) of network as string}
end
wait rm /opt/XXX/automation/results/IPlist.txt
copy __createfile /opt/XXX/automation/results/IPlist.txt
The result in IPlist.txt winds up being in a single line. This works great if you have only one IP address, but with multiple addresses, it renders the file useless for grepping into the other file.
I’m sure I’m missing something here with a “separated by” clause but I’m at my wit’s end trying to figure out what’s the correct way to get this working.
As usual, thanks for your assistance!