RIV::SnmpAccess Constructor
The RIV::SnmpAccess constructor creates
and initializes a new RIV::SnmpAccess object.
Constructor
new($rivSession)Parameters
- $rivSession
- Specifies a blessed reference to either a
RIV::ApporRIV::Agentobject. More specifically, this is aRIV::ApporRIV::Agentapplication object returned in a previous call to theRIV::ApporRIV::Agentconstructor.
Description
The RIV::SnmpAccess constructor
creates and initializes a new RIV::SnmpAccess session
object that must be a blessed reference to either a RIV::App or RIV::Agent object.
You
can create only one RIV::SnmpAccess session object
in any Perl application. If multiple domains are being supported (that
is, multiple RIV::App objects) one of the application
sessions must be used as the base for the RIV::SnmpAccess session.
Example Usage
$app = new RIV::App();
$snmp = new RIV::SnmpAccess('TEST', 'ncp_test');Returns
Upon completion, the RIV::SnmpAccess constructor
returns a RIV::SnmpAccess session object.