Infoblox::Grid::SNMP::TrapReceiver - Grid SNMP TrapReceiver object.
The Grid SNMP TrapReceiver object is used to set or retrieve the IP address and user name of a trap receiver.
my $Infoblox::Grid::SNMP::TrapReceiver->new( address => $ip_address, #Required user => $snmpv3user #Required );
This section describes all the methods that you can use to configure and retrieve the attribute values of an SNMPv3 TrapReceiver object.
address()
Use this method to set or retrieve the IP address of the trap receiver.
IPv4 address of the trap receiver
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get trap receiver address my $ip=$trap_receiver->address(); #Set trap receiver address $trap_receiver->address("192.168.1.2");
user()
Use this method to set or retrieve the user name for the trap receiver.
A reference to the Infoblox::Grid::SNMP::User object or the user name in string format.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get trap receiver user my $user=$trap_receiver->user(); #Set trap receiver user $trap_receiver->user($user);
Infoblox Inc. http://www.infoblox.com/
Copyright (c) 2017 Infoblox Inc.