-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
document how to address devices via serial console #20
Comments
@PeterNerlich , for this you would need The following command link serial port
Then, you will use the following config in
Hope this explains it. |
Okay, thank you. I'm trying to look into ways of addressing a few currently unsupported switches/firewalls by MOXA and HIRSCHMANN. I don't know if CISCO does the same or not, but they offer an interactive serial console which is clearly not made for easy automated interfacing. Can I expect this to be as easy as to add them as a system type and specify the command set and return format or does this currently rely on features unlikely to exist with a conventional interactive serial console? |
@PeterNerlich , I think in that case please use
You would need to tinker with it and look at debug logs. Set "debug=yes" in a playbook, e.g.
|
@PeterNerlich , also ... you always can modify You will have to dive into the intricacies of |
@PeterNerlich , the device types are being used here. You need device type ndmtk/ndmtk/plugins/action/ndmtk.j2 Lines 482 to 500 in 6f5f301
For this device type, I perform extra steps. ndmtk/ndmtk/plugins/action/ndmtk.j2 Lines 696 to 698 in 6f5f301
|
Whoa, thank you very much! That's a lot of pointers already. I expect to really start digging into this in the next week. If you are fine with providing further assistence on things I deem ndmtk-related, I'll write you again, but not in this issue. Thank you again, I'm kind of getting excited now 😁 |
@PeterNerlich , sure! just ping me here! I will close this issue, but you can comment/ask question below. Start here: https://www.busindre.com/_media/exploring_expect.pdf |
@greenpau Didn't go as fast as I wished, but now I'm trying to do things again and I hit a wall. Executing the playbook from the README gives me this error: http://termbin.com/jwop |
@PeterNerlich , notice the following line:
It is a python error: I would say would need to modify line 3190 of os.makedirs(commit_dir, mode=0o700, exist_ok=True) Reference: See https://stackoverflow.com/questions/1837874/invalid-token-when-using-octal-numbers |
@PeterNerlich , feel free asking questions! 😄 |
Opened #21 to fix it at some point. |
In the documentation, when searching for "console" or "expect", the only hits are in the README, which speaks of this being part of the feature set. But how to address these devices (especially since Ansible itself usually only uses domains or IP addresses) is not explained.
The text was updated successfully, but these errors were encountered: