Closed jonare77 closed 1 year ago
Hello,
In what conditions the character appears as part of the prompt? Testing the prompt regex against the device prompts you shared, the prompt is not matching the second one because of the ''
If this is an expected character on these models, we need to make a pull request to have the prompt changed. If it's some particular character you're using, the best way is to create a file under _OXIDIZEDHOME/.config/oxidized/model/junos.rb (see https://github.com/ytti/oxidized/blob/master/docs/Creating-Models.md) with just the prompt.
Something link the one below might work out as a regex
(?-mix:^([\w\(:.@-]+(\)?\s?)\*?[#>]\s?)$)
Hope it helped.
Having similar issue with Aruba Controller Aruba7010-US -- ArubaOS 8.6.0.8 (Master Controller). (WLAN001) *[mynode] # not matching configured prompt (?-mix:^([\w(:.@-]+()?\s?)[#>]\s?)$)" W, [2021-11-15T10:43:11.283637 #75179] WARN -- : aruba-group/WLAN001status no_connection, retry attempt 3 W, [2021-11-15T10:43:31.851193 #75179] WARN -- : 10.10.1.20 raised Oxidized::PromptUndetect with msg "
Hello,
In what conditions the character appears as part of the prompt? Testing the prompt regex against the device prompts you shared, the prompt is not matching the second one because of the ''
If this is an expected character on these models, we need to make a pull request to have the prompt changed. If it's some particular character you're using, the best way is to create a file under _OXIDIZEDHOME/.config/oxidized/model/junos.rb (see https://github.com/ytti/oxidized/blob/master/docs/Creating-Models.md) with just the prompt.
Something link the one below might work out as a regex
(?-mix:^([\w\(:.@-]+(\)?\s?)\*?[#>]\s?)$)
Hope it helped.
*Sorry for late answer on this issue. I think "" is used in cluster mode on Aruba controllers, so its not something I use.**
Same issue here. I've try to include the "*#" characters in some variations to aosw.rb file but no success. Do you got solved this problem?
Hi! I had the same problem and i've solved as follows:
Backup your "aosw.rb" file; Edit your "aosw.rb" file: 1- If you Aruba prompt show:
# So, edit the prompt regex: From:
prompt /^([\w\(:.@-]+(\)?\s?)[#>]\s?)$/
To: `prompt /^(\^M)?([\w(:.@-]+()\s?[\^*]?[?\w]?\s?)*?[#>]\s?)$/`
If this is not your problem, just pass to step 2.
2- Edit "post_login" statements:
From: post_login 'no paging'
To: post_login "no paging\nencryp disable\nshow running"
And comment all others "post_login" lines:
I hope it helps.
Having issues with error regarding Aruba Controllers. Used Oxidized with same units before and it worked, with the latest versions of oxidized they dont anymore. See several post with "prompt" issues. My prompts are:
Errors that are show in debug:
Both unit have login success within the oxidized/docker container. All other procurve,comware,cisco ios/asa units works.
Can anyone point me in the right direction, suppose editing the aosw file is the way to go.
Thanks in advance.