scan a autoscaling group and then get all IPs of running instances, then run a command in which