Skip to content

Instantly share code, notes, and snippets.

@alikins
Created October 15, 2009 21:24
Show Gist options
  • Save alikins/211302 to your computer and use it in GitHub Desktop.
Save alikins/211302 to your computer and use it in GitHub Desktop.
adrian@alikins rho]$ PYTHONPATH=~/src/rho/src/ bin/rho profile add --name group3 --ip_start 192.168.1.1 --ip_end 192.168.1.100 --ports 22
Password:
{"credentials": [{"username": "root", "password": "cobbler", "type": "ssh", "name": "default"}], "version": 1, "groups": [{"credentials": [], "range": null, "name": "group1", "ports": [22]}, {"credentials": [], "range": null, "name": "group2", "ports": [22]}, {"credentials": [], "range": null, "name": "group3", "ports": ["22"]}]}
[adrian@alikins rho]$ PYTHONPATH=~/src/rho/src/ bin/rho profile show
Password:
{'credentials': [], 'range': None, 'name': 'group1', 'ports': [22]}
{'credentials': [], 'range': None, 'name': 'group2', 'ports': [22]}
{'credentials': [], 'range': None, 'name': 'group3', 'ports': [22]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment