Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:dpi:bras_bng:cli:subs [2023/09/01 11:47] – elena.krasnobryzh | en:dpi:bras_bng:cli:subs [2025/10/01 07:29] (current) – elena.krasnobryzh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== subs ====== | + | ====== CLI for Subscribers Management ====== |
| + | {{indexmenu_n> | ||
| + | |||
| + | Subscriber management commands | ||
| + | |||
| + | ===== subs auth ===== | ||
| + | {{anchor: | ||
| + | Subscriber authorization status control commands. | ||
| + | The subscriber is identified with his IP-address. You can specify a single IP address or a group of addresses as CIDR or as a range of IP addresses: | ||
| + | <code bash> | ||
| + | fdpi_cli subs auth show [IP | CIDR | IP_RANGE] | ||
| + | # IP - a single specified IP-address | ||
| + | # CIDR - all subscribers from the specified subnet | ||
| + | # IP_RANGE - all subscribers from the specified range. The end of the range is NOT considered. | ||
| + | |||
| + | # Examples: | ||
| + | # IP - a specified IP-address | ||
| + | fdpi_cli subs auth show 192.168.10.10 | ||
| + | |||
| + | # CIDR | ||
| + | fdpi_cli subs auth show 10.240.34.0/ | ||
| + | fdpi_cli subs auth show 2001: | ||
| + | |||
| + | # IP_RANGE | ||
| + | fdpi_cli subs auth show 192.168.56.32 - 192.168.56.76 | ||
| + | fdpi_cli subs auth show 2001: | ||
| + | </ | ||
| + | |||
| + | ==== subs auth show ==== | ||
| + | |||
| + | The command displays the status of subscribers' | ||
| + | Displaying authorization status for all subscribers: | ||
| + | <code bash> | ||
| + | fdpi_cli subs auth show all | ||
| + | </ | ||
| + | |||
| + | Displaying authorization status for a specified IP-address or a range of IP-addresses: | ||
| + | <code bash> | ||
| + | fdpi_cli subs auth show [IP | CIDR | IP_RANGE] | ||
| + | |||
| + | # Examples: | ||
| + | # IP - a specified IP-address | ||
| + | fdpi_cli subs auth show 192.168.10.10 | ||
| + | |||
| + | # CIDR | ||
| + | fdpi_cli subs auth show 10.240.34.0/ | ||
| + | fdpi_cli subs auth show 2001: | ||
| + | |||
| + | # IP_RANGE | ||
| + | fdpi_cli subs auth show 192.168.56.32 - 192.168.56.76 | ||
| + | fdpi_cli subs auth show 2001: | ||
| + | </ | ||
| + | |||
| + | ==== subs auth set ==== | ||
| + | Sets subscribers' | ||
| + | |||
| + | General command format: | ||
| + | <code bash> | ||
| + | fdpi_cli subs auth set [ip-range] [params] | ||
| + | </ | ||
| + | '' | ||
| + | * an IPv4 or IPv6-address - setting the authorization status for a specific subscriber. | ||
| + | * IPv4/IPv6 CIDR - setting the authorization status for all subscribers of a given CIDR. | ||
| + | * range of IP-addresses - setting the authorization status for all subscribers from this range. The end of the range is NOT considered. | ||
| + | * '' | ||
| + | |||
| + | '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Examples: | ||
| + | <code bash> | ||
| + | # Setting the authorization status for 600 seconds for a specific subscriber | ||
| + | fdpi_cli subs auth set 192.168.20.30 state=auth expired=600 | ||
| + | |||
| + | # Clearing the authorization status for the specified CIDR | ||
| + | fdpi_cli subs auth set 2001: | ||
| + | |||
| + | # Clearing authorization status for all | ||
| + | fdpi_cli subs auth set all state=unk expired=0 | ||
| + | |||
| + | # Extend current authorization status by 1 hour for all IPs in the range (192.168.56.76 is excluded) | ||
| + | fdpi_cli subs auth set 192.168.56.32 - 192.168.56.76 expired=3600 | ||
| + | |||
| + | # Setting status and absolute end time for a range | ||
| + | fdpi_cli subs auth set 192.168.56.32 - 192.168.56.76 state=auth expired=2019-10-23T00: | ||
| + | </ | ||
| + | |||
| + | ==== subs auth clear ==== | ||
| + | Resetting the authorization status of subscribers. The authorization status is set to " | ||
| + | |||
| + | Resetting the authorization status for all subscribers: | ||
| + | <code bash> | ||
| + | fdpi_cli subs auth clear all | ||
| + | </ | ||
| + | |||
| + | Resetting the authorization status for a specified IP-address or range of IP-addresses: | ||
| + | <code bash> | ||
| + | fdpi_cli subs auth clear [IP | CIDR | IP_RANGE] | ||
| + | |||
| + | # Examples: | ||
| + | # IP - a specified IP-address | ||
| + | fdpi_cli subs auth clear 192.168.10.10 | ||
| + | fdpi_cli subs auth clear 2001: | ||
| + | |||
| + | # CIDR | ||
| + | fdpi_cli subs auth clear 10.240.34.0/ | ||
| + | fdpi_cli subs auth clear 2001: | ||
| + | |||
| + | # IP_RANGE - the end of the range is NOT considered. | ||
| + | fdpi_cli subs auth clear 192.168.56.32 - 192.168.56.76 | ||
| + | fdpi_cli subs auth clear 2001: | ||
| + | </ | ||
| + | |||
| + | ===== subs ping ===== | ||
| + | Sending an ICMP echo request (ping) to the subscriber. Similar to system comand '' | ||
| + | <code bash> | ||
| + | fdpi_cli -r < | ||
| + | </ | ||
| + | '' | ||
| + | |||
| + | '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Examples: | ||
| + | <code bash> | ||
| + | fdpi_cli -r 127.0.0.1 ping ip=172.168.10.20 n=3 | ||
| + | fdpi_cli -r 127.0.0.1 ping ip=172.168.10.20 n=50 len=1000 ttl=2 | ||
| + | </ | ||
| + | |||
| + | Subscriber L2 properties are taken from the UDR, but they can be overwritten (all or only some) with the following parameters: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Examples: | ||
| + | < | ||
| + | fdpi_cli -r 127.0.0.1 ping ip=172.168.10.20 mac=01: | ||
| + | fdpi_cli -r 127.0.0.1 ping ip=172.168.10.20 mac=01: | ||
| + | </ | ||
| + | |||
| + | Limitation: the command may not work in multicluster mode without aggregation. | ||
| + | |||
| + | ==== subs ping inet ==== | ||
| + | Checking the availability of the internet.\\ | ||
| + | The packet goes through the whole stack of functions and services, polysensing, | ||
| + | |||
| + | Hint: '' | ||
| + | |||
| + | ===== subs prop ===== | ||
| + | Commands for viewing and modifying L2 properties of the subscriber (replace fdpi_ctrl --ip_prop) | ||
| + | |||
| + | ==== subs prop show ==== | ||
| + | Viewing L2 subscriber properties for a given IPv4 or IPv6 address, MAC or subs_id | ||
| + | < | ||
| + | subs prop show < | ||
| + | |||
| + | Examples: | ||
| + | subs prop show 10.240.34.56 | ||
| + | subs prop show 2001: | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | subs prop show mac=< | ||
| + | |||
| + | Example: | ||
| + | subs prop show mac=02: | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | subs prop show subs_id=< | ||
| + | |||
| + | Example: | ||
| + | subs prop show subs_id=00: | ||
| + | </ | ||
| + | |||
| + | Hint: | ||
| + | < | ||
| + | fdpi_cli help subs prop show | ||
| + | </ | ||
| + | ==== subs prop set ==== | ||
| + | Modification of the subscriber' | ||
| + | For complete syntax, see: | ||
| + | < | ||
| + | fdpi_cli help subs prop set | ||
| + | </ | ||
| + | |||
| + | ==== subs prop del ==== | ||
| + | Removing all L2 properties of the specified subscriber. | ||
| + | Examples: | ||
| + | < | ||
| + | subs prop del 10.240.34.56 | ||
| + | subs prop del 2001: | ||
| + | </ | ||
| + | |||
| + | This command actually removes the IP address from the internal database. To remove a specific subscriber property, use '' | ||
| + | |||
| + | =====dev info===== | ||
| + | Displays device information. | ||
| + | <code bash> fdpi_cli dev info</ | ||
| + | Main characteristics: | ||
| + | - Device identifier and description | ||
| + | - MAC address and LAG | ||
| + | - PCI bus | ||
| + | - Driver and firmware | ||
| + | - Current MTU | ||
| + | Device capabilities: | ||
| + | - Number of queues (receive/ | ||
| + | - MTU limits | ||
| + | - Buffer sizes | ||
| + | - Maximum number of queues | ||
| + | - Descriptor limits | ||
| + | - Supported speeds | ||
| + | Flags and offload capabilities: | ||
| + | - Device flags | ||
| + | - RX offload capabilities (checksums, VLAN, RSS, etc.) | ||
| + | - TX offload capabilities (checksums, TSO, VLAN, etc.) | ||
| + | - Queue offload capabilities | ||
| + | - RSS support for different traffic types | ||
| + | Default configurations: | ||
| + | - RX/TX configuration settings | ||
| + | - Descriptor limits | ||
| + | - Port settings | ||
| + | Additional: | ||
| + | - Number of xstat counters | ||