<% 
rolestring.split(',').each do |role|
%>

insert snmp config statements for role

<% end %>