[jboss-as7-dev] CLI - change IP address

Brian Stansberry brian.stansberry at redhat.com
Fri Oct 21 10:15:11 EDT 2011


It just changed last night.

We flattened out the criteria into a bunch of individual attributes. The 
old "criteria" attribute is now read-only and will be removed once the 
console stops trying to read it.

[standalone at localhost:9999 /] 
/interface=public:write-attribute(name=inet-address,value=192.168.200.12)
{"outcome" => "success"}

I just pinged Emanuel Muckenhuber, who did that; the response should 
include information telling you that a server reload is required.

On 10/21/11 8:41 AM, Rostislav Svoboda wrote:
> Hi Brian.
>
> I noticed that AS7-1299 is resolved so I tried to change IP address for public interface.
>
> First attempt was fine
> /interface=public:write-attribute(name="criteria",value="any-ipv4-address")
>
> I failed when I tried to add specific IP address
> /interface=public:write-attribute(name="criteria",value=[("inet-address"="10.34.3.154")])
> {
>      "outcome" =>  "failed",
>      "failure-description" =>  "Illegal interface criteria [(\"inet-address\"=\"10.34.3.154\")]; must be any-address, any-ipv4-address or any-ipv6-address or a list of criteria elements",
>      "rolled-back" =>  true,
>      "response-headers" =>  {"process-state" =>  "reload-required"}
> }
>
> I tried few variations but without success. What is the right format?
>
> Please add few lines into https://docs.jboss.org/author/display/AS71/Admin+Guide#AdminGuide-CLIRecipes it would help others too.
>
> Thanks,
> Rosta


-- 
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat


More information about the jboss-as7-dev mailing list