Skip to content

Instantly share code, notes, and snippets.

@richardkiene
Created April 11, 2016 19:03
Show Gist options
  • Save richardkiene/a3c907ee32b0c24c949c1544eb8b6ff2 to your computer and use it in GitHub Desktop.
Save richardkiene/a3c907ee32b0c24c949c1544eb8b6ff2 to your computer and use it in GitHub Desktop.
[rkiene@headnode (us-east-1) ~]$ TRACE=1 sdc-login cns
/lib/sdc/config.sh: line 73: SYSINFO_This: command not found
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:30: set -o errexit
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:31: set -o pipefail
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:33: PATH=/usr/bin:/usr/sbin:/opt/smartdc/bin:/smartdc/bin:/opt/local/bin:/opt/local/sbin:/opt/custom/bin:/opt/custom/sbin:/opt/jtk/bin:/opt/chef/bin:/opt/jpc/bin:/opt/smartdc/bin:/usr/bin
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:35: admin_uuid=9dce1460-0c4c-4417-ab8b-25ca478c5a78
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:36: choice=
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:37: local_only=0
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:38: my_server_uuid=
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:39: to_server=0
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:93: [[ -z 9dce1460-0c4c-4417-ab8b-25ca478c5a78 ]]
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:98: getopts 'c:lhs\?' opt
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:121: shift 0
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:123: zone=cns
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:124: shift
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:126: [[ -z cns ]]
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:131: [[ 0 -eq 1 ]]
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:153: query='this.instance === '\''cns'\'' || (this.service && this.service.match(/^cns/)) || (this.alias && this.alias.match(/^cns/))'
[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:155: IFS='
'
[[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:157: sdcadm insts -H -s alias -j type=vm
[[2016-04-11T19:03:12Z] /opt/smartdc/bin/sdc-login:157: json -c 'this.server_ip !== null' -c 'this.instance === '\''cns'\'' || (this.service && this.service.match(/^cns/)) || (this.alias && this.alias.match(/^cns/))'
[2016-04-11T19:03:17Z] /opt/smartdc/bin/sdc-login:157: results='[
{
"type": "vm",
"alias": "cns0",
"version": "release-20160317-20160317T005151Z-g8281ad0",
"instance": "56181086-c015-4d96-9b71-92c12f07a813",
"zonename": "56181086-c015-4d96-9b71-92c12f07a813",
"service": "cns",
"image": "e96acc2c-ebda-11e5-8155-a36b42b7416b",
"state": "running",
"server": "44454c4c-4d00-1036-8037-c2c04f485331",
"hostname": "headnode",
"server_ip": "10.0.128.10",
"ip": "10.0.130.202"
}
]'
[[2016-04-11T19:03:17Z] /opt/smartdc/bin/sdc-login:158: json length
[2016-04-11T19:03:17Z] /opt/smartdc/bin/sdc-login:158: length=1
[2016-04-11T19:03:17Z] /opt/smartdc/bin/sdc-login:159: [[ 1 -eq 0 ]]
[2016-04-11T19:03:17Z] /opt/smartdc/bin/sdc-login:180: [[ 1 -gt 1 ]]
[[2016-04-11T19:03:17Z] /opt/smartdc/bin/sdc-login:213: json 0.hostname
[2016-04-11T19:03:17Z] /opt/smartdc/bin/sdc-login:213: server_hostname=headnode
[[2016-04-11T19:03:17Z] /opt/smartdc/bin/sdc-login:214: json 0.server_ip
[2016-04-11T19:03:18Z] /opt/smartdc/bin/sdc-login:214: server_ip=10.0.128.10
[[2016-04-11T19:03:18Z] /opt/smartdc/bin/sdc-login:215: json 0.server
[2016-04-11T19:03:18Z] /opt/smartdc/bin/sdc-login:215: server_uuid=44454c4c-4d00-1036-8037-c2c04f485331
[[2016-04-11T19:03:18Z] /opt/smartdc/bin/sdc-login:216: json 0.instance
[2016-04-11T19:03:18Z] /opt/smartdc/bin/sdc-login:216: zone_uuid=56181086-c015-4d96-9b71-92c12f07a813
[2016-04-11T19:03:18Z] /opt/smartdc/bin/sdc-login:219: [[ 44454c4c-4d00-1036-8037-c2c04f485331 == '' ]]
[2016-04-11T19:03:18Z] /opt/smartdc/bin/sdc-login:226: [[ 0 -eq 1 ]]
[2016-04-11T19:03:18Z] /opt/smartdc/bin/sdc-login:229: exec ssh -t 10.0.128.10 zlogin 56181086-c015-4d96-9b71-92c12f07a813
Password:
[rkiene@headnode (us-east-1) ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment