Skip to content

Instantly share code, notes, and snippets.

@charly-vega
Created August 6, 2016 22:00
Show Gist options
  • Save charly-vega/2cb4611ebd0ba3ad24a0140657271b84 to your computer and use it in GitHub Desktop.
Save charly-vega/2cb4611ebd0ba3ad24a0140657271b84 to your computer and use it in GitHub Desktop.
Echo SL virtual server credentials
function login_vs () {
local vs_details=`slcli vs list | grep $1`
vs_details=($vs_details)
vs_id=${vs_details[0]}
local vs_credentials=`slcli vs credentials $vs_id | grep $2`
vs_credentials=($vs_credentials)
echo ${vs_credentials[1]}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment