====== ECS Dell commands ====== ===== Command line on ECS ===== Use the **viprexec** commandline to ask each nodes of ECS cluster. Use instead **sudo** command line to ask on the ECS manager admin@ecs1mgt01:~> viprexec 'sudo cat /etc/os-release' Output from host : 192.10.22.1 NAME="SLES" VERSION="12-SP3" VERSION_ID="12.3" PRETTY_NAME="SUSE Linux Enterprise Server 12 SP3" ID="sles" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:suse:sles:12:sp3" admin@ecs1mgt01:~> sudo cat /etc/ntp.conf ... server ntp01.local.lu iburst server ntp02.local.lu iburst ===== How to add or remove a DNS / NTP server ===== ==== DNS ==== :!: ECS is highly reliant on working DNS. DU (Data Unavailable) can be caused if DNS resolution is not working. Every change on DNS config need to be confirmed with the customer before making any changes. Consult a coach or a senior TSE in case of any question. How to add IP's / DNSSearch to DNS config: Use setrackinfo -a to configure the DNS server. Repeat the command for each DNS server at the customer site (or separate with space). # sudo setrackinfo -a DNSServer Example: # sudo setrackinfo -a DNSServer 10.1.2.3 # sudo setrackinfo -a DNSServer 10.2.3.4 or # sudo setrackinfo -a DNSServer 10.1.2.3 10.2.3.4 Use setrackinfo -a to configure DNS search. You must run the command once for each specification order of most specific to least specific. # sudo setrackinfo -a DNSSearch Example: # sudo setrackinfo -a DNSSearch corp.emc.com # sudo setrackinfo -a DNSSearch emc.com ==== How to add IP's to NTP ==== Run setrackinfo -a once for each NTP server to be added. # sudo setrackinfo -a NTPServer Example: # sudo setrackinfo -a NTPServer 10.3.4.5 Check the results using getrackinfo -r Example: provo:~ # getrackinfo -r Rack Master Info ================ ChassisID = 00:01:02:63:1d:1e RackID = 1 RackName = red epoxy = False Basic Config: ------------- EcsManagedBmc = no RackInstallServer = no Network Config: --------------- DNSSearch = corp.emc.com emc.com DNSServer = 10.1.2.3 10.2.3.4 NTPServer = 10.3.4.5 System Config: -------------- NANDomain = nan NANNetwork = 169.254.0.0/16 NANVlan = 4 PublicVlan = 1 RackFirstNode = 1 RackLastNode = 24 RackNetwork = 192.168.219.0/24 RackSwitchCommunityName = public RackVlan = 0 ==== How to remove IP's from DNS / NTP config ==== Use setrackinfo -d to remove one or more from a list (applies to DNSServer,DNSSearch and NTPServer) Example: # sudo setrackinfo -d DNSServer 10.60.28.149 10.73.240.235