The example question is also part of the prompt In this case lsof -i returns nothing while ss -nltp returns the information that the port is listened and only cannot tell by which process because of missing permissions. it does not work if the listening process is from another user (if lsof is not run by root). How many processes does 'lsof -i tcp:443` return? 20. Which process is running on port 443 on my desktop? None. it returns any process connecting to this port not only the listening one. It is also inferior for the requested task because I would say the chances that lsof is installed are significant smaller than ss or netstat The example in the project readme is imo already a bad example. (it always surprise me how many unquoted variables exist in most shell scripts quoting fixes many problems, doesn't hurt and still developers are often to lazy to do it) So later on we were having a major emergency call to figure out what could possibly be causing this extremely serious major bug and I said well I was looking through the code and you could see him manfully controlling his exasperation because hey, Bryan is not a Java guy and there is zero chance I could have a meaningful contribution to the current problem.īut yes it turned out he had trustingly pasted in code that we all agreed would never have worked (without caring to basically even read it), which despite the fact that in many ways this guy was better than me is something I would never, ever have done because I am a really hyper-paranoid guy about trusting code.Īnyway tldr, I would never use this tool but maybe some really skillful people would because they don't have the paranoid mindset.īash / Shell is one of the last things I would trust a typical AI considering how much bad shell code/examples exist out there. I was done with some little task I was on and decided to look through code changes and it really stood out the code he had pasted because if it worked that would mean Java was some magic language with incredibly terse code. He worked home a day he could really focus on debugging and finding what could possibly have caused our systems to fail! So one time he got some code from the senior backend Java developer in Argentina and went to past it into the place he was told to paste it into for sending alert notifications to customers, some months later we are going through a major crisis because alerts have not been working for several months and all the customers who are paying thousands per month for the service are getting pissed. Each plugin should document its configuration options.This makes me think of a really great developer I worked with one time who had one major failing, he was too trusting. All options to control the terminal are exposed in the network_cli connection plugin. Terminal plugins operate without configuration. There should be no reason to override this functionality. Using terminal plugins Īnsible determines which terminal plugin to use automatically from the ansible_network_os variable. You can extend Ansible to support other network devices by dropping a custom plugin into the terminal_plugins directory. Ansible loads the appropriate terminal plugin automatically based on the ansible_network_os variable. These plugins correspond one-to-one to network device platforms. This typically includes disabling automatic paging, detecting errors in output, and enabling privileged mode if supported and required on the device. Terminal plugins contain information on how to prepare a particular network device’s SSH shell is properly initialized to be used with Ansible. Controlling how Ansible behaves: precedence rules.Virtualization and Containerization Guides.Protecting sensitive data with Ansible vault.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |