-
Notifications
You must be signed in to change notification settings - Fork 43
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
USER_EXIT_CONFIG_MODE regex filters not matching IOS #307
Comments
This regex pattern would match with 6 groups. Not sure where to add this pattern.
|
Hi @dpizzle - thanks for reporting this. You might need to add another header to https://github.com/napalm-automation/napalm-logs/blob/develop/napalm_logs/config/ios/init.yml. Looking at that file, it seems that the IOS messages currently matched would need to start with a message ID (e.g., We have some documentation for this at http://napalm-logs.com/en/latest/developers/device_profiles.html#yaml-profiles, let me know if you have any questions. |
Hi @mirceaulinic, maybe a slight shift in issue, but is there a way to distinguish between Cisco and Arista syslog messages for These both match the regex, so are reported as EOS each time -
|
Ewww are they really the exact same? 🤢 The tag (in this case I don't have a Cisco IOS to check, but looking at the expected format we currently have, it'd suggest that the usual messages from IOS usually have column after the hostname, and also include a message ID, which I don't see in your example above. See here an example: https://github.com/napalm-automation/napalm-logs/blob/develop/napalm_logs/config/ios/init.yml#L2 Do you have both Arista and Cisco IOS in your environment? If the examples you shared above are accurate, at this point, can't really think of a good work around... Perhaps start two instances of napalm-logs, one with: device_blacklist:
- ios and a second one (dedicated for IOS specifically) with: device_whitelist:
- ios See http://napalm-logs.com/en/latest/options/index.html#device-whitelist for more details. |
Hi,
The regex filters for
USER_EXIT_CONFIG_MODE
(%SYS-5-CONFIG_I) is matching against EOS messages, but not IOS. The Cisco switch is running 12.2(25)SEE4.EOS example, which matches -
IOS example, which does not match -
The text was updated successfully, but these errors were encountered: