You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'"
}
}
Enter remote system IP address: 10...**
Enter remote system username: administrator
Remote system password:
Enter EXOS cli: save
JSONRPC Response for: save
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...**)
I was getting the same error message when using the JsonRPC.cli method from jsonrpc.py, albeit with a different configuration. In my case, passing "params" as a list instead of a string fixed the error. The comments say you can pass a single command as a string, but this is incorrect.
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:
The text was updated successfully, but these errors were encountered: