Difference between revisions of "Bright cmsh:Basic commands"

From Define Wiki
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 +
== Check cluster health ==
 +
Check the devices
 +
<syntaxhighlight>
 +
[root@head1 ~]# cmsh
 +
[head1]% device list
 +
Type                  Hostname (key)  MAC                Category        Ip              Network        Status                         
 +
---------------------- ---------------- ------------------ ---------------- --------------- -------------- --------------------------------
 +
EthernetSwitch        switch01        00:00:00:00:00:00                  10.141.253.1    internalnet    [  DOWN  ] health check failed
 +
HeadNode              head1            00:25:90:C9:C9:00                  10.141.255.254  internalnet    [  UP  ] health check failed
 +
HeadNode              head2            00:25:90:C9:CA:70                  10.141.255.253  internalnet    [  UP  ] health check failed
 +
PhysicalNode          gpuNode01        00:25:90:C5:F5:36  gpu6.5          10.141.0.1      internalnet    [ INSTALLER_UNREACHABLE ] (wait+
 +
PhysicalNode          gpuNode02        00:25:90:96:24:C6  gpu6.5          10.141.0.2      internalnet    [  UP  ] health check failed
 +
PhysicalNode          gpuNode03        00:25:90:C6:FC:E4  gpu6.5          10.141.0.3      internalnet    [  UP  ]         
 +
PhysicalNode          gpuNode04        00:25:90:C5:F5:C2  gpu6.5          10.141.0.4      internalnet    [  UP  ] health check failed
 +
PhysicalNode          gpuNode05        00:25:90:C5:F5:E0  gpu6.5          10.141.0.5      internalnet    [  UP  ] health check failed
 +
PhysicalNode          gpuNode06        00:25:90:C5:24:D6  gpu6.5          10.141.0.6      internalnet    [  UP  ]         
 +
PhysicalNode          gpuNode07        00:25:90:C5:F3:8A  gpu6.5          10.141.0.7      internalnet    [  UP  ]         
 +
PhysicalNode          gpuNode08        00:25:90:C5:F4:E8  gpu6.5          10.141.0.8      internalnet    [  UP  ]         
 +
PhysicalNode          gpuNode09        00:25:90:C5:24:F6  gpu6.5          10.141.0.9      internalnet    [  UP  ]         
 +
PhysicalNode          gpuNode10        00:25:90:C5:F5:26  gpu6.5          10.141.0.10    internalnet    [  UP  ]         
 +
PhysicalNode          gpuNode11        00:25:90:C5:F6:64  gpu6.5          10.141.0.11    internalnet    [  UP  ]         
 +
PhysicalNode          gpuNode12        00:25:90:C6:FB:46  gpu6.5          10.141.0.12    internalnet    [  UP  ]         
 +
PhysicalNode          gpuNode13        00:25:90:C5:F6:74  gpu6.5          10.141.0.13    internalnet    [  UP  ]         
 +
PhysicalNode          gpuNode14        00:25:90:C5:25:18  gpu6.5          10.141.0.14    internalnet    [ INSTALLER_UNREACHABLE ] (prov+
 +
PhysicalNode          gpuNode15        00:25:90:C5:F3:60  gpu6.5          10.141.0.15    internalnet    [  UP  ]         
 +
PhysicalNode          gpuNode16        00:25:90:C5:F4:4E  gpu6.5          10.141.0.16    internalnet    [  UP  ]         
 +
PhysicalNode          storage1        00:25:90:CA:64:96  default          10.141.0.17    internalnet    [  UP  ] health check failed
 +
PowerDistributionUnit  pdu1            00:00:00:00:00:00                  10.141.161.251  internalnet    [  UP  ]         
 +
PowerDistributionUnit  pdu2            00:00:00:00:00:00                  10.141.160.253  internalnet    [  UP  ]         
 +
</syntaxhighlight>
 +
 +
List the networks configured
 +
<syntaxhighlight>
 +
[root@head1 ~]# cmsh
 +
[head1]% network list
 +
Name (key)        Type        Netmask bits  Base address    Domain name          IPv6
 +
------------------ ------------ -------------- ---------------- -------------------- ----
 +
externalnet        External    24            192.168.253.0    elyone.local        no 
 +
failovernet        Internal    16            10.151.0.0      failover.cluster    no 
 +
globalnet          Global      0              0.0.0.0          cm.cluster          no 
 +
ibnet              Internal    16            10.149.0.0      ib.cluster          no 
 +
internalnet        Internal    16            10.141.0.0      eth.cluster          no 
 +
ipminet            Internal    16            10.141.0.0      ipmi.cluster        no 
 +
</syntaxhighlight>
  
 
== Useful commands ==
 
== Useful commands ==
Line 28: Line 72:
  
 
moves to the level above
 
moves to the level above
 +
 +
<syntaxhighlight>
 +
[bright-head]% device
 +
[bright-head->device]% ..
 +
[bright-head]%
 +
</syntaxhighlight>
  
 
* quit
 
* quit
  
 
quits cmsh
 
quits cmsh

Latest revision as of 22:34, 2 October 2014

Basic Usage

Bright can be run through several command line tools. The most important one is CMSH. CMSH is an easy to use tool.

to start the tool simply run the command:

cmsh

Check cluster health

Check the devices

[root@head1 ~]# cmsh
[head1]% device list 
Type                   Hostname (key)   MAC                Category         Ip              Network        Status                          
---------------------- ---------------- ------------------ ---------------- --------------- -------------- --------------------------------
EthernetSwitch         switch01         00:00:00:00:00:00                   10.141.253.1    internalnet    [  DOWN  ] health check failed
HeadNode               head1            00:25:90:C9:C9:00                   10.141.255.254  internalnet    [   UP   ] health check failed
HeadNode               head2            00:25:90:C9:CA:70                   10.141.255.253  internalnet    [   UP   ] health check failed
PhysicalNode           gpuNode01        00:25:90:C5:F5:36  gpu6.5           10.141.0.1      internalnet    [ INSTALLER_UNREACHABLE ] (wait+
PhysicalNode           gpuNode02        00:25:90:96:24:C6  gpu6.5           10.141.0.2      internalnet    [   UP   ] health check failed
PhysicalNode           gpuNode03        00:25:90:C6:FC:E4  gpu6.5           10.141.0.3      internalnet    [   UP   ]           
PhysicalNode           gpuNode04        00:25:90:C5:F5:C2  gpu6.5           10.141.0.4      internalnet    [   UP   ] health check failed
PhysicalNode           gpuNode05        00:25:90:C5:F5:E0  gpu6.5           10.141.0.5      internalnet    [   UP   ] health check failed
PhysicalNode           gpuNode06        00:25:90:C5:24:D6  gpu6.5           10.141.0.6      internalnet    [   UP   ]           
PhysicalNode           gpuNode07        00:25:90:C5:F3:8A  gpu6.5           10.141.0.7      internalnet    [   UP   ]           
PhysicalNode           gpuNode08        00:25:90:C5:F4:E8  gpu6.5           10.141.0.8      internalnet    [   UP   ]           
PhysicalNode           gpuNode09        00:25:90:C5:24:F6  gpu6.5           10.141.0.9      internalnet    [   UP   ]           
PhysicalNode           gpuNode10        00:25:90:C5:F5:26  gpu6.5           10.141.0.10     internalnet    [   UP   ]           
PhysicalNode           gpuNode11        00:25:90:C5:F6:64  gpu6.5           10.141.0.11     internalnet    [   UP   ]           
PhysicalNode           gpuNode12        00:25:90:C6:FB:46  gpu6.5           10.141.0.12     internalnet    [   UP   ]           
PhysicalNode           gpuNode13        00:25:90:C5:F6:74  gpu6.5           10.141.0.13     internalnet    [   UP   ]           
PhysicalNode           gpuNode14        00:25:90:C5:25:18  gpu6.5           10.141.0.14     internalnet    [ INSTALLER_UNREACHABLE ] (prov+
PhysicalNode           gpuNode15        00:25:90:C5:F3:60  gpu6.5           10.141.0.15     internalnet    [   UP   ]           
PhysicalNode           gpuNode16        00:25:90:C5:F4:4E  gpu6.5           10.141.0.16     internalnet    [   UP   ]           
PhysicalNode           storage1         00:25:90:CA:64:96  default          10.141.0.17     internalnet    [   UP   ] health check failed
PowerDistributionUnit  pdu1             00:00:00:00:00:00                   10.141.161.251  internalnet    [   UP   ]           
PowerDistributionUnit  pdu2             00:00:00:00:00:00                   10.141.160.253  internalnet    [   UP   ]

List the networks configured

[root@head1 ~]# cmsh 
[head1]% network list
Name (key)         Type         Netmask bits   Base address     Domain name          IPv6
------------------ ------------ -------------- ---------------- -------------------- ----
externalnet        External     24             192.168.253.0    elyone.local         no  
failovernet        Internal     16             10.151.0.0       failover.cluster     no  
globalnet          Global       0              0.0.0.0          cm.cluster           no  
ibnet              Internal     16             10.149.0.0       ib.cluster           no  
internalnet        Internal     16             10.141.0.0       eth.cluster          no  
ipminet            Internal     16             10.141.0.0       ipmi.cluster         no

Useful commands

  • Alias

The alias command can be useful to allow users to use the normal linux commands. For example to use the ls command instead of help run the command:

[root@bright-head ~]# cmsh
[bright-head]% alias ls help
  • Help

lists available options

  • exit / ..

moves to the level above

[bright-head]% device
[bright-head->device]% ..
[bright-head]%
  • quit

quits cmsh