state database schema
The state database schema is defined in the NCHOME/etc/precision/VirtualDomainSchema.cfg directory. The state database schema has three tables: state.services, state.domains, and state.filters.
The services table holds the status of the processes monitored by the CTRL process. The table below describes the columns of the services table.
| Column name | Constraints | Data type | Description |
|---|---|---|---|
| m_ArgList | List | Specifies a list of arguments sent to the service process. | |
| m_ChangeTime | NOT NULL | Timestamp | Specifies a timestamp from the last time the status of this service was updated by the CTRL process. |
| m_CtrlState | NOT NULL | Integer | Specifies an integer which reflects the operational state of the service.
|
| m_Domain | NOT NULL | Text | Specifies the domain name under which the service is running. |
| m_ExtraInfo | Vblist | Specifies additional information. The default value is empty. | |
| m_Pid | NOT NULL | Integer | Specifies the process ID for the component. |
| m_ServiceName | PRIMARY KEY NOT NULL |
Text | Specifies the service name of the component monitored by the CTRL process. |
The domains table holds the status of the primary and backup domains in the failover architecture. This table always contains an entry for the primary server and the backup server.
The table below describes the columns of the domains table.
| Column name | Constraints | Data type | Description |
|---|---|---|---|
| m_ActingPrimary | NOT NULL | Integer | Specifies whether the Network Manager server is acting as the primary server and is monitoring the network.
|
| m_Backup | NOT NULL | Integer | Specifies whether the server is configured as the backup server. This value is automatically set by the configuration defined in the $NCHOME/etc/precision/ConfigItnm.DOMAIN.cfg file, or by inclusion of the -primaryDomain command-line option on components started by the CTRL process.
|
| m_ChangeTime | NOT NULL | Long | Specifies the timestamp from the last time the status of the domain was updated by the Event Gateway. |
| m_Domain | NOT NULL | Text | Specifies the domain in which this installation of Network Manager is running. The domain name must be different from the names of the primary and backup servers. |
| m_HealthStatus | NOT NULL | Integer | Specifies the status of the Health Check events.
|
The filters table contains the filters that are to be applied to the values in the state.services table. The table below describes the columns of the filters table.
| Column name | Constraints | Data type | Description |
|---|---|---|---|
| m_ServiceName | NOT NULL | Text | Specifies the unique name of the service to which the filter is applied. |
| m_Filter | NOT NULL | Text | Specifies the OQL filter to apply. |
| m_Description | Text | Specifies a description of the filter operation. |
Network Manager provides a default filter for the following components:
There is one filter for each component except for the ncp_poller component, which instead can have a filter for each poller defined. Each filter checks that the m_CtrlState value is not set to 7 (the service has not failed), and that the timestamp m_ChangeTime is not older than 300 seconds.
Default filters for the state.filters table are provided for the components below.
- Polling engine, ncp_poller: multiple filters can be defined, one
for each poller defined in the
CtrlServices.cfgfile. - Event Gateway, ncp_g_event
- Topology manager, ncp_model