Skip to content

markwilliams970/rally-subadminme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rally-subadminme

A simple set of scripts to get the Sub Admins for a specified Rally Subscription ID.

How to Use:

  1. No pre-requisites! Works on a vanilla Mac with no additional gems, libs, or anything else needed!
  2. Download the GitHub ZIP distribution of this repo here.
  3. In each step of the following section, always replace mydomainusername with your actual Mac login ID.
  4. Move the the ZIP file to: /Users/mydomainusername/Documents/
  5. Double click the ZIP file to extract it. This will create the following folder: /Users/mydomainusername/Documents/rally-subadminme-master
  6. Use your favorite text editor to update the MY_USERNAME, MY_PASSWORD, and INSTALL_DIR and/or HOME_DIR variables, located in the subadminme.sh and usageme.sh scripts (these are your super-user credentials):
subadminme.sh:
MY_USERNAME="[email protected]"
MY_PASSWORD="top\$3cr3t"
INSTALL_DIR="/Users/mydomainusername/Documents/rally-subadminme-master"
usageme.sh:
MY_USERNAME="[email protected]"
MY_PASSWORD="top\$3cr3t"
HOME_DIR="/Users/mydomainusername/Documents/rally-subadminme-master"
  1. Note that we had to escape the special character $ by using $ in the password, since this has a special meaning in the bash shell. Take care to escape any instance of $ in your password.
  2. Add an alias for subadminme:
  3. Open your mac terminal window.
  4. nano ~/.bash_profile
  5. Add the following two lines to this file (replacing mydomainusername with your actual Mac/domain user id):
alias subadminme="/Users/mydomainusername/Documents/rally-subadminme-master/subadminme.sh"
alias usageme="/Users/mydomainusername/Documents/rally-subadminme-master/usageme.sh"
  1. Save the File:
  2. CTRL-O
  3. Hit RETURN
  4. Exit nano:
  5. CTRL-X

save_bash_profile

  1. $ source ~/.bash_profile
  2. subadminme 209
  3. Subadmin list bliss ensues! From here on out, all you have to do is open your Mac Terminal, and you've got instant access to subadminme:

Screenshot

Subscription Admins for SubID 209
=================================
Subadmin One:    [email protected]
Subadmin Two:    [email protected]
  1. Usage bliss ensues! All you have to do to get a Usage Report is open your Mac Terminal, and you've got instant access to usageme:

Screenshot

Pulling 30-day usage report for SubscriptionID: 209
Usage report written to file: Usage_201406021058_209.csv

About

Simple Subadmin Script for Rally Support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages