Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add template: Huawei vrp display telnet server status #1857

27 changes: 27 additions & 0 deletions ntc_templates/templates/huawei_vrp_display_http_server.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Value HTTP_SERVER_STATUS (\S+)
Value HTTP_SERVER_PORT (\d+\(\d+\))
Value HTTP_TIMEOUT_INTERVAL (\d+)
Value CURRENT_ONLINE_USERS (\d+)
Value MAXIMUM_USERS_ALLOWED (\d+)
Value HTTPS_SERVER_STATUS (\S+)
Value HTTPS_SERVER_PORT (\d+\(\d+\))
Value HTTP_SSL_POLICY (\S+)
Value HTTP_IPV6_SERVER_STATUS (\S+)
Value HTTP_IPV6_SERVER_PORT (\d+\(\d+\))
Value HTTPS_IPV6_STATUS (\d+\(\d+\))
Value HTTP_SERVER_SOURCE_ADDRESS (\S+)

Start
^\s*HTTP\s*Server\s*Status\s*:\s*${HTTP_SERVER_STATUS}
^\s*HTTP\s*Server\s*Port\s*:\s*${HTTP_SERVER_PORT}
^\s*HTTP\s*Timeout\s*Interval\s*:\s*${HTTP_TIMEOUT_INTERVAL}
^\s*Current\s*Online\s*Users\s*:\s*${CURRENT_ONLINE_USERS}
^\s*Maximum\s*Users\s*Allowed\s*:\s*${MAXIMUM_USERS_ALLOWED}
^\s*HTTP\s*Secure-server\s*Status\s*:\s*${HTTPS_SERVER_STATUS}
^\s*HTTP\s*Secure-server\s*Port\s*:\s*${HTTPS_SERVER_PORT}
^\s*HTTP\s*SSL\s*Policy\s*:\s*${HTTP_SSL_POLICY}
^\s*HTTP\s*IPv6\s*Server\s*Status\s*:\s*${HTTP_IPV6_SERVER_STATUS}
^\s*HTTP\s*IPv6\s*Server\s*Port\s*:\s*${HTTP_IPV6_SERVER_PORT}
^\s*HTTP\s*IPv6\s*Secure-server\s*Status\s*:\s*${HTTP_IPV6_SERVER_PORT}
^\s*HTTP\s*IPv6\s*Secure-server\s*Port\s*:\s*${HTTPS_IPV6_STATUS}
^\s*HTTP\s*server\s*source\s*address\s*:\s*${HTTP_SERVER_SOURCE_ADDRESS}
evilmonkey19 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Value TELNET_IPV4_SERVER (\S+)
Value TELNET_IPV6_SERVER (\S+)
Value TELNET_SERVICE_PORT (\d+)
Value TELNET_SERVER_SOURCE_ADDRESS (\S+)
Value ACL4_NUMBER (\d+)
Value ACL6_NUMBER (\d+)

Start
^\s*TELNET\s*IPv4\s*server\s*:\s*${TELNET_IPV4_SERVER}
^\s*TELNET\s*IPv6\s*server\s*:\s*${TELNET_IPV6_SERVER}
^\s*TELNET\s*server\s*port\s*:\s*${TELNET_SERVICE_PORT}
^\s*TELNET\s*server\s*source\s*address\s*:\s*${TELNET_SERVER_SOURCE_ADDRESS}
^\s*ACL4\s*number\s*:\s*${ACL4_NUMBER}
^\s*ACL6\s*number\s*:\s*${ACL6_NUMBER}
evilmonkey19 marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 2 additions & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -665,13 +665,15 @@ huawei_vrp_display_ip_vpn-instance_interface.textfsm, .*, huawei_vrp, di[[splay]
huawei_vrp_display_snmp-agent_community_read.textfsm, .*, huawei_vrp, dis[[play]] snm[[p-agent]] c[[ommunity]] (r[[ead]]|w[[rite]])
huawei_vrp_display_ip_routing-table_verbose.textfsm, .*, huawei_vrp, dis[[play]] ip(v6)? routi[[ng-table]] ve[[rbose]]
huawei_vrp_display_interface_description.textfsm, .*, huawei_vrp, dis[[play]] inter[[face]] des[[cription]]
huawei_vrp_display_telnet_server_status.textfsm, .*, huawei_vrp, di[[splay]] t[[elnet]] s[[erver]] s[[tatus]]
huawei_vrp_display_service-set_id_id.textfsm, .*, huawei_vrp, dis[[play]] service-set (id|name) \S+
huawei_vrp_display_interface_brief.textfsm, .*, huawei_vrp, dis[[play]] inter[[face]] br[[ief]]
huawei_vrp_display_ip_vpn-instance.textfsm, .*, huawei_vrp, di[[splay]] ip vpn[[-instance]]
huawei_vrp_display_service-set_all.textfsm, .*, huawei_vrp, dis[[play]] service-set all
huawei_vrp_display_ipv6_neighbors.textfsm, .*, huawei_vrp, dis[[play]] ipv6 n[[eighbors]]
huawei_vrp_display_mpls_te_tunnel.textfsm, .*, huawei_vrp, dis[[play]] mpls te tunnel
huawei_vrp_display_lldp_neighbor.textfsm, .*, huawei_vrp, dis[[play]] lldp nei[[ghbor]]
huawei_vrp_display_http_server.textfsm, .*, huawei_vrp, di[[splay]] h[[ttp]] s[[erver]] *$
huawei_vrp_display_mac-address.textfsm, .*, huawei_vrp, disp[[lay]] mac[[-address]]
huawei_vrp_display_temperature.textfsm, .*, huawei_vrp, dis[[play]] tem[[perature]]
huawei_vrp_display_nat_server.textfsm, .*, huawei_vrp, dis[[play]] na[[t]] ser[[ver]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
HTTP Server Status : disabled
HTTP Server Port : 80(80)
HTTP Timeout Interval : 20
Current Online Users : 0
Maximum Users Allowed : 1
HTTP Secure-server Status : disabled
HTTP Secure-server Port : 443(443)
HTTP SSL Policy : Default
HTTP IPv6 Server Status : disabled
HTTP IPv6 Server Port : 80(80)
HTTP IPv6 Secure-server Status : disabled
HTTP IPv6 Secure-server Port : 443(443)
HTTP server source address : 0.0.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
parsed_sample:
- current_online_users: "0"
http_ipv6_server_port: "80(80)"
http_ipv6_server_status: "disabled"
http_server_port: "80(80)"
http_server_source_address: "0.0.0.0"
http_server_status: "disabled"
http_ssl_policy: "Default"
http_timeout_interval: "20"
https_ipv6_status: "443(443)"
https_server_port: "443(443)"
https_server_status: "disabled"
maximum_users_allowed: "1"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TELNET IPv4 server :Disable
TELNET IPv6 server :Disable
TELNET server port :23
TELNET server source address :0.0.0.0
ACL4 number :0
ACL6 number :0
jmcgill298 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
parsed_sample:
- acl4_number: "0"
acl6_number: "0"
telnet_ipv4_server: "Disable"
telnet_ipv6_server: "Disable"
telnet_server_source_address: "0.0.0.0"
telnet_service_port: "23"
Loading