This topic describes how to update static IP using API for iDRAC after the deployment of ObjectScale Appliance.
Steps
Set external static IP when iDRAC is connected to an external management network and set internal static IP when iDRAC is connected to ObjectScale backend network.
To set external static IP when iDRAC is connected to an external management network, use the following command to patch:kubectl -n gc patch server <node_name> --type merge --patch-file static_ip_patch.yaml. Below is a sample payload for setting externally accessible static iDRAC IP:
To set internal static IP when iDRAC is connected to ObjectScale backend network, use the following command to patch:kubectl -n gc patch server <node_name> --type merge --patch-file static_internal_ip_patch.yaml
To determine the internal iDRAC IP to be set, you can check the private IP of the node using
ip addr command and derive the iDRAC IP using the private IP as follows.
NOTE:The Private interface IP is always
169.254.<rack_id>.<100+nodeid> and it gets automatically assigned.
If the IP assigned to the private interface is
169.254.3.108, then the iDRAC IP would be
169.254.3.158 (hint: the last octet of iDRAC IP is 50+last octet of the private IP).
You can also determine the internal iDRAC IP to be set by executing the below script
idrac.sh in
/var/atlantic/files of each node:
admin@provo-cactusjack:~> cd /var/atlantic/files/ admin@provo-cactusjack:/var/atlantic/files> sudo sh idrac.sh
169.254.6.151/17
admin@provo-cactusjack:/var/atlantic/files>
Gateway to be provided in the payload is always
169.254.0.1and the subnet mask to be provided is always
255.255.128.0.
Below is a sample payload for setting internal iDRAC IP:
provo-enterprise:~/payload # kubectl get servers -A
NAMESPACE NAME POWER STATUS PROVISIONING STATUS COMMAND EXECUTING BMCENDPOINT SUBSCRIPTION_RECONCILE_STATUS
gc layton-enterprise On Ready NotRun
gc lehi-enterprise On Ready NotRun
gc logan-enterprise On Ready NotRun
gc murray-enterprise On Busy CollectingInventory NotRun
gc ogden-enterprise On Ready NotRun
gc orem-enterprise On Ready NotRun
gc sandy-enterprise On Ready NotRun
provo-enterprise:~/payload #
provo-enterprise:~/payload # kubectl get servers -A
NAMESPACE NAME POWER STATUS PROVISIONING STATUS COMMAND EXECUTING BMCENDPOINT SUBSCRIPTION_RECONCILE_STATUS
gc layton-enterprise On Ready NotRun
gc lehi-enterprise On Ready NotRun
gc logan-enterprise On Ready NotRun
gc murray-enterprise On Ready NotRun
gc ogden-enterprise On Ready NotRun
gc orem-enterprise On Ready NotRun
gc sandy-enterprise On Ready NotRun
Do an inventory refresh using the following command:
NOTE:This is a mandatory step after setting any static IP for iDRAC.
provo-enterprise:~/payload # kubectl get servers -A
NAMESPACE NAME POWER STATUS PROVISIONING STATUS COMMAND EXECUTING BMCENDPOINT SUBSCRIPTION_RECONCILE_STATUS
gc layton-enterprise On Ready NotRun
gc lehi-enterprise On Ready NotRun
gc logan-enterprise On Ready NotRun
gc murray-enterprise On Busy CollectingInventory NotRun
gc ogden-enterprise On Ready NotRun
gc orem-enterprise On Ready NotRun
gc sandy-enterprise On Ready NotRun
provo-enterprise:~/payload #
provo-enterprise:~/payload # kubectl get servers -A
NAMESPACE NAME POWER STATUS PROVISIONING STATUS COMMAND EXECUTING BMCENDPOINT SUBSCRIPTION_RECONCILE_STATUS
gc layton-enterprise On Ready NotRun
gc lehi-enterprise On Ready NotRun
gc logan-enterprise On Ready NotRun
gc murray-enterprise On Ready NotRun
gc ogden-enterprise On Ready NotRun
gc orem-enterprise On Ready NotRun
gc sandy-enterprise On Ready NotRun
Verify that IP is set via
ipmitool.
For this, SSH to the node whose iDRAC IP needs to be verified, and execute the following command:
admin@murray-enterprise:~> sudo ipmitool lan print
Set in Progress : Set Complete
Auth Type Support : MD5
Auth Type Enable : Callback : MD5
: User : MD5
: Operator : MD5
: Admin : MD5
: OEM :
IP Address Source : Static Address
IP Address : 10.236.71.25
Subnet Mask : 255.255.255.0
MAC Address : b0:4f:13:b0:2c:d2
SNMP Community String : public
IP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Gratituous ARP Intrvl : 2.0 seconds
Default Gateway IP : 10.236.71.1
Default Gateway MAC : 00:00:00:00:00:00
Backup Gateway IP : 0.0.0.0
Backup Gateway MAC : 00:00:00:00:00:00
802.1q VLAN ID : Disabled
802.1q VLAN Priority : 0
RMCP+ Cipher Suites : 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14
Cipher Suite Priv Max : Xaaaaaaaaaaaaaa
: X=Cipher Suite Unused
: c=CALLBACK
: u=USER
: o=OPERATOR
: a=ADMIN
: O=OEM
admin@murray-enterprise:~>
Data is not available for the Topic
Please provide ratings (1-5 stars).
Please provide ratings (1-5 stars).
Please provide ratings (1-5 stars).
Please select whether the article was helpful or not.
Comments cannot contain these special characters: <>()\