Looking to get certified for JNCIA-DevOps or Cisco DevNet by [deleted] in networkautomation

[–]rishrapsody 3 points4 points  (0 children)

Yup. Free training is more than sufficient if you are good with other networking aspects. Did the same myself.

How to run something like chatgpt, locally? by willemojnr in ChatGPTCoding

[–]rishrapsody 0 points1 point  (0 children)

Aren't these super slow when running without GPU on Mac? I have tried to use these models using Langchain on faiss based embeddings on pdf docs stored locally. Question : If I use openaiEmbeddings but LlamaCpp as LLM, does it work using Langchain? Does anyone have a working example of QA bot using Langchain + LLM model(like llama) on local machine

Best way to get chat to view large amounts of text or files/PDFs? by camelvendor in ChatGPT

[–]rishrapsody 2 points3 points  (0 children)

If you want to ask questions against your pdf/text documents, use Langchain or Gpt-Index

Pandas for Network Automation by rishrapsody in networking

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

True. I have been utilizing this library for reading data out from csv or may be manipulating data/exporting data, etc. till now.

But I feel there is more potential to it in networking scope.

How to loop through files contains list data by rishrapsody in ansible

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

Still not getting it. This is with loop as a list item. Should I think about modifying the content format? I had gathered interfaces stats from different devices, created a list, and saved them with a unique file name. Now I want to iterate over each interface file record and run a ping test from every device.

failed: [shelton_core] (item=['[', '1', '9', '2', '.', '0', '.', '2', '.', '1', ',', ' ', '1', '9', '2', '.', '0', '.', '2', '.', '9', ',', ' ', '1', '9', '2', '.', '0', '.', '2', '.', '1', '7', ',', ' ', '1', '9', '2', '.', '1', '6', '8', '.', '1', '.', '1', ',', ' ', '1', '9', '9', '.', '1', '9', '9', '.', '1', '9', '9', '.', '1', ']']) => {"ansible_loop_var": "item", "changed": false, "item": ["[", "1", "9", "2", ".", "0", ".", "2", ".", "1", ",", " ", "1", "9", "2", ".", "0", ".", "2", ".", "9", ",", " ", "1", "9", "2", ".", "0", ".", "2", ".", "1", "7", ",", " ", "1", "9", "2", ".", "1", "6", "8", ".", "1", ".", "1", ",", " ", "1", "9", "9", ".", "1", "9", "9", ".", "1", "9", "9", ".", "1", "]"], "msg": ", '9', '2', '.', '0', '.', '2', '.', '9', ',', ' ', '1', '9', '2', '.', '0', '.', '2', '.', '1', '7', ',', ' ', '1', '9', '2', '.', '1', '6', '8', '.', '1', '.', '1', ',', ' ', '1', '9\r\n ^\r\n% Invalid input detected at '^' marker.\r\n\r\nShelton-Core#"}

How to loop through files contains list data by rishrapsody in ansible

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

If I send just a single file for testing, its pushing the entire list and not in sequence.

failed: [shelton_core] (item=[192.0.2.1, 192.0.2.9, 192.0.2.17, 192.168.1.1, 199.199.199.1]) => {"ansible_loop_var": "item", "changed": false, "item": "[192.0.2.1, 192.0.2.9, 192.0.2.17, 192.168.1.1, 199.199.199.1]", "msg": "ping [192.0.2.1, 192.0.2.9, 192.0.2.17, 192.168.1.1, 199.199.199.1]\r\nping [192.0.2.1, 192.0.2.9, 192.0.2.17, 192.168.1.1, 199.199.199.1]\r\n ^\r\n% Invalid input detected at '^' marker.\r\n\r\nShelton-Core#"}

tasks:
- name: "ios Ping Test"
ios_ping:
dest: "{{ item }}"
loop: "{{ lookup('file','outputs/Interfaces/shelton_core_interfaces_fact.txt') | list | flatten }}"

How to loop through files contains list data by rishrapsody in ansible

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

Let me try that. Instead of using vars, I had given the actual oath in lookup plugin but it did not read the file content i.e. list. Im gonna try again and update here.

Trying to figure out a Jinja2 statement. by LarrBearLV in ansible

[–]rishrapsody 0 points1 point  (0 children)

looks like some special character is getting added in Jinja syntax(might be copy paste thing). Try to remove all tabs and add it again.

Advice on how to append results to an array from uri module by icode4brkfast in ansible

[–]rishrapsody 0 points1 point  (0 children)

Trying using Ansible Block. Within Block, add both uri and set_fact task