-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from bigpick/develop
Added messages for user enter, exit, and writing from config mode.
- Loading branch information
Showing
9 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
messages: | ||
# 'error' should be unique and vendor agnostic. | ||
- error: USER_ENTER_CONFIG_MODE | ||
tag: SYS-5-CONFIG_E | ||
values: | ||
user: (\w+) | ||
vterm: (\w+) | ||
ip4: ([\w\d:\.]+) | ||
line: ': Enter configuration mode from console by {user} on {vterm} ({ip4})' | ||
model: NO_MODEL | ||
mapping: | ||
variables: {} | ||
static: | ||
users//user//{user}//action//enter_config_mode: True | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
messages: | ||
# 'error' should be unique and vendor agnostic. | ||
- error: USER_EXIT_CONFIG_MODE | ||
tag: SYS-5-CONFIG_I | ||
values: | ||
source: (\w+) | ||
user: (\w+) | ||
vterm: (\w+) | ||
ip4: ([\w\d:\.]+) | ||
line: 'Configured from {source} by {user} on {vterm} ({ip4})' | ||
model: NO_MODEL | ||
mapping: | ||
variables: {} | ||
static: | ||
users//user//{user}//action//exit_config_mode: True | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
messages: | ||
- error: USER_WRITE_CONFIG | ||
tag: SYS-5-CONFIG_STARTUP | ||
values: | ||
user: (\w+) | ||
vterm: (\w+) | ||
ip: ([\w\d:\.]+) | ||
path: ([\w\:\-\/]+) | ||
line: 'Startup config saved from {path} by {user} on {vterm} ({ip})' | ||
model: NO_MODEL | ||
mapping: | ||
variables: {} | ||
static: | ||
users//user//{user}//action//write_config: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<165>Oct 23 12:20:55 GeorgeSwitch ConfigAgent: %SYS-5-CONFIG_E: Enter configuration mode from console by admin on vty3 (127.0.0.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"host": "GeorgeSwitch", | ||
"yang_message": { | ||
"users": { | ||
"user": { | ||
"admin": { | ||
"action": { | ||
"enter_config_mode": true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"message_details": { | ||
"facility": 20, | ||
"pri": "165", | ||
"processName": "ConfigAgent", | ||
"host": "GeorgeSwitch", | ||
"tag": "SYS-5-CONFIG_E", | ||
"time": "12:20:55", | ||
"date": "Oct 23", | ||
"message": ": Enter configuration mode from console by admin on vty3 (127.0.0.1)", | ||
"severity": 5 | ||
}, | ||
"timestamp": 1540297255, | ||
"error": "USER_ENTER_CONFIG_MODE", | ||
"ip": "127.0.0.1", | ||
"facility": 20, | ||
"os": "eos", | ||
"yang_model": "NO_MODEL", | ||
"severity": 5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<165>Oct 23 12:23:41 GeorgeSwitch ConfigAgent: %SYS-5-CONFIG_I: Configured from console by admin on vty3 (127.0.0.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"host": "GeorgeSwitch", | ||
"yang_message": { | ||
"users": { | ||
"user": { | ||
"admin": { | ||
"action": { | ||
"exit_config_mode": true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"message_details": { | ||
"facility": 20, | ||
"pri": "165", | ||
"processName": "ConfigAgent", | ||
"host": "GeorgeSwitch", | ||
"tag": "SYS-5-CONFIG_I", | ||
"time": "12:23:41", | ||
"date": "Oct 23", | ||
"message": ": Configured from console by admin on vty3 (127.0.0.1)", | ||
"severity": 5 | ||
}, | ||
"timestamp": 1540297421, | ||
"error": "USER_EXIT_CONFIG_MODE", | ||
"ip": "127.0.0.1", | ||
"facility": 20, | ||
"os": "eos", | ||
"yang_model": "NO_MODEL", | ||
"severity": 5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<165>Oct 23 12:22:50 GeorgeSwitch ConfigAgent: %SYS-5-CONFIG_STARTUP: Startup config saved from system:/running-config by admin on vty3 (127.0.0.1). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"host": "GeorgeSwitch", | ||
"yang_message": { | ||
"users": { | ||
"user": { | ||
"admin": { | ||
"action": { | ||
"write_config": true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"message_details": { | ||
"facility": 20, | ||
"pri": "165", | ||
"processName": "ConfigAgent", | ||
"host": "GeorgeSwitch", | ||
"tag": "SYS-5-CONFIG_STARTUP", | ||
"time": "12:22:50", | ||
"date": "Oct 23", | ||
"message": ": Startup config saved from system:/running-config by admin on vty3 (127.0.0.1).", | ||
"severity": 5 | ||
}, | ||
"timestamp": 1540297370, | ||
"error": "USER_WRITE_CONFIG", | ||
"ip": "127.0.0.1", | ||
"facility": 20, | ||
"os": "eos", | ||
"yang_model": "NO_MODEL", | ||
"severity": 5 | ||
} |