Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    show services sessions (Aggregated Multiservices)

    Syntax

    show services sessions<brief | extensive | terse><application-protocol protocol><count><destination-port destination-port><destination-prefix destination-prefix><interface interface-name><limit number><protocol protocol><service-set service-set><source-port source-port><source-prefix source-prefix>

    Release Information

    Command introduced in Junos OS Mobility Release 10.4.

    Support for aggregated multiservices (AMS) introduced in Junos OS Mobility Release 11.2W.

    Description

    Display the session information for each service set in each member interface of the AMS interface.

    Options

    none

    Display standard information about all sessions.

    brief | extensive | terse

    (Optional) Display the specified level of output.

    application-protocol

    (Optional) Display information about one of the following application protocols:

    • ftp—File Transfer Protocol
    • icmp—Internet Control Message Protocol
    • pptp—Point-to-Point Tunneling Protocol
    • rtsp—Real-Time Streaming Protocol
    • sqlnet—SQLNet
    • tcp—Transmission Control Protocol
    • traceroute—Traceroute
    • tftp—Trivial File Transfer Protocol
    • udp—User Datagram Protocol
    count

    (Optional) Display a count of the matching entries.

    destination-port destination-port

    (Optional) Display information for a particular destination port. The range of values is from 0 to 65535.

    destination-prefix destination-prefix

    (Optional) Display information for a particular destination prefix.

    interface interface-name

    (Optional) Display information about a particular interface. On M Series and T Series routers, interface-name can be ms-fpc/pic/port or rspnumber. On J Series routers, interface-name is ms-pim/0/port.

    limit number

    (Optional) Maximum number of entries to display.

    protocol protocol

    (Optional) Display information about one of the following IP types:

    • number—Numeric protocol value from 0 to 255
    • ah—IPsec Authentication Header protocol
    • egp—An exterior gateway protocol
    • esp—IPsec Encapsulating Security Payload protocol
    • gre—A generic routing encapsulation protocol
    • icmp—Internet Control Message Protocol
    • icmp6—Internet Control Message Protocol version 6
    • igmp—Internet Group Management Protocol
    • ipip—IP-over-IP Encapsulation Protocol
    • ospf—Open Shortest Path First protocol
    • pim—Protocol Independent Multicast protocol
    • rsvp—Resource Reservation Protocol
    • sctp—Stream Control Transmission Protocol
    • tcp—Transmission Control Protocol
    • udp—User Datagram Protocol
    service-set service-set

    (Optional) Display information for a particular service set.

    source-port source-port

    (Optional) Display information for a particular source port. The range of values is from 0 to 65535.

    source-prefix source-prefix

    (Optional) Display information for a particular source prefix.

    Required Privilege Level

    view

    List of Sample Output

    show services sessions
    show services sessions brief
    show services sessions interface mams-5/0/0 extensive
    show services sessions terse
    show services sessions count

    Output Fields

    Table 1 lists the output fields for the show services sessions command. Output fields are listed in the approximate order in which they appear.

    Table 1: show services sessions Output Fields

    Field Name

    Field Description

    Interface

    Name of the interface.

    Session ID

    Session ID that uniquely identifies the session.

    ALG

    Name of the application.

    Flags

    Session flag for the ALG:

    • 0x1—Found an existing session.
    • 0x2—Reached session or flow limit.
    • 0x3—No memory available for new sessions.
    • 0x4—No free session ID available.

    IP Action

    Flag indicating whether IP action has been set for the session.

    Offload

    Flag indicating whether the session has been offloaded to the Packet Forwarding Engine.

    Asymmetric

    Flag indicating whether the session is unidirectional.

    Service set

    Name of a service set. Individual empty service sets are not displayed.

    Sessions Count

    Number of sessions.

    Flow or Flow Prot

    Protocol used for this session.

    Source

    Source prefix of the flow in the format source-prefix:port. For ICMP flows, port information is not displayed.

    Dest

    Destination prefix of the flow. For ICMP flows, port information is not displayed.

    State

    Status of the flow:

    • Drop—Drop all packets in the flow without response.
    • Forward—Forward the packet in the flow without looking at it.
    • Reject—Drop all packets in the flow with response.
    • Watch—Inspect packets in the flow.
    • Bypass—Bypass packets in the flow.
    • Unknown—Unknown flow status.

    Packet Direction

    Direction of the flow: ingress (I), egress (O) or unknown.

    Frm count

    Number of frames in the flow.

    Sample Output

    show services sessions

    user@host> show services sessions
    mams-4/0/0
    Session: 12486462, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.2:27    ->    20.20.59.15:10001 Forward  I           16018
    UDP        20.20.59.15:10001 ->    40.1.31.221:1025  Forward  O               0
    Session: 12472092, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.2:6     ->   20.20.58.250:10001 Forward  I           16006
    UDP       20.20.58.250:10001 ->    40.1.31.220:1025  Forward  O               0
    Session: 587492, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.2:18    ->     20.20.59.6:10001 Forward  I           16004
    UDP         20.20.59.6:10001 ->    40.1.31.218:1025  Forward  O               0
    Session: 12492907, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.2:15    ->     20.20.59.3:10001 Forward  I           16011
    UDP         20.20.59.3:10001 ->    40.1.31.219:1025  Forward  O               0
    Session: 561592, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.2:3     ->   20.20.58.247:10001 Forward  I           16014
    UDP       20.20.58.247:10001 ->    40.1.31.216:1025  Forward  O               0
    Session: 12449254, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.2:12    ->     20.20.59.0:10001 Forward  I           16028
    UDP         20.20.59.0:10001 ->    40.1.31.217:1025  Forward  O               0
    [...output truncated...]
    mams-4/1/0
    Session: 12243036, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.3:25    ->    20.20.59.13:10001 Forward  I           16017
    UDP        20.20.59.13:10001 ->   40.1.119.226:1025  Forward  O               0
    Session: 12243956, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.3:28    ->    20.20.59.16:10001 Forward  I           16023
    UDP        20.20.59.16:10001 ->   40.1.119.223:1025  Forward  O               0
    Session: 12199229, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.3:22    ->    20.20.59.10:10001 Forward  I           16052
    UDP        20.20.59.10:10001 ->   40.1.119.225:1025  Forward  O               0
    Session: 12197363, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.3:13    ->     20.20.59.1:10001 Forward  I           16041
    UDP         20.20.59.1:10001 ->   40.1.119.224:1025  Forward  O               0
    Session: 12486923, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.3:16    ->     20.20.59.4:10001 Forward  I           15993
    UDP         20.20.59.4:10001 ->   40.1.119.221:1025  Forward  O               0
    Session: 12212620, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.3:7     ->   20.20.58.251:10001 Forward  I           16020
    UDP       20.20.58.251:10001 ->   40.1.119.222:1025  Forward  O               0
    [...output truncated...]
    mams-5/0/0
    Session: 12453894, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.4:8     ->   20.20.58.252:10001 Forward  I           16021
    UDP       20.20.58.252:10001 ->    40.1.211.60:1025  Forward  O               0
    Session: 12485633, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.4:29    ->    20.20.59.17:10001 Forward  I           16009
    UDP        20.20.59.17:10001 ->    40.1.211.61:1025  Forward  O               0
    Session: 12434995, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.4:20    ->     20.20.59.8:10001 Forward  I           16023
    UDP         20.20.59.8:10001 ->    40.1.211.58:1025  Forward  O               0
    Session: 12478616, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.4:17    ->     20.20.59.5:10001 Forward  I           16012
    UDP         20.20.59.5:10001 ->    40.1.211.59:1025  Forward  O               0
    Session: 12411414, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.4:14    ->     20.20.59.2:10001 Forward  I           15954
    UDP         20.20.59.2:10001 ->    40.1.211.57:1025  Forward  O               0
    Session: 12348030, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.4:11    ->   20.20.58.255:10001 Forward  I           16002
    UDP       20.20.58.255:10001 ->    40.1.211.55:1025  Forward  O               0
    [...output truncated...]
    
    

    show services sessions brief

    The output for the show services flows brief command is identical to that for the show services sessions command. For sample output, see show services sessions.

    show services sessions interface mams-5/0/0 extensive

    user@host> show services sessions interface mams-5/0/0 extensive
    mams-5/0/0
    Session: 12453894, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    NAT PLugin Data:
      NAT Action:   Translation Type - NAPT-44
        NAT source      10.10.10.4:8       ->     40.1.211.60:1025
    UDP         10.10.10.4:8     ->   20.20.58.252:10001 Forward  I           20043
      Byte count: 27077166
      Flow role: Initiator, Timeout: 0
    UDP       20.20.58.252:10001 ->    40.1.211.60:1025  Forward  O               0
      Byte count: 0
      Flow role: Responder, Timeout: 0
    Session: 12485633, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    
    NAT PLugin Data:
      NAT Action:   Translation Type - NAPT-44
        NAT source      10.10.10.4:29      ->     40.1.211.61:1025
    UDP         10.10.10.4:29    ->    20.20.59.17:10001 Forward  I           20031
      Byte count: 27076614
      Flow role: Initiator, Timeout: 0
    UDP        20.20.59.17:10001 ->    40.1.211.61:1025  Forward  O               0
      Byte count: 0
      Flow role: Responder, Timeout: 0
    Session: 12434995, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    
    NAT PLugin Data:
      NAT Action:   Translation Type - NAPT-44
        NAT source      10.10.10.4:20      ->     40.1.211.58:1025
    UDP         10.10.10.4:20    ->     20.20.59.8:10001 Forward  I           20045
      Byte count: 27077258
      Flow role: Initiator, Timeout: 0
    UDP         20.20.59.8:10001 ->    40.1.211.58:1025  Forward  O               0
      Byte count: 0
      Flow role: Responder, Timeout: 0
    Session: 12478616, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    [...output truncated...]
    
    

    show services sessions terse

    user@router> show services sessions terse
    mams-4/0/0
    Session: 12486462, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.2:27    ->    20.20.59.15:10001 Forward  I           23320
    UDP        20.20.59.15:10001 ->    40.1.31.221:1025  Forward  O               0
    Session: 12472092, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.2:6     ->   20.20.58.250:10001 Forward  I           23308
    UDP       20.20.58.250:10001 ->    40.1.31.220:1025  Forward  O               0
    Session: 587492, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.2:18    ->     20.20.59.6:10001 Forward  I           23306
    UDP         20.20.59.6:10001 ->    40.1.31.218:1025  Forward  O               0
    Session: 12492907, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.2:15    ->     20.20.59.3:10001 Forward  I           23313
    UDP         20.20.59.3:10001 ->    40.1.31.219:1025  Forward  O               0
    Session: 561592, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.2:3     ->   20.20.58.247:10001 Forward  I           23316
    UDP       20.20.58.247:10001 ->    40.1.31.216:1025  Forward  O               0
    [...output truncated...]
    mams-4/1/0
    Session: 12243036, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.3:25    ->    20.20.59.13:10001 Forward  I           23319
    UDP        20.20.59.13:10001 ->   40.1.119.226:1025  Forward  O               0
    Session: 12243956, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.3:28    ->    20.20.59.16:10001 Forward  I           23325
    UDP        20.20.59.16:10001 ->   40.1.119.223:1025  Forward  O               0
    Session: 12199229, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.3:22    ->    20.20.59.10:10001 Forward  I           23354
    UDP        20.20.59.10:10001 ->   40.1.119.225:1025  Forward  O               0
    Session: 12197363, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.3:13    ->     20.20.59.1:10001 Forward  I           23343
    UDP         20.20.59.1:10001 ->   40.1.119.224:1025  Forward  O               0
    Session: 12486923, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.3:16    ->     20.20.59.4:10001 Forward  I           23295
    UDP         20.20.59.4:10001 ->   40.1.119.221:1025  Forward  O               0
    [...output truncated...]
    mams-5/0/0
    Session: 12453894, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.4:8     ->   20.20.58.252:10001 Forward  I           23323
    UDP       20.20.58.252:10001 ->    40.1.211.60:1025  Forward  O               0
    Session: 12485633, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.4:29    ->    20.20.59.17:10001 Forward  I           23311
    UDP        20.20.59.17:10001 ->    40.1.211.61:1025  Forward  O               0
    Session: 12434995, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.4:20    ->     20.20.59.8:10001 Forward  I           23325
    UDP         20.20.59.8:10001 ->    40.1.211.58:1025  Forward  O               0
    Session: 12478616, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.4:17    ->     20.20.59.5:10001 Forward  I           23314
    UDP         20.20.59.5:10001 ->    40.1.211.59:1025  Forward  O               0
    Session: 12411414, ALG: none, Flags: 0x0000, IP Action: no, Offload: no, Asymmetric: no
    UDP         10.10.10.4:14    ->     20.20.59.2:10001 Forward  I           23256
    UDP         20.20.59.2:10001 ->    40.1.211.57:1025  Forward  O               0
    [...output truncated...]
    
    

    show services sessions count

    user@host> show services sessions count
    Interface   Service set                                          Sessions count
    mams-4/0/0  Src_static                                                    10000
    mams-4/1/0  Src_static                                                    10000
    mams-5/0/0  Src_static                                                    10000
    
    

    Published: 2011-06-28