virtualip edit

Edits a virtual IP (VIP) range. Permissions required: fc or a.

Syntax

CLI
maprcli virtualip edit
    [ -cluster <cluster> ]
    [ -macs <MAC addresses> ] 
    -netmask <netmask>
    -virtualip <virtualip>
    [ -virtualipend <virtual IP range end> ]
    [ -preferredmac <MAC address> ]
REST
http[s]://<host>:<port>/rest/virtualip/edit?<parameters> 

Parameters

Parameter

Description

cluster

The cluster on which to run the command.

macs

A list of the MAC addresses that represent the NICs on the nodes that the VIPs in the VIP range can be associated with. Use this list to limit VIP assignment to NICs on a particular subnet when your NFS server is part of multiple subnets.

netmask

The netmask of the virtual IP.

virtualip

The virtual IP, or the start of the virtual IP range.

virtualipend

The end of the virtual IP range.

preferredmac

The preferred MAC for this virtual IP. When an NFS server restarts, the MapR system attempts to move all of the virtual IP addresses that list a MAC address on this node as a preferred MAC to this node. If the new value is null, this parameter resets the preferred MAC value.

Examples

CLI
maprcli virtualip edit   
                     -cluster mycluster.402.source  
                     -macs "09:0C:29:3C:47:AB 00:0c:29:9e:96:15"  
                     -netmask 255.255.255.0  
                     -virtualip 10.1.1.5
REST
https://10.10.82.26:8443/rest/virtualip/remove?cluster=mycluster.402.source&macs="09:0C:29:3C:47:AB 00:0c:29:9e:96:15"&netmask=255.255.255.0&virtualip=10.1.1.5