Open IASAH opened 1 month ago
Have you tried this? Also please use
```yaml
config
``` .
as it is hard to read otherwise
In your case it seems like you should try this:
Troubleshooting an overly greedy prompt:
Log in manually into the device. Use the same username and password or key configured for Oxidized. Execute the last command (which may be the first command to run) from which partial output is collected.
Compare the output to the partial output collected by Oxidized, focusing on the the difference that has been truncated. You can evaluate if this output could have matched the prompt regexp unexpectedly with IRB in a manner similar to the outlined in the previous section.
Adapt the prompt regexp to be more conservative if necessary in a local model override file.
We encourage you to submit a PR for any prompt issues you encounter.
excuse my delayed replay I found that Oxidized is executing all pre (enable command) commands without issue but it doesn't execute the (enable Command) so I added (enable Command) password in vars: enable: 'my switch enable password' but nothing changes can anyone till me what do I need to do els?
(Updated Issue for readability)
Can you post your full modified config again?
I have the impression you may have defined the enable variable twice (under model and globally).
You can see what oxidized does by setting input.debug
= true
:
input:
default: ssh, telnet
debug: true
For each device, it will make a log under /home/oxidized/.config/oxidized/logs/
. You can see there if oxidized sends the enable password or not.
I have Oxidized with Librenms installed via docker from https://github.com/dcbell/librenms-oxidized_docker and configured as followed
Docker network both are in the same network librenms-oxidized_default with mapped Ports for both and Working
In Librenms settings Poller both Port and Communities (priority) are configured.
In API Created New API key for Oxidized and copied it to Config file.
Then Librenms >> Global Settings>> External >> Oxidized is set and enabled like: Enable Oxidized support: Enabled URL to your Oxidized API: http://librenms_oxidized:8888 Enable config versioning access: Enabled Enable the return of groups to Oxidized: Enabled Set the default group returned: False
In (Variable Mapping) I added: os = ios os < ios os = iosxe os < ios os = iosxr os < iosxr
In the Config file I modified as followed