How to set a command argument value from a custom property?

(lonelyadmin) #1

I’ve got a command that has an argument “–snmp-host-community” and I have a custom data field on the host named snmp_community that I setup following the example director docs how can I set the --snmp-host-community to the value defined on the host with snmp_community? I use a host template to show/define the SNMP values, so I guess I’m asking how to overwrite a specific command argument value with one defined on a host by a host template.