Setting the SNMP Trap IP Address (trap -d address)
Function
The trap -d address command is used to set the SNMP trap IP address.
Format
ipmcset -t trap -d address -v <destination> <ipaddr>
Parameters
Parameter |
Description |
Value |
---|---|---|
destination |
Identifies an SNMP trap destination. |
1 to 4 |
ipaddr |
Specifies the IP address for receiving SNMP trap messages. |
It can be an IPv4 address (in xxx.xxx.xxx.xxx format), an IPv6 address (in xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx format), or empty (in ""format). |
Usage Guidelines
If ipaddr is empty, this command is used to clear the IP address.
Example
# Set the IP address for receiving SNMP trap messages to 10.10.10.10.
iBMC:/->ipmcset -t trap -d address -v 1 10.10.10.10
Set trap dest1 address successfully.
# Clear the IP address of SNMP trap destination 1.
iBMC:/->ipmcset -t trap -d address -v 1 ""
Set trap dest1 address successfully.