show radius-server
show radius-server
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show radius-server",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show radius-server",
"msg": "Success",
"code": "200",
"body": {
"global_timeout": 5,
"retransmissionCount": 1,
"global_deadtime": 0,
"global_source_intf": "any available",
"server_count": 1,
"TABLE_server": {
"ROW_server": {
"server_ip": "10.77.143.170",
"auth_port": 1812,
"acct_port": 1813,
"secretKey": "********"
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show radius-server command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show radius-server directed-request
show radius-server directed-request
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show radius-server directed-request",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show radius-server directed-request",
"msg": "Success",
"code": "200",
"body": {
"radius_directedRequest_status": "disabled"
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show radius-server directed-request command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show radius-server groups test1
show radius-server groups test1
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show radius-server groups test1",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show radius-server groups test1",
"msg": "Success",
"code": "200",
"body": {
"TABLE_group": {
"ROW_group": {
"group_name": "test1",
"dead_time": 0,
"vrf_name": "management",
"TABLE_server": {
"ROW_server": {
"server_ip": "10.77.143.170",
"auth_port": 1812,
"acct_port": 1813
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show radius-server groups test1 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show radius-server sorted
show radius-server sorted
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show radius-server sorted",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show radius-server sorted",
"msg": "Success",
"code": "200",
"body": {
"global_timeout": 5,
"retransmissionCount": 1,
"global_deadtime": 0,
"global_source_intf": "any available",
"server_count": 1,
"TABLE_server": {
"ROW_server": {
"server_ip": "10.77.143.170",
"auth_port": 1812,
"acct_port": 1813,
"secretKey": "********"
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show radius-server sorted command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show radius-server statistics 10.77.143.170
show radius-server statistics 10.77.143.170
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show radius-server statistics 10.77.143.170",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": " show radius-server statistics 10.77.143.170",
"msg": "Success",
"code": "200",
"body": {
"server_state": "not monitored",
"acct_statistics": {
"acct_failed_transactions": 0,
"acct_succ_transactions": 0,
"acct_req_sent": 0,
"acct_req_timedout": 0,
"acct_resp_no_match": 0,
"acct_resp_not_processed": 0,
"acct_resp_error": 0
},
"auth_statistics": {
"auth_failed_transactions": 0,
"auth_succ_transactions": 3,
"auth_req_sent": 6,
"auth_req_timedout": 3,
"auth_resp_no_match": 0,
"auth_resp_not_processed": 0,
"auth_resp_error": 0
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show radius-server statistics 10.77.143.170 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show radius-server 10.77.143.170
show radius-server 10.77.143.170
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show radius-server 10.77.143.170",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": " show radius-server 10.77.143.170",
"msg": "Success",
"code": "200",
"body": {
"host1": "10.77.143.170",
"authen_port": 1812,
"account_port": 1813,
"share_key": "********",
"idle_tim": 0,
"test_user_name": "test",
"test_pwd": "********"
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show radius-server 10.77.143.170 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|