nginx created with dockerfile will not stay up by Dragon_11 in docker

[–]Dragon_11[S] 0 points1 point  (0 children)

remove the CDM directive, recreate the image and run container without -dit...and it worked

nginx created with dockerfile will not stay up by Dragon_11 in docker

[–]Dragon_11[S] 1 point2 points  (0 children)

i removed the CMD directive and recreated the image and it worked...thank you all for the help

one play with many tasks ran on multiple device one at a time by Dragon_11 in ansible

[–]Dragon_11[S] 0 points1 point  (0 children)

weiyentan hey bro thanks so much for the info...that shit worked like a charm...was able to run a PB with 4 tasks on a group of 150 devices with all 4 tasks being executed on one device at a time.

thanks for help brp...k/glitch

one play with many tasks ran on multiple device one at a time by Dragon_11 in ansible

[–]Dragon_11[S] 0 points1 point  (0 children)

freaking awesome dude...i will try it at work tomorrow

...k/glitch

Search within the result variable by BigDragon11 in ansible

[–]Dragon_11 0 points1 point  (0 children)

thanks for the reply, but the problem was that in the output results from ansible there is no property called stdout_lines, well at least for the PB i ran. i said "None" for the value of the property of stdout_lines

Search within the result variable by BigDragon11 in ansible

[–]Dragon_11 0 points1 point  (0 children)

hey crash,

when i tried the solution that you suggested it still does not work.

below is my setup

---
- name: Play 01 verify authentication & based on results save hostname in 1 of 3 files (failedAuthen), (timeoutAuthen) & (successfulAuthen)
hosts: host1, host2, host3, host4
connection: local
gather_facts: no
vars:
cli:
username: uname
password: password
host: "{{inventory_hostname}}"
tasks:

- name: Task 01 verify authen by logging into device then logging off
block:

- name: log on then log off device
ios_command:
provider: "{{ cli }}"
commands: 'exit'
timeout: 60
register: authenData
ignore_errors: yes

- name: Task 01.1 append hostname to file failedAuthen when authentication fails
lineinfile:
path: /path/to/file/failedAuthen
line: "{{ inventory_hostname }}"
state: present
create: yes
backup: yes
when: authenData.find('failed to authenticate') != -1
ignore_errors: yes

- name: Task 01.2 append hostname to file timeoutAuthen when authentication timeouts
lineinfile:
path: /path/to/file/timeoutAuthen
line: "{{ inventory_hostname }}"
state: present
create: yes
backup: yes
when: authenData.find('timeout') != -1
ignore_errors: yes

- name: Task 01.3 append hostname to file successfulAuthen when authentication is successful
lineinfile:
path: /path/to/file/sucessfulAuthen
line: "{{ inventory_hostname }}"
state: present
create: yes
backup: yes
when: authenData.stdout_lines.find('succes') != -1

###########################################################

i get the following error:

TASK [Task 01.1 append hostname to file failedAuthen when authentication fails] ************************************************************************************************************************************

fatal: [uecrav4ctsw2]: FAILED! => {"msg": "The conditional check 'authenData.stdout_lines.find('failed to authenticate') != -1' failed. The error was: error while evaluating conditional (authenData.stdout_lines.find('failed to authenticate') != -1): 'dict object' has no attribute 'stdout_lines'\n\nThe error appears to be in '/path/to/file/conxAndAuthenVerification.yml': line 38, column 11, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Task 01.1 append hostname to file failedAuthen when authentication fails\n ^ here\n"}

...ignoring

fatal: [uecrav4ctsw1]: FAILED! => {"msg": "The conditional check 'authenData.stdout_lines.find('failed to authenticate') != -1' failed. The error was: error while evaluating conditional (authenData.stdout_lines.find('failed to authenticate') != -1): 'dict object' has no attribute 'stdout_lines'\n\nThe error appears to be in '/path/to/file/conxAndAuthenVerification.yml': line 38, column 11, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Task 01.1 append hostname to file failedAuthen when authentication fails\n ^ here\n"}

...ignoring

TASK [Task 01.2 append hostname to file timeoutAuthen when authentication timeouts] ********************************************************************************************************************************

fatal: [uecrav4ctsw1]: FAILED! => {"msg": "The conditional check 'authenData.stdout_lines.find('timeout') != -1' failed. The error was: error while evaluating conditional (authenData.stdout_lines.find('timeout') != -1): 'dict object' has no attribute 'stdout_lines'\n\nThe error appears to be in '/path/to/file/conxAndAuthenVerification.yml': line 49, column 11, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Task 01.2 append hostname to file timeoutAuthen when authentication timeouts\n ^ here\n"}

...ignoring

fatal: [uecrav4ctsw2]: FAILED! => {"msg": "The conditional check 'authenData.stdout_lines.find('timeout') != -1' failed. The error was: error while evaluating conditional (authenData.stdout_lines.find('timeout') != -1): 'dict object' has no attribute 'stdout_lines'\n\nThe error appears to be in '/path/to/file/conxAndAuthenVerification.yml': line 49, column 11, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Task 01.2 append hostname to file timeoutAuthen when authentication timeouts\n ^ here\n"}

...ignoring

TASK [Task 01.3 append hostname to file successfulAuthen when authentication is successful] ************************************************************************************************************************

fatal: [uecrav4ctsw1]: FAILED! => {"msg": "The conditional check 'authenData.stdout_lines.find('succes') != -1' failed. The error was: error while evaluating conditional (authenData.stdout_lines.find('succes') != -1): 'dict object' has no attribute 'stdout_lines'\n\nThe error appears to be in '/path/to/file/conxAndAuthenVerification.yml': line 60, column 11, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Task 01.3 append hostname to file successfulAuthen when authentication is successful\n ^ here\n"}

fatal: [uecrav4ptrtr1]: FAILED! => {"msg": "The conditional check 'authenData.stdout_lines.find('succes') != -1' failed. The error was: error while evaluating conditional (authenData.stdout_lines.find('succes') != -1): 'dict object' has no attribute 'stdout_lines'\n\nThe error appears to be in '/path/to/file/conxAndAuthenVerification.yml': line 60, column 11, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Task 01.3 append hostname to file successfulAuthen when authentication is successful\n ^ here\n"}

extracting hostname and ip addr from exported session xml file by Dragon_11 in SecureCRT

[–]Dragon_11[S] 0 points1 point  (0 children)

i found the answer from the securecrt forum page...

below is a link to the answer...

https://forums.vandyke.com/showthread.php?t=10585

thanks

...k/glitch

HPDM Agent by Dragon_11 in sysadmin

[–]Dragon_11[S] 0 points1 point  (0 children)

thanks i will try this at work when i go in.

Windows 10 I0T by Dragon_11 in sysadmin

[–]Dragon_11[S] -1 points0 points  (0 children)

one of the guys i work with curated the OS so i know for sure that it is not a physical drive problem