Removing multicast endpoints using scripting
Overview
WebSphere Application Server uses multicast broadcasting at the node level to allow a node agent to discover the managed processes in the node. The IPv4 and IPv6 multicast addresses are not compatible. Both the IPv4 and IPv6 multicast addresses are defined in the node agent configuration and when a node agent starts both addresses will be tried in sequence. It is recommended that you disable one of the multicast addresses after installation. By limiting multicast discovery to one protocol, the node agent will run more efficiently. Perform the following steps to remove a multicast endpoint:
Procedure
- Start wsadmin
- Remove the multicast end point:
set se [$AdminConfig getid /Node:y2001/ServerIndex:/] set eprs [lindex [$AdminConfig showAttribute $se endPointRefs] 0] foreach ep $eprs { set epName [$AdminConfig showAttribute $ep endPointName] if {$epName == "NODE_MULTICAST_DISCOVERY_ADDRESS"} { puts "Removing NODE_MULTICAST_DISCOVERY_ADDRESS..." $AdminConfig remove $ep } } $AdminConfig save se = AdminConfig.getid('/Node:y2001/ServerIndex:/') import java lineseparator = java.lang.System.getProperty('line.separator') eprs = AdminConfig.showAttribute(se, ['endPointRefs']).split(lineseparator)[0] print eprs for ep in eprs: epName = AdminConfig.showAttribute(ep, ['endPointName']) if (epName) == "[NODE_MULTICAST_DISCOVERY_ADDRESS]": print "Removing NODE_MULTICAST_DISCOVERY_ADDRESS..." AdminConfig.remove(ep)
- In a network deployment environment only, synchronize the node.
See Also
AdminConfig object for scripted administration
See Also
Commands for the AdminConfig object