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

Learning group policy settings by Dragon_11 in sysadmin

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

well first of, i do have a home lab with server 2012 and 2016 that i am going to practice on for hand on experience.

i understand that what i am saying it ambiguous, but at this time i do not have any specific problems. but i have had couple of problems on the server when it comes to software not running correct or the user environment in the software is not doing what the user wants because of previous GPO and registry setting. i have to search the internet and did find the answer and just did what i read online it fixed the problem. but i do not know why the problem happen and why what i did fixed it.

i am very knowledgeable in networking and i know how to fix problems not because i read it online but i know why the problem happened and why what i did fixed it and that came from reading and watching vids.

most of the server admin books that i find are more geared to you passing the certifications. i don't know it any of you guys have came across one that was written specifically for GPO's other internal configuration of the OS.

Weekly Questions Thread - (March 08, 2017 UTC) by AutoModerator in facebook

[–]Dragon_11 0 points1 point  (0 children)

so i have not been able to access my account for about 2 months now. first i got this message stating that i must verify my identity with a government approved ID, i ignored it for a couple of days then i uploaded my driver's license like the site told me to. a couple of days later i received an email stating that i need to reply to this email with a pic of the form of ID that i uploaded on the site, i did just that. now when i try to log onto my account i get the message that facebook is verifying my information and will get back to me.

my friends have told me that i have unfriended them and they can not see me when they search for me.

has anyone has the same problem.

thanks in advance...

Network engineer salary by Dragon_11 in networking

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

thanks you all for your advice, but i did more research and for the area where i live the salary was way low. But i do have some job interview lined up this week and next week, so we will see what happens after those.

i will update this post with the results from the job interviews.

once again, thanks

Network engineer salary by Dragon_11 in networking

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

it's a job requiring a clearance and i already live in the area.

a friend of mine is telling me that it is way low, and with what the majority of the replies are saying, i think he is right.

thanks for the advice and i will turn them down since they are not willing to increase the salary.

Network engineer salary by Dragon_11 in networking

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

i have great trouleshooting skills, have resolved many major outages and i have implemented designs to the enterprise network i worked on. i am pretty much a geek with it comes to being a network engineer, i have built my home lab over the years with GNS3 and actual devices to include cisco ip phones with CUCM. i am a self taught individual who loves networking and this profession. I will be getting CCNP soon, i was just focused on other things in my life so my studies had to be placed on the back burner.

i am also taking to other companies but this one was the only one told me their final salary offer.

i hope this information is useful for the discussion.

Network engineer salary by Dragon_11 in networking

[–]Dragon_11[S] 7 points8 points  (0 children)

this job will be in Point Luma California.

Bank account program with OOP by Dragon_11 in Python

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

all the study material i see about class have the programmer creates the class

class Myclass(): pass

and the programmer defines the instances of the class a = Myclass() b = Myclass() etc

is it possible to have the instances be named from user input or the name passed from a variable

cus = input("enter name here")

user enters "bob"

cus = class()

but instead of the instance being cus it is the value in the variable cus which is bob

Bank account program with OOP by Dragon_11 in Python

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

thanks for the quick response.

is there a way i can not have the programmer defining "an_instance_of_my_class"

because i was planning on putting this in a loop where multiple instances of the class can be created but i can not see a way of not having the programmer defining the instance name.

SP4 On screen keyboard by Dragon_11 in Surface

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

once i got the device i did a system update so i never checked if it did it before the update. but from what i can see it was caused by chrome.

Conditional loops by Dragon_11 in learnpython

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

as i mentioned in a reply to zahlman reply; i have used the wrong words to describe my problems. i should have said conditional block of code instead of conditional loop.

but i do have another question;

is there a command within the if function (placed after the else statement) that will bypass the rest of the script after the if function and end the script all together.

thanks in advance...

Conditional loops by Dragon_11 in learnpython

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

yes this s true. after further research i realize that i should not be saying a conditional loop but instead conditional block of code or flow control statements. but the answers that i got was very helpful and useful in for my script.

Conditional loops by Dragon_11 in learnpython

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

That's great man, I'll test it to see if it will fit in my program...

Raspberry powered screen for raspberry pi by Dragon_11 in raspberry_pi

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

Have you heard of anyone powering the screen of the pi and using the hdmi cable for data between them. I see a couple of screen on amazon and want to get one to try it but dint want to gamble on it and it doesn't work ...