On 22 July 2015 at 19:26, Simon Davis via smartos-discuss
<[email protected]> wrote:
> I have a file called update-nics.json that changes the IP to 192.168.1.20
>
> [
>  {
>    "interface": "net0",
>    "mac": "82:98:10:f5:bc:eb",
>    "ip": "192.168.1.20"
>  }
> ]
>
> when I run cat update-nics.json | vmadm update 
> 85f981a2-196e-40e3-bdb3-7f268338ba13 the IP never changes.

This is not quite right.  You need to look in the vmadm(1M) manual
page for the "update" command.  Part of this section describes the way
to update the IP address of a NIC.  There is also an example for
changing an IP address in the "EXAMPLES" section of the same page.
The manual pages are also available on the web:

    https://smartos.org/man/1M/vmadm


Cheers.

-- 
Joshua M. Clulow
UNIX Admin/Developer
http://blog.sysmgr.org


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to