The following topics provide procedures for configuring a NIC scenario with the SRC CLI:
The OnePop configuration scenario is the default configuration for NIC. If you want to use another configuration scenario, you first clear data for the configuration scenario and change the scenario name that identifies the scenario, see Changing NIC Configurations (SRC CLI).
When you select a NIC configuration scenario, the software adds the default configuration for most properties. You can modify the NIC properties, including those for agents.
![]() |
Caution: We recommend that you change only those statements visible at the basic editing level. Contact Juniper Professional Services or Juniper Customer Support before you change any of the NIC statements not visible at the basic editing level. |
To specify a NIC configuration scenario for NIC to use:
user@host> show component Installed Components Name Version Status ... nic Release: 7.0 Build: GATEWAY.A.7.0.0.0168 running ...
For example:
[edit shared nic scenario OnePopLogin] user@host# show
hosts {
DemoHost {
configuration {
hosted-resolvers "/realms/login/A1, /realms/login/B1, /realms/login/C1, /realms/login/D1, /realms/ip/A1, /realms/ip/B1, /realms/ip/C1";
hosted-agents "/agents/LoginNameVr, /agents/VrSaeId, /agents/IpLoginName,
/agents/PoolVr";
}
}
OnePopBO {
configuration {
hosted-resolvers "/realms/login/A1, /realms/login/C1, /realms/ip/A1, /real
ms/ip/C1";
hosted-agents /agents/VrSaeId;
}
}
OnePopH1 {
configuration {
hosted-resolvers "/realms/login/B1, /realms/login/D1, /realms/ip/B1";
hosted-agents "/agents/LoginNameVr, /agents/IpLoginName, /agents/PoolVr";
}
}
}
agents {
VrSaeId {
configuration {
directory {
search-base o=Network,<base>;
search-filter (objectclass=umcVirtualRouter);
search-scope 2;
server-url ldap://127.0.0.1:389/;
backup-servers-url ;
principal cn=nic,ou=Components,o=Operators,<base>;
' '' '' '' '' '' '' 'credentials ********;
}
}
}
LoginNameVr {
configuration {
sae-plug-in {
event-filter "(&(!(PA_USER_TYPE=INTF))(!(PA_LOGIN_NAME=[None])))";
number-of-events-sent-in-a-synchronization-call 50;
}
}
}
IpLoginName {
configuration {
sae-plug-in {
number-of-events-sent-in-a-synchronization-call 50;
}
}
}
PoolVr {
configuration {
directory {
search-base o=Network,<base>;
search-filter (objectclass=umcVirtualRouter);
search-scope 2;
server-url ldap://127.0.0.1:389/;
backup-servers-url ;
' '' '' '' '' '' '' 'principal cn=nic,ou=Components,o=Operators,<base>;
' '' '' '' '' '' '' 'credentials ********;
}
}
}
}See Overview of Logging for SRC Components.
By default, NIC has the following logging enabled for a NIC host:
- logger file-1 {
-
- file {
- filter !ConfigMgr,!DES,/debug-;
- filename var/log/nicdebug.log;
- rollover-filename var/log/nicdebug.alt;
- maximum-file-size 10000000;
- }
- }
- logger file-2 {
-
- file {
- filter /info-;
- filename var/log/nicinfo.log;
- }
- }
- logger file-3 {
-
- file {
- filter /error-;
- filename var/log/nicerror.log;
- }
- }
Each type of agent has different configuration properties. The output from the show command identifies the type of agent under the agents hierarchy. For example:
VrSaeId {
configuration {
directory { LoginNameVr {
configuration {
sae-plug-in { Use the following configuration statements to configure NIC directory agents:
- shared nic scenario name agents agent configuration directory
{
- search-base search-base ;
- search-filter search-filter ;
- search-scope (0 | 1 | 2);
- server-url server-url ;
- backup-servers-url backup-servers-url ;
- principal principal ;
- credentials credentials ;
- }
To configure a directory agent:
For example:
[edit shared nic scenario OnePopLogin agents VrSaeId configuration directory] user@host# show search-base o=Network,<base>; search-filter (objectclass=umcVirtualRouter); search-scope 2; server-url ldap://127.0.0.1:389/; directory-backup-urls ; principal cn=nic,ou=Components,o=Operators,<base>; credentials ********;
- [edit shared nic scenario name agents name configuration directory]
- user@host# set search-base search-base
For example:
- [edit shared nic scenario OnePop agents PoolVr configuration
directory]
- user@host# set search-base o=myNetwork,<base>
You can use <base> in the DN to refer to the globally configured base DN.
- [edit shared nic scenario name agents name configuration directory]
- user@host# set search-filter search-filter
For example:
- [edit shared nic scenario name agents name configuration directory]
- user@host# set search-scope (0
| 1 | 2)
where:
- [edit shared nic scenario name agents name configuration directory]
- user@host# set server-url ldap:// host:portNumber
For example, to specify the directory on a C Series Controller:
- [edit shared nic scenario name agents name configuration directory]
- user@host# set principal principal
For example:
Use the following configuration statements to configure NIC SAE client agents:
- shared nic scenario nameagents nameconfiguration sae-client {
- principal principal;
- credentials credentials;
- subscriber-id (user-ip-address | dn| login-name | interface-name | primary-user-name);
- search-base search-base;
- search-filter search-filter;
- search-scope (object | one-level | sub-tree);
- server-url server-url;
- directory-backup-urlsdirectory-backup-urls ;
- }
To configure an SAE client agent:
For example:
[edit shared nic scenario OnePopLoginPull agents IpSaeId configuration sae-client] user@host# show principal cn=umcadmin,<base>; credentials ********; subscriber-id user-ip-address; search-base ou=sspadmurls,o=Servers,; search-filter (objectclass=corbaObjectReference); search-scope sub-tree; server-url ldap://127.0.0.1:389/; directory-backup-urls "";
For example:
By default, the CORBA naming server on a C Series Controller uses port 2809. The NIC host is configured to communicate with this naming server; you do not need to change JacORB properties.
Use the following configuration statements to configure NIC SAE plug-in agents:
- shared nic scenario name agents agent configuration sae-plug-in{
- event-filter event-filter ;
- number-of-events number-of-events ;
- }
If you plan to change the event filter for the agent, make sure that you are familiar with:
See the documentation for the SAE CORBA Remote API in the SAE Core API documentation on the Juniper Networks Web site at:
http://www.juniper.net/techpubs/software/management/src/api-index.html
To configure an SAE plug-in agent:
For example:
[edit shared nic scenario OnePopLogin agents LoginNameVr configuration sae-plug-in] user@host# show event-filter "(&(!(PA_USER_TYPE=INTF))(!(PA_LOGIN_NAME=[None])))"; number-of-events-sent-in-a-synchronization-call 50;
- [edit shared nic scenario name agents agent configuration
sae-plug-in]
- user@host# set event-filter event-filter
Typically, you do not need to change this value. If you do want to filter other events, use the format pluginAttribute=attributeValue format for event filters, where:
For example:
- [edit shared nic scenario name agents agent configuration
sae-plug-in]
- user@host# set number-of-events number-of-events
For example:
For each NIC host that uses SAE plug-in agents, configure a corresponding external plug-in for the SAE. By default, the SAE plug-in agents share events with the single SAE plug-in. You must also configure the SAE to communicate with the SAE plug-in agent in each NIC host that you use in the NIC replication.
For information about configuring an external plug-in for the SAE, see Configuring the SAE for External Plug-Ins.
To configure an external plug-in:
- [shared sae configuration plug-ins name name external]
- user@host# corba-object-reference corba-object-reference
For the CORBA object reference, use the following syntax:
where:
For local host, use the IP address 127.0.0.1.
The default port number is 2809.
Use the format nicsae_ groupname /saePort where groupname is the name of the replication group. (When replication is not used, the format is nicsae/saePort.)
For example:
- [shared sae configuration plug-ins name name external]
- user@host# set attr
- [( router-name | user-dn | session-id | user-type | user-ip-address
| login-name)]
Specify the plug-in options that the agent uses. You must specify the options session-id and router-name, and other options that you specified for the agent’s network data types and the agent’s event filter. Do not specify attributes options of the PAT_OPAQUE attribute type, such as the option dhcp-packet.
![]() |
Note: Do not include attributes that are not needed. |
- [edit shared sae group name configuration plugins event-publishers]
- user@host# set subscriber-tracking pool-name
For example, for a pool named nic: