Infoblox::Grid::SNMP::TrapReceiver - Grid SNMP TrapReceiver object.


NAME

Infoblox::Grid::SNMP::TrapReceiver - Grid SNMP TrapReceiver object.


DESCRIPTION

The Grid SNMP TrapReceiver object is used to set or retrieve the IP address and user name of a trap receiver.


CONSTRUCTOR

 my $Infoblox::Grid::SNMP::TrapReceiver->new(
     address => $ip_address,  #Required
     user => $snmpv3user      #Required
 );


METHODS

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.

Parameter

IPv4 address of the trap receiver

Returns

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.

Example
 #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.

Parameter

A reference to the Infoblox::Grid::SNMP::User object or the user name in string format.

Returns

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.

Example
 #Get trap receiver user
 my $user=$trap_receiver->user();
 #Set trap receiver user
 $trap_receiver->user($user);


AUTHOR

Infoblox Inc. http://www.infoblox.com/


SEE ALSO

Infoblox::Grid::SNMP::User


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.