Starting, stopping and restarting SNMP by using REST Administration APIs
System administrators can start, stop, and restart SNMP on Eclipse Amlen by using REST Administration APIs.
Note: The commands must be capitalized as shown.
The following example shows how to start SNMP by using cURL:
curl -X POST \
-H 'Content-Type: application/json' \
-d '{
"Service": "snmp"
}
' \
http://127.0.0.1:9089/ima/v1/service/start
The following example shows how to stop SNMP by using cURL:
curl -X POST \
-H 'Content-Type: application/json' \
-d '{
"Service": "snmp"
}
' \
http://127.0.0.1:9089/ima/v1/service/stop
The following example shows how to restart SNMP by using cURL:
curl -X POST \
-H 'Content-Type: application/json' \
-d '{
"Service": "snmp"
}
' \
http://127.0.0.1:9089/ima/v1/service/restart
An example response to the GET method:
{
"Version": "v1",
"Code": "CWLNA6011",
"Message": "The requested configuration change has completed successfully."
}