Examples
These are some of
the options for the
show subscriber
session command in the
EXEC mode:
RP/0/RSP0/CPU0:router# show subscriber session all
RP/0/RSP0/CPU0:router# show subscriber session all summary location 0/1/CPU0
RP/0/RSP0/CPU0:router# show subscriber session filter vrf vrf1 location 0/1/CPU0
RP/0/RSP0/CPU0:router# show subscriber session subscriber-label 40
This is the sample
output of the
show subscriber session
all command:
Wed Jan 23 10:20:58.344 GMT
Codes: IN - Initialize, CN - Connecting, CD - Connected, AC - Activated,
ID - Idle, DN - Disconnecting, ED - End
Type Interface State Subscriber IP Addr / Prefix
LNS Address (Vrf)
--------------------------------------------------------------------------------
PPPoE:PTA Gi0/1/0/0.pppoe1 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe2 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe3 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe1 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe2 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe3 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe1 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe2 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe3 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe1 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe2 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe3 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe4 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe5 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe6 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe4 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe5 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe6 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe4 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe5 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe6 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe4 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe5 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe6 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe7 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe8 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe9 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe7 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe8 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe9 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe7 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe8 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe9 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe7 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe8 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe9 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe10 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe11 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe12 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe10 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe11 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe12 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe10 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe11 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe12 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe10 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe11 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe12 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe13 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe14 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe15 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe13 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe14 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe15 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe13 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe14 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe15 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe13 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe14 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe15 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe16 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe17 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.pppoe18 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe16 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe17 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.1.pppoe18 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe16 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe17 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.2.pppoe18 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe16 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe17 AC 100.0.0.1 (default)
PPPoE:PTA Gi0/1/0/0.3.pppoe18 AC 100.0.0.1 (default)
This table
describes the significant fields shown in the display.
Table 2. show
subscriber session Field Descriptions
Field
|
Description
|
Type
|
Specifies
the subscriber session type.
|
Interface
|
Specifies
the interface type.
|
State
|
Specifies
the states of the subscriber session such as initiate, connecting, connected,
activated, disconnected, idle, end.
|
Subscriber
IP Addr / Prefix LNS Address (Vrf)
|
Specifies
the IP address of the subscriber interface.
|
This is the sample output for the show subscriber session command in EXEC mode:
RP/0/0/CPU0:server#show subscriber session all detail internal location$
[14:09:18.244 UTC Thu Mar21 13 2019] +++
Interface: Bundle-Ether2.111.ip1
Circuit ID: Unknown
Remote ID: Unknown
Type: IP: DHCP-trigger
IPv4 State: Up, Thu Mar 21 17:26:42 2019
IPv4 Address: 95.1.10.133, VRF: vrf1
IPv4 Up helpers: 0x00000040 {IPSUB}
IPv4 Up requestors: 0x00000040 {IPSUB}
Mac Address: 0000.0201.8d8f
Account-Session Id: 00000001
Nas-Port: Unknown
User name: 0000.0201.8d8f
Formatted User name: unknown
Client User name: unknown
Outer VLAN ID: 11
Inner VLAN ID: 10
Subscriber Label: 0x00000040
Created: Thu Mar 21 17:26:40 2019
State: Activated
Authentication: unauthenticated
Authorization: authorized
Ifhandle: 0x00000b20
Session History ID: 1
Access-interface: Bundle-Ether2.111
SRG Flags: 0x00404000(M)
Policy Executed:
Session Accounting:
Acct-Session-Id: 00000001
Method-list: default
Accounting started: Thu Mar 21 18:30:43 2019
Interim accounting: On, interval 10 mins
Last successful update: Fri Mar 22 09:28:36 2019
Next update in: 00:00:01 (dhms)
Last update sent: Fri Mar 22 09:28:36 2019
Updates sent: 40
Updates accepted: 40
Updates rejected: 0
Update send failures: 55
Service Accounting: TurboAcctSvc
Acct-Session-Id: 00017701
Method-list: ACCT
Accounting started: Thu Mar 21 18:31:24 2019
Interim accounting: On, interval 10 mins
Last successful update: Never
Next update in: 00:08:36 (dhms)
Last update sent: Fri Mar 22 10:07:11 2019
Updates sent: 43
Updates accepted: 0
Updates rejected: 43
Update send failures: 53
Last COA request received: unavailable
User Profile received from AAA:
Attribute List: 0x1500ddf0
1: ip-vrf len= 4 value= vrf1
2: addr-pool len= 9 value= pool-vrf1
3: ipv6-enable len= 4 value= 1(1)
Services:
Name : GEO_IP_2-vrf1
Service-ID : 0x400001d
Type : Multi Template
Status : Applied
-------------------------
Name : TurboAcctSvc
Service-ID : 0x4000011
Type : Multi Template
Status : Applied
-------------------------
[Event History]
Mar 21 17:26:42.432 SUBDB produce done
Mar 21 17:26:42.432 IPv4 Up
In the following table, the descriptions for different SRG flags is provided:
SRG Flags
|
SRG Flag Values
|
Description
|
IEDGE_SRG_FLAG_NONE
|
0x00000000
|
SRG function is not supported.
|
IEDGE_SRG_MASTER_DEL_PENDING
|
0x00000001
|
Deletion is pending for SRG Primary Subscriber.
|
IEDGE_SRG_MASTER_EOMS_INTF_PENDING
|
0x00000002
|
EOMS is pending.
|
IEDGE_SRG_MASTER_EOMS_INTF_RECEIVED
|
0x00000004
|
EOMS is received.
|
IEDGE_SRG_MASTER_EOMS_DEL_PENDING
|
0x00000008
|
EOMS is pending because there is delayed delete send for the session.
|
IEDGE_SRG_SENT_TO_TXLIST
|
0x00000010
|
Session is sent over txlist successfully.
|
IEDGE_SRG_DONT_SEND_TO_TXLIST
|
0x00000020
|
Don't send this session over txlist.
|
IEDGE_SRG_ENCODE_DONE_IN_TXLIST
|
0x00000040
|
Encode callback is completed for this session in txlist.
|
IEDGE_SRG_SKIP_INTF_ROLE_CHECK
|
0x00000080
|
Skip INTF-ROLE-CHECK to push data over txlist.
|
IEDGE_SRG_TXLIST_ENFORCE_REPOSITION
|
0x00000100
|
Reposition entry in txlist.
|
IEDGE_SRG_SLAVE_SEND_NACK
|
0x00000200
|
SRG-SUBORDINATE has send NACK before delete.
|
IEDGE_SRG_OPCODE_FLAG_NONE
|
0x00000400
|
No SRG sync.
|
IEDGE_SRG_OPCODE_FLAG_UPDATE
|
0x00000800
|
OPCODE flag is created or updated.
|
IEDGE_SRG_OPCODE_FLAG_DELETE
|
0x00001000
|
OPCODE flag is deleted.
|
IEDGE_SRG_STATE_FLAG_NONE
|
0x00002000
|
SRG state is none.
|
IEDGE_SRG_STATE_FLAG_MASTER
|
0x00004000
|
SRG State Primary flags.
|
IEDGE_SRG_STATE_FLAG_MASTER_IN_TXLIST
|
0x00008000
|
State Primary flags in the txlist.
|
IEDGE_SRG_STATE_FLAG_SLAVE
|
0x00010000
|
SRG State Subordinate flags.
|
IEDGE_SRG_ROLE_CHANGE
|
0x00020000
|
SRG role change flags.
|
IEDGE_SRG_FC_STATE_INFLIGHT
|
0x00040000
|
SRG flow control flags.
|
IEDGE_SRG_STATE_FLAG_INVALID
|
0x00080000
|
SRG State flag is invalid.
|
IEDGE_SRG_STATE_FLAG_SESSION_RESTORE
|
0x00100000
|
SRG State Session Restore flag.
|
-
IEDGE_NONSRG_INTERIM_ACCT_TRIGGER
-
IEDGE_NONSRG_SESSION_ESTABLISHED
-
IEDGE_NONSRG_IPV4_ADDR_SET
-
IEDGE_NONSRG_IPV6_ADDR_SET
-
IEDGE_NONSRG_IPV6_PD_SET
-
IEDGE_NONSRG_IPV6_PREFIX_SET
|
-
0x00200000
-
0x0400000
-
0x00800000
-
0x01000000
-
0x02000000
-
0x04000000
|
This is set per subscriber when the first AF comes up. Make sure to set this once in the life cycle of subscriber.
|
This is the sample output of the show subscriber session all username command:
RP/0/0/CPU0:server#show subscriber session all username
Thu Mar 13 16:25:21.861 IST
Codes: IN - Initialize, CN - Connecting, CD - Connected, AC - Activated,
ID - Idle, DN - Disconnecting, ED - End
Username Interface State Subscriber IP Addr / Prefix
LNS Address (Vrf)
--------------------------------------------------------------------------------
basic@cisco.com Gi0/0/0/0.pppoe1 AC 10.0.0.2 (default)
basic@cisco.com Gi0/0/0/0.pppoe2 AC 10.0.0.3 (default)
basic@cisco.com Gi0/0/0/0.pppoe3 AC 10.0.0.1 (default)
basic@cisco.com Gi0/0/0/0.1.pppoe1 AC 10.0.0.4 (default)
This example shows the detailed information about all the subscriber sessions including service accounting information.
RP/0/RSP0/CPU0:router# show subscriber session all detail
Interface: Bundle-Ether12.125.ip643
Circuit ID: Unknown
Remote ID: 00066c9ced63ef20
Type: IP: DHCP-trigger
IPv6 State: Up, Fri Feb 8 16:42:57 2013
IPv6 Address: 2001:2::b246, VRF: default
Delegated IPv6 Prefix: 3000:2:0:8546::/64, VRF: default
IPv6 Interface ID: 0004007d000c (30 30 30 34 30 30 37 64 30 30 30 63)
Mac Address: 0010.6401.0102
Account-Session Id: 00008ad2
Nas-Port: Unknown
User name: 0010.6401.0102
Outer VLAN ID: 125
Subscriber Label: 0x00000046
Created: Fri Feb 8 16:42:57 2013
State: Activated
Authentication: unauthenticated
Access-interface: Bundle-Ether12.125
Policy Executed:
policy-map type control subscriber BNG-Test
event Session-Start match-first [at Fri Feb 8 16:42:57 2013]
class type control subscriber PPPoE do-until-failure [Failed]
class type control subscriber IPoE-DS do-until-failure [Succeeded]
1 activate dynamic-template IPoE [Succeeded]
10 authorize aaa list default [Succeeded]
15 activate dynamic-template test-svc1 [Succeeded]
16 activate dynamic-template test-svc2 [Succeeded]
Session Accounting:
Acct-Session-Id: 00008ad2
Method-list: default
Accounting started: Fri Feb 8 16:43:27 2013
Interim accounting: Off
Service Accounting: AcctTurbo1G
Acct-Session-Id: 00008ad3
Method-list: default
Accounting started: Fri Feb 8 16:43:27 2013
Interim accounting: On, interval 2 mins
Last successful update: Never
Next update in: 00:01:48 (dhms)
Service Accounting: test-svc3
Acct-Session-Id: 00008ad4
Method-list: default
Accounting started: Fri Feb 8 16:43:27 2013
Interim accounting: On, interval 2 mins
Last successful update: Never
Next update in: 00:01:48 (dhms)
Service Accounting: svcAcct
Acct-Session-Id: 00008ad5
Method-list: default
Accounting started: Fri Feb 8 16:43:27 2013
Interim accounting: Off
Service Accounting: test-svc1
Acct-Session-Id: 00008ad6
Method-list: default
Accounting started: Fri Feb 8 16:43:27 2013
Interim accounting: On, interval 2 mins
Last successful update: Never
Next update in: 00:01:48 (dhms)
Service Accounting: test-svc2
Acct-Session-Id: 00008ad7
Method-list: default
Accounting started: Fri Feb 8 16:43:27 2013
Interim accounting: On, interval 2 mins
Last successful update: Never
Next update in: 00:01:48 (dhms)
Last COA request received: unavailable
This sample output
of
show subscriber session
all command, displays the active IPv4 or IPv6 client sessions for
a dual-stack configuration.
RP/0/RSP0/CPU0:router# show subscriber session all
Tue Jan 29 12:49:25.237 UTC
Codes: IN - Initialize, CN - Connecting, CD - Connected, AC - Activated,
ID - Idle, DN - Disconnecting, ED - End
Type Interface State Subscriber IP Addr / Prefix
LNS Address (Vrf)
--------------------------------------------------------------------------------
IP:DHCP BE1.10.ip22 AC 10.10.10.10 (default)
2001::2 (default)
This sample output
of
show subscriber session all
detail command, displays the detailed information of the active
IPv4 or IPv6 client sessions for a dual-stack configuration.
RP/0/RSP0/CPU0:router# show subscriber session all detail
Tue Jan 29 12:49:27.752 UTC
Interface: Bundle-Ether1.10.ip22
Circuit ID: Unknown
Remote ID: Unknown
Type: IP: DHCP-trigger
IPv4 State: Up, Tue Jan 29 12:46:32 2013
IPv4 Address: 10.10.10.10, VRF: default
IPv6 State: Up, Tue Jan 29 12:46:42 2013
IPv6 Address: 2001::2, VRF: default
IPv6 Interface ID: ..d..... (02 00 64 ff fe 01 01 02)
Mac Address: 0000.6401.0102
Account-Session Id: 0000001c
Nas-Port: Unknown
User name: 0000.6401.0102
Outer VLAN ID: 10
Subscriber Label: 0x00000055
Created: Tue Jan 29 12:46:32 2013
State: Activated
Authentication: unauthenticated
Access-interface: Bundle-Ether1.10
Policy Executed:
policy-map type control subscriber pm-src-mac
event Session-Start match-all [at Tue Jan 29 12:46:32 2013]
class type control subscriber dual_stack_class_map do-all [Succeeded]
1 activate dynamic-template Dual_stack_IPoE [Succeeded]
2 authorize aaa list default [Succeeded]
Session Accounting:
Acct-Session-Id: 0000001c
Method-list: default
Accounting started: Tue Jan 29 12:46:32 2013
Interim accounting: On, interval 1 mins
Last successful update: Tue Jan 29 12:48:34 2013
Next update in: 00:00:06 (dhms)
Last COA request received: unavailable