Enabling and disabling SNMP by using REST Administration APIs

System administrators can enable and disable SNMP on Eclipse Amlen by using REST Administration APIs.

You can enable and disable SNMP by using REST Administration APIs, or by using the Amlen WebUI. For more information about using the Amlen WebUI to enable and disable SNMP, see Configuring SNMP by using the Amlen WebUI.
Note: The commands must be capitalized as shown.
  1. Check whether SNMP is enabled by using the Eclipse Amlen REST API GET method with the following Eclipse Amlen configuration URI:

    http://<admin-endpoint-IP:Port>/ima/v1/configuration/SNMPEnabled

    • If the status of SNMP is false, SNMP is disabled.
    • If the status of SNMP is true, SNMP is enabled.
  2. Choose an appropriate action:
    • Enable SNMP, by using the Eclipse Amlen REST API POST method. The following example shows how to enable SNMP by using cURL:
      
      curl -X POST \
         -H  'Content-Type: application/json'  \
         -d  '{ 
               "SNMPEnabled": true
               }
             ' \
      http://127.0.0.1:9089/ima/v1/configuration
    • To disable SNMP, use the Eclipse Amlen REST API POST method. The following example shows how to disable SNMP by using cURL:
      
      curl -X POST \
         -H  'Content-Type: application/json'  \
         -d  '{ 
               "SNMPEnabled": false
               }
             ' \
      http://127.0.0.1:9089/ima/v1/configuration