fork download
  1. #!/bin/bash
  2.  
  3. set -x
  4.  
  5. # toggle the DMP MIBs
  6.  
  7. dmps=(10.104.164.104 10.104.164.77 10.104.164.176) # ***** put your dmp ips here *******
  8.  
  9. #turn it on
  10. #params='init.startService_mntr=yes&notify.events=yes&notify.syslog_aggregation=on&notify.syslog_agg_size=20&notify.syslog_agg_trigger=6&notify.syslog_agg_timeout=60&notify.syslog_poll_int=60&mib.save=1&mng.reboot=1'
  11.  
  12. #turn it off
  13. #params='notify.syslog_aggregation=off&init.startService_mntr=no&notify.events=no&mib.save=1&mng.reboot=1'
  14.  
  15. for dmp in ${dmps[@]};
  16. do res=$(curl -k -s --url 'https://admin:Cisco123@'"$dmp"':7777/set_param?'"$params");
  17. echo "DMP: $dmp - $res";
  18. done
  19. set +x
  20.  
Success #stdin #stdout 0.02s 5316KB
stdin
Standard input is empty
stdout
DMP: 10.104.164.104 - 
DMP: 10.104.164.77 - 
DMP: 10.104.164.176 -