-
Notifications
You must be signed in to change notification settings - Fork 7
Description
When using the jasonrpc.py script with RADIUS MGMT enabled on EXOS version 22.7 and greater, the following error/output is seen:
Enter remote system IP address: 10...**
Enter remote system username: administrator
Remote system password:
Enter EXOS cli: save
JSONRPC Response for: save
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"error": "error processing command save 'NoneType' object has no attribute 'group'"
}
}
Downgrading switch to 22.6 produces correct results (with RADIUS MGMT enabled):
Enter remote system IP address: 10...**
Enter remote system username: administrator
Remote system password:
Enter EXOS cli: save
JSONRPC Response for: save
{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"CLIoutput": "The configuration file ty_jsoncli.cfg already exists.\nSaving configuration ty_jsoncli.cfg on master ....... done!\nConfiguration saved to ty_jsoncli.cfg successfully.\n"
},
{
"status": "SUCCESS",
"useConfig": {
"msmAName": "ty_jsoncli.cfg",
"msmBName": null,
"name": "ty_jsoncli",
"switchPortInitMode": 0
}
}
]
}
Formatted CLIoutput Display
The configuration file ty_jsoncli.cfg already exists.
Saving configuration ty_jsoncli.cfg on master ....... done!
Configuration saved to ty_jsoncli.cfg successfully.
-tested with python 3.6
-issue also seen in EXOS 30.x
-issue only seen when radius mgmt access is used on v22.7 and greater
-any show or commit command produces 'NoneType' object has no attribute 'group' error
-authentication valid
-submitting issue here to help rule out script as potential issue
X460G2-24t-G4.13 # sh log
05/13/2020 23:09:20.52 Info:AAA.authPass Login passed for user administrator through app (10...**)
Module aaa configuration.
configure radius mgmt-access primary server 10...** 1812 client-ip 10...** vr VR-Mgmt
configure radius mgmt-access primary shared-secret encrypted "#################"
enable radius mgmt-access
Steps to reproduce:
- Load switch switch EXOS 22.7 or greater
- Configure switch for RADIUS MGMT authentication
- Run jsoncli.py against switch