Skip to content

Instantly share code, notes, and snippets.

@fatmcgav
Last active February 1, 2016 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fatmcgav/53dae6728ffe70885ad8 to your computer and use it in GitHub Desktop.
Save fatmcgav/53dae6728ffe70885ad8 to your computer and use it in GitHub Desktop.
password_test CLC script package
2016-02-01 09:23:12.6155 [Trace] [Root] - <<<<<<<<<< Blueprint build started from step 0 >>>>>>>>>>
2016-02-01 09:23:12.7093 [Info ] [Root] - Blueprint properties:
TemplateID => 4726
T3.BuildServerTask.Password => ********
T3.BuildServerTask.GroupID => f6bdcb1f-c139-4d75-bdb4-d11f22a7761c
T3.BuildServerTask.Network => vlan_2195_10.105.195
T3.BuildServerTask.PrimaryDNS => 10.106.81.14
T3.BuildServerTask.HardwareType => Standard
T3.BuildServerTask.AntiAffinityPoolId =>
T3.BuildServerTask.ServiceLevel => Premium
0599e24c-2e7a-4de3-93f2-2d7146969879.Alias => -NODL
T3.BuildServerTask.IsHyperscale => False
2016-02-01 09:23:12.7406 [Info ] [Root] - Task properties: Build Server -NODL:
Password => ********
HardwareType => ${T3.BuildServerTask.HardwareType}
ServiceLevel => ${T3.BuildServerTask.ServiceLevel}
IsHyperscale => ${T3.BuildServerTask.IsHyperscale}
2016-02-01 09:23:12.7561 [Info ] [Root] - Task properties: password_test:
T3.Server.Password => ********
2016-02-01 09:23:12.8186 [Trace] [Root] - Validating
2016-02-01 09:23:12.8186 [Trace] [Build Server -NODL] - Validating
2016-02-01 09:23:12.8343 [Trace] [Build Server -NODL] - Validated
2016-02-01 09:23:12.8812 [Trace] [password_test] - Validating
2016-02-01 09:23:12.8968 [Trace] [password_test] - Validated
2016-02-01 09:23:12.9905 [Trace] [Root] - Validated
2016-02-01 09:23:13.0530 [Trace] [Root] - Reserving resources
2016-02-01 09:23:13.0530 [Trace] [Build Server -NODL] - Reserving resources
2016-02-01 09:23:13.0687 [Info ] [Build Server -NODL] - Service Level: Premium
2016-02-01 09:23:13.1312 [Info ] [Build Server -NODL] - Hardware Type: Standard
2016-02-01 09:23:13.1780 [Info ] [Build Server -NODL] - Using Server Template: CENTOS-7-64-TEMPLATE
2016-02-01 09:23:14.3656 [Info ] [Build Server -NODL] - Server: GB3TVD-NODL41
2016-02-01 09:23:14.4281 [Info ] [Build Server -NODL] - Server reservation is experiencing delays.
2016-02-01 09:23:15.0687 [Info ] [Build Server -NODL] - IP Address: 10.105.195.22
2016-02-01 09:23:15.2406 [Info ] [Build Server -NODL] - Build server queued via Message Bus sub task. ID: 166725
2016-02-01 09:23:15.2406 [Trace] [Build Server -NODL] - Resources reserved
2016-02-01 09:23:15.2875 [Trace] [password_test] - Reserving resources
2016-02-01 09:23:15.5062 [Trace] [password_test] - Resources reserved
2016-02-01 09:23:15.5531 [Trace] [Root] - Resources reserved
2016-02-01 09:23:15.6000 [Trace] [Root] - Building
2016-02-01 09:23:15.6156 [Trace] [Build Server -NODL] - Building
2016-02-01 09:25:07.1194 [Trace] [Build Server -NODL] - Build complete
2016-02-01 09:25:07.2132 [Trace] [password_test] - Building
2016-02-01 09:25:07.3694 [Trace] [password_test] - Executing from step 0
2016-02-01 09:25:07.3850 [Trace] [password_test] - Step 0: Power On GB3TVD-NODL41
2016-02-01 09:25:07.5570 [Trace] [password_test] - Build suspended
2016-02-01 09:25:07.6508 [Trace] [Root] - Build suspended
2016-02-01 09:25:28.8389 [Trace] [Root] - <<<<<<<<<< Blueprint build started from step 2.1 >>>>>>>>>>
2016-02-01 09:25:28.8858 [Info ] [Root] - Blueprint properties:
TemplateID => 4726
T3.BuildServerTask.Password => ********
T3.BuildServerTask.GroupID => f6bdcb1f-c139-4d75-bdb4-d11f22a7761c
T3.BuildServerTask.Network => vlan_2195_10.105.195
T3.BuildServerTask.PrimaryDNS => 10.106.81.14
T3.BuildServerTask.HardwareType => Standard
T3.BuildServerTask.AntiAffinityPoolId =>
T3.BuildServerTask.ServiceLevel => Premium
0599e24c-2e7a-4de3-93f2-2d7146969879.Alias => -NODL
T3.BuildServerTask.IsHyperscale => False
2016-02-01 09:25:28.9014 [Info ] [Root] - Task properties: Build Server -NODL:
TemplatePassword => ********
Password => ********
HardwareType => ${T3.BuildServerTask.HardwareType}
ServiceLevel => ${T3.BuildServerTask.ServiceLevel}
IsHyperscale => ${T3.BuildServerTask.IsHyperscale}
2016-02-01 09:25:28.9014 [Info ] [Root] - Task properties: password_test:
T3.Server.Password => ********
T3 => ${T3.Server.Password}
2016-02-01 09:25:28.9327 [Trace] [Root] - Validating
2016-02-01 09:25:28.9483 [Trace] [Build Server -NODL] - Validating
2016-02-01 09:25:28.9483 [Trace] [Build Server -NODL] - Validated
2016-02-01 09:25:28.9639 [Trace] [password_test] - Validating
2016-02-01 09:25:28.9795 [Trace] [password_test] - Validated
2016-02-01 09:25:28.9795 [Trace] [Root] - Validated
2016-02-01 09:25:29.0264 [Trace] [Root] - Reserving resources
2016-02-01 09:25:29.0420 [Trace] [Build Server -NODL] - Reserving resources
2016-02-01 09:25:29.0577 [Info ] [Build Server -NODL] - Service Level: Premium
2016-02-01 09:25:29.1358 [Info ] [Build Server -NODL] - Hardware Type: Standard
2016-02-01 09:25:29.2295 [Info ] [Build Server -NODL] - Reserved server with UUID c01ec25dee424c14a6a8806af8d33107
2016-02-01 09:25:29.9640 [Info ] [Build Server -NODL] - IP Address: 10.105.195.22
2016-02-01 09:25:29.9796 [Info ] [Build Server -NODL] - Build server already queued via Message Bus sub task. ID: 166725
2016-02-01 09:25:29.9952 [Trace] [Build Server -NODL] - Resources reserved
2016-02-01 09:25:30.0108 [Trace] [password_test] - Reserving resources
2016-02-01 09:25:30.1046 [Trace] [password_test] - Resources reserved
2016-02-01 09:25:30.1046 [Trace] [Root] - Resources reserved
2016-02-01 09:25:30.1671 [Trace] [Root] - Building
2016-02-01 09:25:30.1671 [Trace] [password_test] - Building
2016-02-01 09:25:30.2296 [Trace] [password_test] - Executing from step 1
2016-02-01 09:25:30.2452 [Trace] [password_test] - Step 1: Finished Powering On GB3TVD-NODL41
2016-02-01 09:25:30.2921 [Trace] [password_test] - Step 2: Copy Package to Server
2016-02-01 09:25:30.3390 [Info ] [password_test] - Package source: \\172.17.1.23\et\TVD\31b025ba-42a1-4f4e-b75e-75102d8872e4.zip
2016-02-01 09:25:30.3546 [Info ] [password_test] - Package destination: /sysadmin/31b025ba-42a1-4f4e-b75e-75102d8872e4/31b025ba-42a1-4f4e-b75e-75102d8872e4.zip
2016-02-01 09:25:30.9484 [Trace] [password_test] - Step 3: Extract Package
2016-02-01 09:25:31.0890 [Trace] [password_test] - Extracting package: 31b025ba-42a1-4f4e-b75e-75102d8872e4.zip
2016-02-01 09:25:31.2765 [Trace] [password_test] - Package extracted
2016-02-01 09:25:31.2765 [Trace] [password_test] - Step 4: Execute Package
2016-02-01 09:25:31.3234 [Info ] [password_test] - Execution mode: Ssh
2016-02-01 09:25:31.3390 [Info ] [password_test] - Working directory: /sysadmin/31b025ba-42a1-4f4e-b75e-75102d8872e4
2016-02-01 09:25:31.3390 [Info ] [password_test] - Execution command: install.sh '********'
2016-02-01 09:25:31.3546 [Info ] [password_test] - Reboot on success: False
2016-02-01 09:25:31.3546 [Info ] [password_test] - Run as: root
2016-02-01 09:30:31.2836 [Debug] [password_test] - Password provided =
2016-02-01 09:30:31.4086 [Trace] [password_test] - Step 5: Delete Package
2016-02-01 09:30:31.7054 [Trace] [password_test] - Step 6: Power On GB3TVD-NODL41
2016-02-01 09:30:31.7680 [Trace] [password_test] - Build suspended
2016-02-01 09:30:31.8148 [Trace] [Root] - Build suspended
2016-02-01 09:44:06.8556 [Trace] [Root] - <<<<<<<<<< Blueprint build started from step 0 >>>>>>>>>>
2016-02-01 09:44:06.9181 [Info ] [Root] - Blueprint properties:
TemplateID => 4726
T3.BuildServerTask.Password => ********
T3.BuildServerTask.GroupID => f6bdcb1f-c139-4d75-bdb4-d11f22a7761c
T3.BuildServerTask.Network => vlan_2195_10.105.195
T3.BuildServerTask.PrimaryDNS => 10.106.81.14
T3.BuildServerTask.HardwareType => Standard
T3.BuildServerTask.AntiAffinityPoolId =>
T3.BuildServerTask.ServiceLevel => Standard
0599e24c-2e7a-4de3-93f2-2d7146969879.Alias => -NODL
T3.BuildServerTask.IsHyperscale => False
2016-02-01 09:44:06.9181 [Info ] [Root] - Task properties: Build Server -NODL:
Password => ********
HardwareType => ${T3.BuildServerTask.HardwareType}
ServiceLevel => ${T3.BuildServerTask.ServiceLevel}
IsHyperscale => ${T3.BuildServerTask.IsHyperscale}
2016-02-01 09:44:06.9337 [Info ] [Root] - Task properties: password_test:
T3.Server.Password => ********
2016-02-01 09:44:07.0118 [Trace] [Root] - Validating
2016-02-01 09:44:07.0431 [Trace] [Build Server -NODL] - Validating
2016-02-01 09:44:07.0743 [Trace] [password_test] - Validating
2016-02-01 09:44:07.0899 [Trace] [password_test] - Validated
2016-02-01 09:44:07.1368 [Trace] [Build Server -NODL] - Validated
2016-02-01 09:44:07.1837 [Trace] [Root] - Validated
2016-02-01 09:44:07.2306 [Trace] [Root] - Reserving resources
2016-02-01 09:44:07.2462 [Trace] [Build Server -NODL] - Reserving resources
2016-02-01 09:44:07.2618 [Info ] [Build Server -NODL] - Service Level: Standard
2016-02-01 09:44:07.2618 [Info ] [Build Server -NODL] - Hardware Type: Standard
2016-02-01 09:44:07.4181 [Info ] [Build Server -NODL] - Using Server Template: CENTOS-7-64-TEMPLATE
2016-02-01 09:44:08.4806 [Info ] [Build Server -NODL] - Server: GB3TVD-NODL42
2016-02-01 09:44:08.5431 [Info ] [Build Server -NODL] - Server reservation is experiencing delays.
2016-02-01 09:44:09.1837 [Info ] [Build Server -NODL] - IP Address: 10.105.195.22
2016-02-01 09:44:09.1837 [Trace] [password_test] - Reserving resources
2016-02-01 09:44:09.3087 [Trace] [password_test] - Resources reserved
2016-02-01 09:44:09.6368 [Info ] [Build Server -NODL] - Build server queued via Message Bus sub task. ID: 166732
2016-02-01 09:44:09.6525 [Trace] [Build Server -NODL] - Resources reserved
2016-02-01 09:44:09.6993 [Trace] [Root] - Resources reserved
2016-02-01 09:44:09.7462 [Trace] [Root] - Building
2016-02-01 09:44:09.7618 [Trace] [Build Server -NODL] - Building
2016-02-01 09:46:20.4973 [Trace] [password_test] - Building
2016-02-01 09:46:20.6067 [Trace] [password_test] - Executing from step 0
2016-02-01 09:46:20.6223 [Trace] [password_test] - Step 0: Validating power state
2016-02-01 09:46:20.6848 [Trace] [password_test] - Step 1: Finished validating power state
2016-02-01 09:46:20.7473 [Trace] [password_test] - Step 2: Copy Package to Server
2016-02-01 09:46:20.8098 [Info ] [password_test] - Package source: \\172.17.1.23\et\TVD\31b025ba-42a1-4f4e-b75e-75102d8872e4.zip
2016-02-01 09:46:20.8254 [Info ] [password_test] - Package destination: /sysadmin/31b025ba-42a1-4f4e-b75e-75102d8872e4/31b025ba-42a1-4f4e-b75e-75102d8872e4.zip
2016-02-01 09:46:21.6848 [Trace] [password_test] - Step 3: Extract Package
2016-02-01 09:46:21.7786 [Trace] [password_test] - Extracting package: 31b025ba-42a1-4f4e-b75e-75102d8872e4.zip
2016-02-01 09:46:22.4661 [Trace] [password_test] - Package extracted
2016-02-01 09:46:22.4661 [Trace] [password_test] - Step 4: Execute Package
2016-02-01 09:46:22.6391 [Info ] [password_test] - Execution mode: Ssh
2016-02-01 09:46:22.6536 [Info ] [password_test] - Working directory: /sysadmin/31b025ba-42a1-4f4e-b75e-75102d8872e4
2016-02-01 09:46:22.6536 [Info ] [password_test] - Execution command: install.sh '********'
2016-02-01 09:46:22.6692 [Info ] [password_test] - Reboot on success: False
2016-02-01 09:46:22.6848 [Info ] [password_test] - Run as: root
2016-02-01 09:51:22.4998 [Debug] [password_test] - Password provided =
2016-02-01 09:51:22.6248 [Trace] [password_test] - Step 5: Delete Package
2016-02-01 09:51:22.9217 [Trace] [password_test] - Step 6: Validating power state
2016-02-01 09:51:22.9686 [Trace] [password_test] - Step 7: Finished validating power state
2016-02-01 09:51:23.0311 [Trace] [password_test] - Step 8: Update Server Modified Date
2016-02-01 09:51:23.0936 [Trace] [password_test] - Build complete
2016-02-01 09:51:23.9061 [Trace] [Build Server -NODL] - Build complete
2016-02-01 09:51:23.9999 [Trace] [Root] - Build complete
2016-02-01 09:51:24.1092 [Trace] [Root] - >>>>>>>>>> Blueprint completed successfully <<<<<<<<<<
#!/bin/bash
#
# _____ _ _ _ _ _____ _ _
# / __ \ | | | | (_) | | / __ \ | | |
# | / \/ ___ _ __ | |_ _ _ _ __ _ _| | _ _ __ | | __ | / \/ | ___ _ _ __| |
# | | / _ \ '_ \| __| | | | '__| | | | | | | '_ \| |/ / | | | |/ _ \| | | |/ _` |
# | \__/\ __/ | | | |_| |_| | | | |_| | |___| | | | | < | \__/\ | (_) | |_| | (_| |
# \____/\___|_| |_|\__|\__,_|_| \__, \_____/_|_| |_|_|\_\ \____/_|\___/ \__,_|\__,_|
# __/ |
# |___/
#
# Blueprint package install.sh template generated via:
# http://centurylinkcloud.github.io/Ecosystem/BlueprintManifestBuilder/
#
## Set variables configured in package.manifest
T3_SERVER_PASSWORD="${1}"
#####################################################
# Add custom script elements below this line ---
echo "Password provided = $T3_SERVER_PASSWORD"
# Sleep so that can grab the ps output
sleep 300
# Exit
exit
<?xml version="1.0" encoding="utf-8"?>
<Manifest>
<Metadata>
<UUID>31b025ba-42a1-4f4e-b75e-75102d8872e4</UUID>
<Name>password_test</Name>
<Description>ACT Password test package</Description>
</Metadata>
<Parameters>
<Parameter Name="T3.Server.Password" Hint="" Type="String" Variable="T3.Server.Password" Prompt="None" Global="false" Default="" Required="true"/>
</Parameters>
<Execution>
<Mode>Ssh</Mode>
<Command>install.sh '${T3.Server.Password}'</Command>
<Persistent>false</Persistent>
<RebootOnSuccess>false</RebootOnSuccess>
</Execution>
</Manifest>
[root@localhost ~]# ps -ef |grep install
root 2299 2297 0 09:46 ? 00:00:00 bash -c mkdir -p /sysadmin/31b025ba-42a1-4f4e-b75e-75102d8872e4 && cd /sysadmin/31b025ba-42a1-4f4e-b75e-75102d8872e4 && ./install.sh ''
root 2305 2299 0 09:46 ? 00:00:00 /bin/bash ./install.sh
root 2344 2325 0 09:47 pts/1 00:00:00 grep --color=auto install
[root@localhost ~]# ps -ef |grep install
root 2331 2329 0 09:26 ? 00:00:00 bash -c mkdir -p /sysadmin/31b025ba-42a1-4f4e-b75e-75102d8872e4 && cd /sysadmin/31b025ba-42a1-4f4e-b75e-75102d8872e4 && ./install.sh ''
root 2337 2331 0 09:26 ? 00:00:00 /bin/bash ./install.sh
root 2340 2256 0 09:26 pts/0 00:00:00 grep --color=auto install
[root@localhost ~]# ps -ef |grep install
root 2406 2404 0 09:32 ? 00:00:00 bash -c mkdir -p /sysadmin/31b025ba-42a1-4f4e-b75e-75102d8872e4 && cd /sysadmin/31b025ba-42a1-4f4e-b75e-75102d8872e4 && ./install.sh 'n8YZQP3HfkGT7L6eBLDMMw4HxY9XFc'
root 2412 2406 0 09:32 ? 00:00:00 /bin/bash ./install.sh n8YZQP3HfkGT7L6eBLDMMw4HxY9XFc
root 2415 2256 0 09:32 pts/0 00:00:00 grep --color=auto install
2016-02-01 09:31:45.1913 [Trace] [Root] - <<<<<<<<<< Blueprint build started from step 0 >>>>>>>>>>
2016-02-01 09:31:45.3788 [Trace] [Root] - Validating
2016-02-01 09:31:45.3944 [Trace] [password_test] - Validating
2016-02-01 09:31:45.4100 [Trace] [password_test] - Validated
2016-02-01 09:31:45.4725 [Trace] [Root] - Validated
2016-02-01 09:31:45.5350 [Trace] [Root] - Reserving resources
2016-02-01 09:31:45.5663 [Trace] [password_test] - Reserving resources
2016-02-01 09:31:45.7069 [Trace] [password_test] - Resources reserved
2016-02-01 09:31:45.7694 [Trace] [Root] - Resources reserved
2016-02-01 09:31:45.8319 [Trace] [Root] - Building
2016-02-01 09:31:45.8475 [Trace] [password_test] - Building
2016-02-01 09:31:45.9257 [Trace] [password_test] - Executing from step 0
2016-02-01 09:31:45.9413 [Trace] [password_test] - Step 0: Power On GB3TVD-NODL41
2016-02-01 09:31:46.0038 [Trace] [password_test] - Build suspended
2016-02-01 09:31:46.0507 [Trace] [Root] - Build suspended
2016-02-01 09:32:00.6759 [Trace] [Root] - <<<<<<<<<< Blueprint build started from step 1.1 >>>>>>>>>>
2016-02-01 09:32:00.7540 [Trace] [Root] - Validating
2016-02-01 09:32:00.7540 [Trace] [password_test] - Validating
2016-02-01 09:32:00.7696 [Trace] [password_test] - Validated
2016-02-01 09:32:00.7696 [Trace] [Root] - Validated
2016-02-01 09:32:00.8321 [Trace] [Root] - Reserving resources
2016-02-01 09:32:00.8321 [Trace] [password_test] - Reserving resources
2016-02-01 09:32:00.9259 [Trace] [password_test] - Resources reserved
2016-02-01 09:32:00.9415 [Trace] [Root] - Resources reserved
2016-02-01 09:32:01.0196 [Trace] [Root] - Building
2016-02-01 09:32:01.0353 [Trace] [password_test] - Building
2016-02-01 09:32:01.1134 [Trace] [password_test] - Executing from step 1
2016-02-01 09:32:01.1290 [Trace] [password_test] - Step 1: Finished Powering On GB3TVD-NODL41
2016-02-01 09:32:01.1759 [Trace] [password_test] - Step 2: Copy Package to Server
2016-02-01 09:32:01.2697 [Info ] [password_test] - Package source: \\172.17.1.23\et\TVD\31b025ba-42a1-4f4e-b75e-75102d8872e4.zip
2016-02-01 09:32:01.2853 [Info ] [password_test] - Package destination: /sysadmin/31b025ba-42a1-4f4e-b75e-75102d8872e4/31b025ba-42a1-4f4e-b75e-75102d8872e4.zip
2016-02-01 09:32:01.8634 [Trace] [password_test] - Step 3: Extract Package
2016-02-01 09:32:01.9415 [Trace] [password_test] - Extracting package: 31b025ba-42a1-4f4e-b75e-75102d8872e4.zip
2016-02-01 09:32:02.1447 [Trace] [password_test] - Package extracted
2016-02-01 09:32:02.1447 [Trace] [password_test] - Step 4: Execute Package
2016-02-01 09:32:02.1915 [Info ] [password_test] - Execution mode: Ssh
2016-02-01 09:32:02.2072 [Info ] [password_test] - Working directory: /sysadmin/31b025ba-42a1-4f4e-b75e-75102d8872e4
2016-02-01 09:32:02.2228 [Info ] [password_test] - Execution command: install.sh '********'
2016-02-01 09:32:02.2384 [Info ] [password_test] - Reboot on success: False
2016-02-01 09:32:02.2540 [Info ] [password_test] - Run as: root
2016-02-01 09:37:02.3364 [Debug] [password_test] - Password provided = n8YZQP3HfkGT7L6eBLDMMw4HxY9XFc
2016-02-01 09:37:02.4458 [Trace] [password_test] - Step 5: Delete Package
2016-02-01 09:37:02.7114 [Trace] [password_test] - Step 6: Power On GB3TVD-NODL41
2016-02-01 09:37:02.7583 [Trace] [password_test] - Build suspended
2016-02-01 09:37:02.8051 [Trace] [Root] - Build suspended
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment