Reset Search
 

 

Article

How do I execute SLX-OS CLI commands directly from the MMVM Linux shell on the SLX?

« Go Back

Information

 
TitleHow do I execute SLX-OS CLI commands directly from the MMVM Linux shell on the SLX?
Question
How do I execute SLX-OS CLI commands directly from the MMVM Linux shell on the SLX?

Environment
Answer

From the MMVM Linux shell, the cli_run -c "<SLX-OS CLI command>" utility enables you to execute a single SLX-OS CLI privileged EXEC command:





[admin@R20-F4]# cli_run -c "show version"



SLX-OS Operating System Software

SLX-OS Operating System Version: 17r.1.00

Copyright (c) 1995-2017 Brocade Communications Systems, Inc.

Firmware name:      17r.1.00slxos17r.1.00_rel_170310_1657

Build Time:         02:13:19 Mar 11, 2017

Install Time:       17:39:39 Mar 13, 2017

Kernel:             2.6.34.6



Control Processor:  GenuineIntel with 7795 MB of memory



System Uptime:   0days 6hrs 8mins 11secs



Slot    Name    Primary/Secondary Versions                         Status

---------------------------------------------------------------------------

M1      SLX-OS  17r.1.00slxos17r.1.00_rel_170310_1657              STANDBY

                17r.1.00slxos17r.1.00_rel_170310_1657             

M2      SLX-OS  17r.1.00slxos17r.1.00_rel_170310_1657              ACTIVE*

                17r.1.00slxos17r.1.00_rel_170310_1657             

L1/0    SLX-OS  17r.1.00slxos17r.1.00_rel_170310_1657              ACTIVE

                17r.1.00slxos17r.1.00_rel_170310_1657             

L3/0    SLX-OS  17r.1.00slxos17r.1.00_rel_170310_1657              ACTIVE

                17r.1.00slxos17r.1.00_rel_170310_1657             

L4/0    SLX-OS  17r.1.00slxos17r.1.00_rel_170310_1657              ACTIVE

                17r.1.00slxos17r.1.00_rel_170310_1657              



[admin@R20-F4]#





From the MMVM Linux shell, the cli_run -f <SLX-OS CLI command filename> utility enables you to execute multiple SLX-OS CLI commands contained in a file.



In the example below, the file "test" contains the commands to be executed:



[admin@R20-F4]# more test

show clock

term len 0

show slot

[admin@R20-F4]#





[admin@R20-F4]# cli_run -f test

Welcome to the Brocade SLX-OS Software

admin connected from 127.0.0.1 using console on R20-F4

R20-F4# show clock | nomore

2017-03-16 09:27:59 America/Los_Angeles

R20-F4# term len 0

Successfully set This Session Terminal Length to 0.

R20-F4# show slot | nomore



Slot Type Description ID Status

----------------------------------------------------------------------

M1 MM v5 Management Module 179 ENABLED

M2 MM v5 Management Module 179 ENABLED

S1 VACANT

S2 SFM4 v4 Switch Fabric Module 183 ENABLED

S3 VACANT

S4 SFM4 v4 Switch Fabric Module 183 ENABLED

S5 VACANT

S6 SFM4 v4 Switch Fabric Module 183 ENABLED

L1 LC72X10G v5 72-port 10GE card 180 ENABLED

L2 VACANT

L3 LC36x100G v3 36-port 100GE card 181 ENABLED

L4 LC36x100G v3 36-port 100GE card 181 ENABLED



R20-F4#

[admin@R20-F4]#

Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255