code: def set_snmp(community, host=None,
               admin_username=None, admin_password=None):
      '''
      Configure CMC or individual iDRAC SNMP community string.
      Use ``deploy_snmp`` for configuring chassis switch SNMP.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt dell dracr.set_snmp [COMMUNITY]
          salt dell dracr.set_snmp public
      '''
      return __execute_cmd('config -g cfgOobSnmp -o '
                           'cfgOobSnmpAgentCommunity {0}'.format(community),
                           host=host, admin_username=admin_username,
                           admin_password=admin_passwordf set_snmp(community, host=None,
               admin_username=None, admin_password=None):
      '''
      Configure CMC or individual iDRAC SNMP community string.
      Use ``deploy_snmp`` for configuring chassis switch SNMP.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt dell dracr.set_snmp [COMMUNITY]
          salt dell dracr.set_snmp public
      '''
      return __execute_cmd('config -g cfgOobSnmp -o '
                           'cfgOobSnmpAgentCommunity {0}'.format(community),
                           host=host, admin_username=admin_username,
                           admin_password=admin_password)
docs: Configure CMC or individual iDRAC SNMP community string.
      Use ``deploy_snmp`` for configuring chassis switch SNMP.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt dell dracr.set_snmp [COMMUNITY]
          salt dell dracr.set_snmp public