Iist all subnets that use a specific capsule for remote execution on Red Hat Satellite 6.

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.5.

Issue

  • There are few/multiple subnets that use a specific capsule for remote execution. Is there an easy way to search for all subnets associated with a specific capsule for remote execution?

Resolution

  • To list for a specific subnet use the rake command as mentioned below:

    
      # echo "Subnet.find_by_name("name of subnet").remote_execution_proxies" | foreman-rake console
    
    
  • For all subnets, try creating a script as mentioned below :

    
      # vi subnet_cap.erb
    
      x = Subnet.all
      x.length.times{
      |i|
      puts" Subnet = #{x[i]}"
      puts x[i].remote_execution_proxies
      puts "=================================="
      }
    
      # foreman-rake console < subnet_cap.erb
    
    

For more KB articles/solutions related to Red Hat Satellite 6.x Remote Execution Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Remote Execution Issues

SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.