show accounting log start-seqnum 17882650
show accounting log start-seqnum 17882650
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 accounting log start-seqnum 17882650",
"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 accounting log start-seqnum 17882650",
"msg": "Success",
"code": "200",
"body": {
"TABLE_acctlog_seq": {
"ROW_acctlog_seq": {
"accountlog_seq": "17882650:Mon Jul 30 13:02:18 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test (FAILURE)\n17882651:Mon Jul 30 13:02:29 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test accounting authorization (FAILURE)\n17882652:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:added user test\n17882653:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:modified attributes for user test\n17882654:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:configure terminal ; username test password ******** (SUCCESS)\n17882655:Mon Jul 30 13:03:07 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test (SUCCESS)\n"
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show accounting log start-seqnum 17882650 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show accounting log last-index
show accounting log last-index
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 accounting log last-index",
"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 accounting log last-index",
"msg": "Success",
"code": "200",
"body": {
"last_index": 17882655
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show accounting log last-index command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show accounting log nvram last-index
show accounting log nvram last-index
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 accounting log nvram last-index",
"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 accounting log nvram last-index",
"msg": "Success",
"code": "200",
"body": {
"last_index": 17882661
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show accounting log nvram last-index command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show accounting log start-seqnum 17882650
show accounting log start-seqnum 17882650
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 accounting log start-seqnum 17882650",
"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 accounting log start-seqnum 17882650",
"msg": "Success",
"code": "200",
"body": {
"TABLE_acctlog_seq": {
"ROW_acctlog_seq": {
"accountlog_seq": "17882650:Mon Jul 30 13:02:18 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test (FAILURE)\n17882651:Mon Jul 30 13:02:29 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test accounting authorization (FAILURE)\n17882652:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:added user test\n17882653:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:modified attributes for user test\n17882654:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:configure terminal ; username test password ******** (SUCCESS)\n17882655:Mon Jul 30 13:03:07 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test (SUCCESS)\n"
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show accounting log start-seqnum 17882650 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|