svctask chserviceip

Use the svctask chserviceip command to set the service address for a specific node. This command enables a non-superuser to set the service address for a specific node.

Syntax

Setting static service IP

Read syntax diagramSkip visual syntax diagram svctask chnodeserviceip -serviceip <IPv4 | IPv6 address> -gw <IPv4 | IPv6 address>-mask <IPv4 Subnet mask | IPv6 prefix>-nodenode_idnode_name

Setting Techport

Read syntax diagramSkip visual syntax diagram svctask chnodeserviceip -techportdisableenable -force-nodenode_idnode_name

Parameters

-serviceip <IPv4 | IPv6 address>
(Required) Specifies the new IP address for the service assistant. The type of the IP address indicates which service IP will be updated. The Internet Protocol Version 6 (IPv6) and Internet Protocol Version 4 (IPv4) address is used for the service assistant.
-gw <IPv4 | IPv6 address>
(Optional) Specifies the IPv4 or IPv6 address to access the gateway with the new service IP.
-mask <IPv4 Subnet mask | IPv6 prefix>
(Optional) Specifies the new IPv4 subnet mask or IPv6 prefix to with the new service IP. If -mask is specified, -gw must be specified.
-node node_name | node_id
(Optional) Specifies the node ID or node name to modify with the command.
-techport enable | disable
(Required) Specifies whether techport is enabled or disabled.
-force
(Optional) Forces in enabling the technician port. The parameter is not required for disabling the technician port.

Description

This command sets the service assistant IP address for a specific node. If the node is part of a system, then the system gateway, subnet, and prefix are used unless specified otherwise. If the node is a candidate node, the subnet, prefix, and gateway must be specified. If you specify an IPV4 or IPV6 address, but do not provide a gateway, mask, or prefix, then the existing gateway, mask, and prefix values are preserved.

An invocation example

chnodeserviceip -serviceip 1.2.3.4 -gw 1.2.3.1 -mask 255.255.255.0 -node 6
No feedback. 

An invocation example

chnodeserviceip -serviceip abcd:ef01:2345::22 -gw abcd:ef01:2345::1 -mask ffff:ffff:ffff::0 -node 6
No feedback. 

An invocation example

chnodeserviceip -techport enable -force
No feedback. 

An invocation example

chnodeserviceip -techport disable

The resulting output:

No feedback.