: inspect network-policy lookup
Focus
Focus

inspect network-policy lookup

Table of Contents

inspect network-policy lookup

Use the
inspect network-policy lookup
command to identify the potential network policies for an application flow.
The options Source IP, Destination IP, and Network Context provide to limit the list displayed and make it easier to identify changes. Rules that override by another rule in the Active Override column show the currently active policy rule.

Command

inspect network-policy lookup (app-wildcard | application=
application name
| nctx-wildcard | network-context= network context ID| srcv4=src-ipv4| dstv4=dstipv4)

Options

all
Enter all to display hit count information for all network policy rules.
reset-diff
Enter reset-diff to reset New Hits to zero.
diff-only
Enter diff-only to display policy rules where the New Hits value is non-zero.
reset-diff
Enter reset-diff to reset New Hits to zero.
diff-only
Enter diff-only to display policy rules where the New Hits value is non-zero.

Command Notes

Role
Super, Read Only
Related Commands
Introduced in
Release 5.0.1

Example

inspect network-policy lookup application=1658139887050014528 srcv4=30.1.1.2 dstv4=10.1.1.2 nctx-wildcard Requested App Id: 1658139887050014528 : icmp - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Network Policy Rule : 1664343200310006628 : match icmp Policy Set : 1662009498094024828 : test user-id Stack Index | Order Number: 0 | 1024 Matching App Id : 1658139887050014528 : icmp Source Prefix : none Destination Prefix : none Users : UserGroups : : CN=engineering,DC=sdwanamsteltest,DC=onmicrosoft,DC=com : : CN=sales,DC=sdwanamsteltest,DC=onmicrosoft,DC=com : Network_Context Id : none Source : Destination : Active Override 0.0.0.0/0 : 0.0.0.0/0 : inspect network-policy lookup application=ssh Requested App Id: 16282366122080176 : ssh - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Network Policy Rule : 1652700894751007228 : testService Policy Set : 1652700894685007028 : Policy Set (Simple) Stack Index | Order Number: 0 | 512 Matching App Id : 16282366122080176 : ssh Source Prefix : none Destination Prefix : none Users : any UserGroups : any Network_Context Id : none Source : Destination : Active Override 0.0.0.0/0 : 0.0.0.0/0 : Network Policy Rule : 1680667485074019628 : test-1 Policy Set : 1652700894685007028 : Policy Set (Simple) Stack Index | Order Number: 0 | 1024 Matching App Id : WILDCARD : Source Prefix : none Destination Prefix : none Users : any UserGroups : any Network_Context Id : none Source : Destination : Active Override 0.0.0.0/0 : 0.0.0.0/0 : Network Policy Rule : 1666103611987024728 : pp_global_rule_1 Policy Set : 1652700894685007028 : Policy Set (Simple) Stack Index | Order Number: 0 | 1024 Matching App Id : WILDCARD : Source Prefix : 1666155200086004428 : GlobalP1 Destination Prefix : 1666155062360019328 : GlobalP2 Users : any UserGroups : any Network_Context Id : none Source : Destination : Active Override 172.16.0.0/12 : 10.0.0.0/8 : 10.0.0.0/8 : 10.0.0.0/8 : Network Policy Rule : 1652700894994004728 : enterprise-default Policy Set : 1652700894674004428 : Default Rule Policy Set (Simple) Stack Index | Order Number: 1 | 10024 Matching App Id : WILDCARD : Source Prefix : none Destination Prefix : 16282366020950094 : EnterpriseGlobalPrefix Users : any UserGroups : any Network_Context Id : none Source : Destination : Active Override 0.0.0.0/0 : 10.23.23.3/32 : : 10.34.2.5/32 : : 20.5.4.0/32 : : 24.0.0.0/32 : : 192.168.0.0/32 : : 20.2.0.0/25 : : 12.0.2.0/24 : : 17.7.7.0/24 : : 20.0.0.0/24 : : 123.23.23.0/24 : : 192.0.2.0/24 : Network Policy Rule : 1652700894752004628 : default Policy Set : 1652700894674004428 : Default Rule Policy Set (Simple) Stack Index | Order Number: 1 | 10240 Matching App Id : WILDCARD : Source Prefix : none Destination Prefix : none Users : any UserGroups : any Network_Context Id : none Source : Destination : Active Override 0.0.0.0/0 : 0.0.0.0/0 : 1680667485074019628 : test-1 Requested App Id: 16282366122080176 : ssh - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Network Policy Rule : 1652700894751007228 : testService Policy Set : 1652700894685007028 : Policy Set (Simple) Stack Index | Order Number: 0 | 512 Matching App Id : 16282366122080176 : ssh Source Prefix : none Destination Prefix : none Users : any UserGroups : any Network_Context Id : none Source : Destination : Active Override ::/0 : ::/0 : Network Policy Rule : 1666246797922021528 : Local-test-rule Policy Set : 1652700894685007028 : Policy Set (Simple) Stack Index | Order Number: 0 | 1024 Matching App Id : WILDCARD : Source Prefix : 1666245510839004328 : Local-Test Destination Prefix : 1666246951267022228 : Local-Test-IPV6 Users : any UserGroups : any Network_Context Id : none Source : Destination : Active Override 2001::/65 : 2001::/67 : : 2001::/65 : Network Policy Rule : 1680667485074019628 : test-1 Policy Set : 1652700894685007028 : Policy Set (Simple) Stack Index | Order Number: 0 | 1024 Matching App Id : WILDCARD : Source Prefix : none Destination Prefix : none Users : any UserGroups : any Network_Context Id : none Source : Destination : Active Override ::/0 : ::/0 : Network Policy Rule : 1666103611987024728 : pp_global_rule_1 Policy Set : 1652700894685007028 : Policy Set (Simple) Stack Index | Order Number: 0 | 1024 Matching App Id : WILDCARD : Source Prefix : 1666155200086004428 : GlobalP1 Destination Prefix : 1666155062360019328 : GlobalP2 Users : any UserGroups : any Network_Context Id : none Source : Destination : Active Override 2001:db8:3c4d:15::/64 : fc00::/7 : Network Policy Rule : 1671548683418013528 : test-count Policy Set : 1652700894685007028 : Policy Set (Simple) Stack Index | Order Number: 0 | 1024 Matching App Id : WILDCARD : Source Prefix : 1667902393539019128 : Nag Destination Prefix : 1667902393539019128 : Nag Users : any UserGroups : any Network_Context Id : none Source : Destination : Active Override 2222::/64 : 2222::/64 : Network Policy Rule : 1652700894994004728 : enterprise-default Policy Set : 1652700894674004428 : Default Rule Policy Set (Simple) Stack Index | Order Number: 1 | 10024 Matching App Id : WILDCARD : Source Prefix : none Destination Prefix : 16282366020950094 : EnterpriseGlobalPrefix Users : any UserGroups : any Network_Context Id : none Source : Destination : Active Override ::/0 : 2011:219a:3c4d:15::/64: : 2022:219a:3c4d:15::/64: Network Policy Rule : 1652700894752004628 : default Policy Set : 1652700894674004428 : Default Rule Policy Set (Simple) Stack Index | Order Number: 1 | 10240 Matching App Id : WILDCARD : Source Prefix : none Destination Prefix : none Users : any UserGroups : any Network_Context Id : none Source : Destination : Active Override ::/0 : ::/0 : 1680667485074019628 : test-1

Recommended For You