Unix gateway relevance using netstat

Has there any way to run the “netstat -rn” to get the gateway IP using relevace/query

I have found the suggestion from this link.

but this will not works for us because ifcfg-ethXX of ifcfg-XXbondXX or ifcfg-teamXX is not consistent across the linux envirnoment. And we have some AIX/Solaris/HP, so I need one common command like netstat to run to across the unix platform.

Relevance can only inspect using the Bigfix inspectors, it can’t invoke external commands. To run an external command you’d need to create a task/fixlet that runs the command and outputs to a file and then use a property to parse the contents of that file via the relevance language.

Thanks SLB. I thought of the same.