Restricting instantiation based on entity name
This example insert defines an instantiation filter, also known as a postdiscovery filter. This example prevents the instantiation of devices that match a given entity name.
The filter (m_Filter) uses topology data in the ncimCache
format.
Note: To ensure that alerts are not raised for interfaces that are
excluded by the instantiation filter, you must set the
RaiseAlertsForUnknownInterfaces
variable. To this, perform the
following steps:- Edit the $NCHOME/etc/precision/NcPollerSchema.cfg configuration file.
- Add the following line to the
file:
update config.properties set RaiseAlertsForUnknownInterfaces = 0;
Restricting instantiation of a chassis based on entity name
The following example postdiscovery filter restricts instantiation of a chassis and its contents.
insert into scope.instantiateFilter
(
m_Filter
)
values
(
"
(
BASENAME != 'jane'
)
"
);
Restricting instantiation of mutiple chassis
The following example postdiscovery filter restricts instantiation of a chassis and its contents.
insert into scope.instantiateFilter
(
m_Filter
)
values
(
"
(
snmpSystem->SYSDESCR NOT LIKE ' device'
)
"
);