Forum Discussion

John_Ogle_45372's avatar
John_Ogle_45372
Icon for Nimbostratus rankNimbostratus
Aug 20, 2014

viprion - clsh commands

A couple of viprion questions please.

 

1) Is there a list of all the specific "clsh" commands?

 

2) When to use clsh and tmsh clsh? 1 may answer this.

 

3) What is the command to see which blade is the primary?

 

4) I cant seem to get the "clsh --slot" command correct? What is correct syntax? Here is what I have tried.

 

[root@work:/S1-green-S:Active:Standalone] config clsh Usage: /usr/bin/clsh [options] ... --slot=n,n Slots to include, or "local", or "all" [all] --color=c,c Colors to include, or "all" [green] [root@work:/S1-green-S:Active:Standalone] config

 

[root@work:/S1-green-S:Active:Standalone] config clsh --slot=3 all === slot 2 addr 127.3.0.2 color blue === === slot 3 addr 127.3.0.3 color green === bash: all: command not found === slot 4 addr 127.3.0.4 color blue === === slot 1 addr 127.3.0.1 color green ===

 

[root@work:/S3-green-P:Active:Standalone] config clsh --slot=3 Usage: /usr/bin/clsh [options] ... --slot=n,n Slots to include, or "local", or "all" [all] --color=c,c Colors to include, or "all" [green] [root@work:/S3-green-P:Active:Standalone] config

 

Thank you,

 

  • 3) What is the command to see which blade is the primary?

    [root@VIP4800-R77-S28:/S1-green-P:Active:Standalone] config  tmsh show sys cluster|grep -i primary\ slot\ id
    Primary Slot ID         1
    

    4) I cant seem to get the "clsh --slot" command correct? What is correct syntax? Here is what I have tried.

    e.g.

    [root@VIP4800-R77-S28:/S1-green-P:Active:Standalone] config  clsh --slot=2 date
    === slot 2 addr 127.3.0.2 color green ===
    Wed Aug 20 16:05:46 PDT 2014
    === slot 3 addr 127.3.0.3 color blue ===
    === slot 4 addr 127.3.0.4 color blue ===
    === slot 5 addr 127.3.0.5 color blue ===
    === slot 6 addr 127.3.0.6 color blue ===
    === slot 7 addr 127.3.0.7 color blue ===
    === slot 8 addr 127.3.0.8 color blue ===
    === slot 1 addr 127.3.0.1 color green ===