RIV module overview
The RIV module provides a variable, functions, and virtual
methods that the Perl API application modules — RIV::Agent and RIV::App —
use.
Perl API modules used with the RIV module
The
following table identifies and briefly describes the Perl API modules
used with the RIV module:
| Perl API Module | Description |
|---|---|
|
Provides an interface for implementing Network Manager discovery agents. |
|
Provides an interface for implementing other Network Manager client/server applications. |
|
Provides an interface to communicate and perform operations on internal Network Manager databases. |
|
Provides an interface for parsing standard and Network Manager application-specific command line arguments. |
|
Provides a data structure to store the network entity.
Typically, you use this data structure in conjunction with the |
|
Provides an interface to access records that reside in a cache. |
|
Provides an interface to perform SNMP-related operations on Network Manager MIB trees. Note: Discovery agents in previous versions of the Perl
API used this module to obtain SNMP information from network devices.
Discovery agents implemented with this version of the Perl API should
use the SNMP methods that the
RIV::Agent module provides. |
Types of applications
There are two types of applications that you can write using the Perl API:
- Discovery agents — Use the
RIV::Agentconstructor and the ncp_disco_perl_agent binary to create discovery agent applications. - Other client/server applications — Use the
RIV::Appconstructor and the ncp_perl binary to other client/server applications. Examples of these other client/server applications include those that access Network Manager databases.
These application objects are required for interaction
with Network Manager components
(through the virtual methods exported through the RIV module)
and for instantiation of the other RIV modules. Application
objects that the RIV::Agent and RIV::App constructors
return are identical for the purpose of accessing other module functionality
(for example, RIV::OQL).
RIV module functions
The following table
identifies and briefly describes the functions that the RIV module
provides for Network Manager discovery
agents and other Network Manager client/server
applications:
| RIV module function | Description |
|---|---|
|
This function has been deprecated. Use the |
|
Obtains input either directly or indirectly from message broker. |
|
Binds the specified input function to input tags that match the specified regular expression. |
|
Returns the number of items waiting in the application's input queue. |
|
Determines whether the specified address is a valid IP address and not a loop back or multicast address. |
|
Determines whether the specified address is a valid IP address. |
|
Determines whether the specified address is a valid IPv4 address. |
|
Determines whether the specified address is a valid IPv6 address. |
|
Returns a reference to an array of filenames contained in the specified directory. |
|
Prints a list of debug message strings to the standard output. |
|
Prints a list of log message strings to the standard output. |
|
Displays error messages. |
See RIV module reference for the reference (man) pages associated with these functions.
RIV module virtual methods
The following
table identifies and briefly describes the virtual methods that the RIV module
provides for Network Manager discovery
agents and other Network Manager client/server
applications:
| RIV module virtual method | Description |
|---|---|
|
Binds the application to the specified message broker subject. |
|
Creates a single-shot or repeating timer. |
|
Provides access to the global Network Manager debug
setting through the |
|
Decrypts a password that was previously encrypted in a
previous call to the |
|
Returns an encrypted representation of the specified password. |
|
Retrieves the timeout for queries. |
|
Adds a message to the queue. |
|
Publishes the specified message string. |
|
Encodes the hash reference into a message broker string. |
|
Sets the retry limit for queries or returns the maximum number of retries for queries. |
See RIV module reference for the reference (man) pages associated with these functions.