Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[MX] Username filtering of shmlog entries for l2tp subscribers



Article ID: KB37678 KB Last Updated: 03 Dec 2021Version: 2.0

With a default configuration, filtering of shmlog entries based on username on an L2TP network server (LNS) does not work. Filtering based on username is useful for troubleshooting unsuccessful L2TP subscriber login attempts on LNS because other filtering keys (tunnel-id, session-id, and ip-address) might not be available as the session is not established yet.

This article explains how to perform username filtering of shmlog entries for troubleshooting purposes.


The default behavior can be seen in the example below:

user@router> show subscribers
Interface             IP Address/VLAN ID                      User Name                      LS:RI
si-0/0/0.3221225472                                   default:default

root@router> show shmlog entries logname all username


With the following additional configuration:

set system services subscriber-management overrides shmlog filtering enable

After reconnecting the L2TP session, the filtering based on username works:

root@router> show shmlog entries logname all username | count
Count: 778 lines

Modification History:

2021-12-03: Corrections made based on feedback

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search