Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show security nat resource-usage source-pool

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show security nat resource-usage source-pool
all | source-pool-name
logical-system logical-system-name | root logical system

Description

Display source NAT pool usage information. In pools without Port Address Translation (PAT), information about IP addresses is displayed. In pools with PAT, information about ports is displayed.

Options

all

Display resource use information for all source NAT pools.

source-pool-name

Display resource use information for the specified source NAT pool.

logical-system logical-system-name

Display resource use information for the source NAT pools in the specified logical system.

root-logical-system

Display resource use information for the source NAT pools in the root logical system.

Required Privilege Level

view

Output Fields

Table 1 lists the output fields for the show security nat resource-usage source-pool command. Output fields are listed in the approximate order in which they appear. You can use the clear security nat statistics command to reset the peak usage statistics.

Table 1: show security nat resource-usage source-pool Output Fields

Field Name

Field Description

Pool

Name of the pool.

Address

Address of the pool.

Factor-index

Port pool index.

Total address

Number of addresses in the pool.

Starting in Junos OS Release 15.1X49-D90 and Junos OS Release 17.3R1, the total number of addresses for pools with IPv6 prefixes is shown as zero (0).

Port-range

Number of ports allocated at a time.

Used

Number of used resources in the pool.

Avail

Number of available resources in the pool.

Starting in Junos OS Release 15.1X49-D90 and Junos OS Release 17.3R1, the total number of available resources for pools with IPv6 prefixes is shown as 0.

Usage

Percent of resources used. In a PAT pool, use includes single and twin ports.

Current usage

Percent of current resources used.

Peak usage

Percent of resources used during the peak date and time.

Total

Number of used and available resources.

Total ports

Number of used and available ports.

Port-overloading-factor

Port overloading capacity for the pool.

Sample Output

show security nat resource-usage resource-pool all

content_copy zoom_out_map
user@host> show security nat resource-usage source-pool all 

PAT pools(including address-shared pool) port utilization:
Pool      Address          Used       Avail      Total      Usage
SpoolA        512       2387968    29593600   31981568         7%
SpoolB        128        393216      655360    1048576        38%

Non-PAT pools address utilization:
Pool         Used    Avail    Total   Usage
Spool1        300     3796     4096      7%
Spool2        512      512     1024     50%


show security nat resource-usage resource-pool pool-name (Without PAT)

content_copy zoom_out_map
user@host> show security nat resource-usage source-pool Spool1 
Logical system: root
Peak usage: 60% @ 2012-08-26 20:16:20 UTC

Pool         Used     Avail     Total    Usage
Spool1        300      3796      4096       7%


show security nat resource-usage resource-pool pool-name (with PAT)

content_copy zoom_out_map
user@host> show security nat resource-usage source-pool sp3
Logical system: root
Pool name: sp3
Total address: 2      
Port-overloading-factor: 2
Total ports: 258048 Used: 60563  Avail: 197485
Current usage: 23%   Peak usage: 35% at 2012-11-12 20:15:26 CST
  Address    Factor-index Port-range          Used       Avail       Total Usage    
  192.0.2.113                     
             0            Single Ports       30001       32463       62464   48%   
             -            Alg Ports            462        1586        2048   22%   
             1            Single Ports           0       62464       62464    0%   
             -            Alg Ports              0        2048        2048    0%   
             Sum          Single Ports       30001       94927      124928   24%   
             -            Alg Ports            462        3634        4096   11%
  192.0.2.114                     
             0            Single Ports       29600       32864       62464   47%   
             -            Alg Ports            500        1548        2048   24%   
             1            Single Ports           0       62464       62464    0%   
             -            Alg Ports              0        2048        2048    0%   
             Sum          Single Ports       29600       95328      124928   23%      
             -            Alg Ports            500        3596        4096   12%        

Release Information

Command introduced in Junos OS Release 12.1X45-D10.

Change History Table

Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.

Release
Description
15.1X49-D90
Starting in Junos OS Release 15.1X49-D90 and Junos OS Release 17.3R1, the total number of addresses for pools with IPv6 prefixes is shown as zero (0).
15.1X49-D90
Starting in Junos OS Release 15.1X49-D90 and Junos OS Release 17.3R1, the total number of available resources for pools with IPv6 prefixes is shown as 0.
footer-navigation