How to restict agent to run only on batch nodes?

currently we have upgraded to 8.6 from 7.3 and our app nodes are configured as batch and online.how can i restict the agent to run only on batch nodes?

@Bharath Suntigikar

go to Sysadmin–>agents-> click on the gear icon under associated with node types for your agent -->select background processing

Please find the attachement for your ref