Testing a NIC Resolution (SRC CLI)
Issue a resolution request to the NIC host to test NIC resolution for a specified key by using the test nic resolve command. As a result, you can view the NIC resolution for the configured key and log the errors when the resolution fails.
To test a NIC resolution:
Run the test nic resolve command.user@host> test nic resolve locator locator key key constraints constraints intermediate
locator—Name of locator that requests information on behalf of an application
key—Value to be resolved. This value must be of the same NIC data type configured in the NIC locator.
(Optional) constraints—Data types that a resolver uses when it executes a role (also referred to as a transition) in the resolution process. A role resolves a NIC key to a NIC value.
(Optional) intermediate—Displays the step-by-step results along with the final resolution results for the NIC resolution processes.
user@host> test nic resolve locator /nicLocators/ip key 10.10.10.10 constraints domain:virneo
The following example shows a successful resolution for an IP key that has the value 192.168.8.2:
user@host> test nic resolve locator /nicLocators/ip key 192.168.8.2 IOR: 000000000000003549444C3A736D67742E6A756E697065722E6E65742F7361652F5365727
The following example shows an unsuccessful resolution for an IP key that has the value 192.168.8.2:
user@host> test nic resolve locator /nicLocators/ip key 192.168.3.2 Failed to resolve key 192.168.3.2 for resolver /nicLocators/ip due to net.juniper.smgt.gateway.nic.protocol.NICExc IDL:net/juniper/smgt/gateway/nic/protocol/NICException:1.0 user@host>
The following example shows both the step-by-step resolution and final resolution results for an IP key that has the value 18.104.22.168:
user@host> run test nic resolve locator /nicLocators/ip key 22.214.171.124 intermediate Showing Intermediate Results ValueType:IpPool ([126.96.36.199 188.8.131.52]) ValueType:Vr default:email@example.com FINAL RESULT Type ID: "IDL:smgt.juniper.net/sae/ServiceActivationEngine:1.0" Profiles: 1. IIOP 1.2 10.212.10.9 8801 "c3bng-src9/saePOA/SAE" TAG_ORB_TYPE 0x4a414300 TAG_CODE_SETS char native code set: UTF-8 char conversion code set: ISO-8859-1 wchar native code set: UTF-16 wchar conversion code set: 0x05010001, 0x00010100