- Table of Contents
-
- 07-Layer 3—IP Services Command Reference
- 00-Preface
- 01-ARP commands
- 02-IP addressing commands
- 03-DHCP commands
- 04-DNS commands
- 05-IP forwarding basics commands
- 06-Fast forwarding commands
- 07-Multi-CPU packet distribution commands
- 08-Adjacency table commands
- 09-IRDP commands
- 10-IP performance optimization commands
- 11-UDP helper commands
- 12-IPv6 basics commands
- 13-IPv6 neighbor discovery commands
- 14-DHCPv6 commands
- 15-IPv6 fast forwarding commands
- 16-WAAS commands
- 17-HTTP redirect commands
- 18-Web caching commands
- Related Documents
-
Title | Size | Download |
---|---|---|
17-HTTP redirect commands | 51.77 KB |
HTTP redirect commands
display http-redirect statistics
Use display http-redirect statistics to display packet statistics for HTTP redirect.
Syntax
display http-redirect statistics [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays HTTP redirect packet statistics on all cards.
Examples
# Display HTTP redirect packet statistics for slot 1.
<Sysname> display http-redirect statistics slot 1
Slot 1:
HTTP:
Received SYN packets :1000
Sent SYN ACK packets :1000
Sent RST packets :500
Redirect node not found events :50
Assembled redirect URL failed times/total times :100/700
HTTPS:
Received SYN packets :1000
Sent SYN ACK packets :1000
Sent RST packets :500
Redirect node not found events :300
Assembled redirect URL failed times/total times :100/700
SSL handshake failed times/total times :0/700
SSL data interaction failed times/total times :0/700
Table 1 Command output
Field |
Description |
HTTP |
Packet statistics for HTTP redirect. |
Received SYN packets |
Number of SYN packets that have been received. |
Sent SYN ACK packets |
Number of SYN ACK packets that have been sent. |
Sent RST packets |
Number of RST packets that have been sent. |
Redirect node not found events |
Number of times that the system failed to find redirect nodes. |
Redirect URL assembly failures and total number of redirect URL assemblies. |
|
HTTPS |
Packet statistics for HTTPS redirect. |
SSL handshake failed/total times |
Number of SSL handshake failures, and the total number of SSL handshakes. |
SSL data interaction failed times/total times |
Number of SSL data exchange failures, and the total number of SSL data exchanges. |
Related commands
reset http-redirect statistics
http-redirect ssl-server-policy
Use http-redirect ssl-server-policy to associate an SSL server policy with the HTTPS redirect service.
Use undo http-redirect ssl-server-policy to restore the default.
Syntax
http-redirect ssl-server-policy policy-name
undo http-redirect ssl-server-policy
Default
No SSL server policy is associated with the HTTPS redirect service. The HTTPS redirect service uses a self-assigned certificate and the default SSL parameters.
Views
System view
Predefined user roles
network-admin
Parameters
policy-name: Specifies an SSL server policy by its name, a case-insensitive string of 1 to 31 characters.
Usage guidelines
HTTPS redirect is unavailable if the associated SSL server policy does not exist. You can first associate a nonexistent SSL server policy with the HTTPS redirect service and then configure the SSL server policy.
If you change the SSL server policy associated with the HTTPS redirect service, the new policy takes effect immediately.
If you perform this task multiple times, the most recent configuration takes effect.
Examples
# Associate SSL server policy policy1 with the HTTPS redirect service.
<Sysname> system-view
[Sysname] http-redirect ssl-server-policy policy1
Related commands
ssl server-policy
reset http-redirect statistics
Use reset http-redirect statistics to reset packet statistics for HTTP redirect.
Syntax
reset http-redirect statistics [ slot slot-number ]
Views
User view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command clears HTTP redirect packet statistics on all cards.
Examples
# Clear HTTP redirect packet statistics.
<Sysname> reset http-redirect statistics
# Clear HTTP redirect packet statistics for slot 1.
<Sysname> reset http-redirect statistics slot 1
Related commands
display http-redirect statistics