CLI - change IP address

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

CLI - change IP address

Rostislav Svoboda
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
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: CLI - change IP address

Brian Stansberry
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@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
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev