console_vty_file - openconfig/featureprofiles GitHub Wiki
Verify if required OC configuration is accepted by DUT and exposed via gNMI get
- configure and enable console logging with:
- 2 selectors:
- facility = "Local7", severity = "informational"
- facility = "Local6", severity = "alarm"
- facility = "Local5", severity = "critical"
- remote facility rewrites:
- "local7" --> "local2"
- "local6" --> "local3" Note: Facility "Local5" is not rewritten
- 2 selectors:
- Read console logging configuration and compare with pushed configuration.
Note: two selectors must be presented. - disable console logging while keeping 2 selectors configured:
- Read console logging configuration and compare with pushed configuration.
Note: two selectors must be presented.
The vty represents here terminal session - ssh, telnet.
- configure and enable vty logging with 2 selectors:
- facility = "Local7", severity = "informational"
- facility = "Local5", severity = "alarm"
- Read vty logging configuration and compare with intended configuration.
Note: two selectors must be presented. - disable vty logging while keeping 2 selectors configured:
- Read vty logging configuration and compare with intended configuration.
Note: two selectors must be presented.
- configure and enable file logging with:
- 2 selectors:
- facility = "Local7", severity = "informational"
- facility = "Local6", severity = "alarm"
- file base name logfile_1
- directory path
- log file management: number 3, maximum size 1M, max age 1440min (24h)
- remote archival to SCP destination
- 2 selectors:
- configure and enable file logging with:
- 2 selectors:
- facility = "Local5", severity = "informational"
- facility = "Local6", severity = "warning"
- file base name logfile_2
- directory path
- log file management: number 10, maximum size 10M, log file max age 1min
- 2 selectors:
- Read file logging configuration and compare with intended configuration.
- Wait 4 minutes and verify number of logfile_2 stored - should be 5
NOTE: This is NOT yet modeled in OpenConfig
- Configure and enable buffer logging with size set to 5000
- Read buffer logging configuration and compare with intended configuration.
- Change buffer logging with size set to 7000
- Read buffer logging configuration and verify that buffer size changed
- Disable buffer logging
paths:
# interface configuration
/system/logging/console/selectors/selector/config/facility:
/system/logging/console/selectors/selector/config/severity:
/system/logging/vty/selectors/selector/config/facility:
/system/logging/vty/selectors/selector/config/severity:
/system/logging/files/file/selectors/selector/config/facility:
/system/logging/files/file/selectors/selector/config/severity:
/system/logging/files/file/config/filename-prefix:
/system/logging/files/file/config/path:
/system/logging/files/file/config/max-size:
/system/logging/files/file/config/max-open-time:
/system/logging/files/file/config/rotate:
rpcs:
gnmi:
gNMI.Set:
union_replace: true
gNMI.Subscribe:
on_change: false
vRX