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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show accounting log start-seqnum 17882650
Last Log cleared/wrapped time is : (not wrapped)

17882650:Mon Jul 30 13:02:18 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test (FAILURE)
17882651:Mon Jul 30 13:02:29 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test accounting authorization (FAILURE)
17882652:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:added user test
17882653:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:modified attributes for user test
17882654:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:configure terminal ; username test password ** (SUCCESS)
17882655:Mon Jul 30 13:03:07 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test (SUCCESS)















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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show accounting log last-index
accounting-log last-index : 17882655










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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show accounting log nvram last-index
accounting-log last-index : 17882661










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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show accounting log start-seqnum 17882650
Last Log cleared/wrapped time is : (not wrapped)

17882650:Mon Jul 30 13:02:18 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test (FAILURE)
17882651:Mon Jul 30 13:02:29 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test accounting authorization (FAILURE)
17882652:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:added user test
17882653:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:modified attributes for user test
17882654:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:configure terminal ; username test password ** (SUCCESS)
17882655:Mon Jul 30 13:03:07 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test (SUCCESS)



17882650:Mon Jul 30 13:02:18 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test (FAILURE)
17882651:Mon Jul 30 13:02:29 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test accounting authorization (FAILURE)
17882652:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:added user test
17882653:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:modified attributes for user test
17882654:Mon Jul 30 13:02:56 2018:update:64.103.223.233@pts/2:admin:configure terminal ; username test password ** (SUCCESS)
17882655:Mon Jul 30 13:03:07 2018:update:64.103.223.233@pts/2:admin:configure terminal ; aaa bypass-user test (SUCCESS)