Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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

      where:

      • 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.

      For example:

      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
    669636541637469766174696F6E456E67696E653A312E3000 000000000000010000000000000068000102000000000F3137322E32382E3233302E31323
    0000022610000000000107372632D382F736165504F412F53 4145000000020000000000000008000000004A414300000000010000001C0000000000010
    0010000000105010001000101090000000105010001 user@host>

    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 11.11.0.0:

    user@host> run test nic resolve locator /nicLocators/ip key 11.11.0.0 intermediate
    
    Showing Intermediate Results
    
    ValueType:IpPool
    ([11.11.0.0 11.11.0.10])
    
    ValueType:Vr
    default:vr0@jsrc.englab.juniper.net
    
     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
    

    Modified: 2014-06-11