show accounting log port-access
Syntax
show accounting log port-access [last <QTY-TO-SHOW> | all]
Description
Shows network user accounting log records.
Command context
Manager (#
) or Auditor (auditor>
)
Parameters
last <QTY-TO-SHOW>
Specifies how many most-recent port access accounting log records to show for the current boot. Range: 1 to 1000.
all
Selects for showing, all port access accounting records from the current boot and the previous boot.
Authority
Auditors or Administrators or local user group members with execution rights for this command. Auditors can execute this command from the auditor context (auditor>) only.
Examples
Showing port access log output. Line breaks have been added for readability.
switch# show accounting log port-access all ... ----- type=USER_ACCT msg=audit(Jan 25 2020 11:03:59.458:70) : msg='rec=ACCT_NETWORK session=PORT-ACCESS timezone=Asia/Kolkata user=NETWORK_USER auth-method=PORT-ACCESS auth-type=RADIUS service=shell isconfig=no "System-accounting-STOP-for-session-port-access User-Name = 0006000000c7, Calling-Station-Id = 00:06:00:00:00:c7, NAS-Port-Id = 1/1/2, NAS-Port = 2, Acct-Session-Id = 1579930311220, Acct-Session-Time = 128 Acct-Input-Octets = 85607360, Acct-Output-Octets = 4305, Acct-Input-Packets = 1337615, Acct-Output-Packets = 32, Acct-Input-Gigawords = 0, Acct-Output-Gigawords = 0 Acct-Terminate-Cause = NAS Request " hostname=main1 res=success' ----- ...