Cisco Nexus Useful Commands

Version 4

    Here are some useful commands when running Cisco Nexus switches:

     

    1. Run the following command in Cisco Nexus to keep the ssh in an open session (no logout).

    Configure terminal

       line console

          exec-timeout 0

       line vty

         exec-timeout 0

     

    2. Copy running config:

     

    To copy configuration to a file use:

    switch# copy running-config bootflash:test

     

    To run that configuration again, use:

    switch (config) # copy bootflash:test running-config

     

    3. Enable and Disable ECN

     

    To enable ECN run:

    switch (config) # hardware random-detect min-thresh 10g 64000 40g 4000 max-thresh 10g 128000 40g 256000 ecn qos-group 4

    switch (config) # hardware pq-drain 10g 9900 40g 39900

     

    To disable ECN run:

    switch (config) # no hardware random-detect min-thresh 10g 64000 40g 4000 max-thresh 10g 128000 40g 256000 ecn qos-group 4

    switch (config) # no hardware pq-drain 10g 9900 40g 39900

     

    Make sure that your qos-group is 4.