Monday, May 30, 2011

The NX-OS 'no-more' output modifier

n5010# sh run

!Command: show running-config
!Time: Thu May 26 09:35:56 2011

version 4.2(1)N2(1)
feature telnet
feature lldp

username admin password 5 $1$X.DnsH.U$o4lND1RHUD3KKNM/oHLYf1  role network-admin
no password strength-check
ip domain-lookup
ip host n5010 10.1.1.63
hostname n5010
snmp-server user admin network-admin auth md5 0xaf2270df999b7075e1aeafcc425b23b0
 priv 0xaf2270df999b7075e1aeafcc425b23b0 localizedkey

vrf context management
  ip route 0.0.0.0/0 10.1.1.1
vlan 1

interface Ethernet1/1

--More--
n5010# 
n5010# sh run | ?
  cut      Print selected parts of lines.
  diff     Show difference between current and previous invocation (creates
           temp files: remove them with 'diff-clean' command and dont use it 
           on commands with big outputs, like 'show tech'!) 
  egrep    Egrep - print lines matching a pattern
  grep     Grep - print lines matching a pattern
  head     Display first lines
  human    Output in human format (if permanently set to xml, else it will turn
           on xml for next command) 
  last     Display last lines
  less     Filter for paging
  no-more  Turn-off pagination for command output
  sed      Stream Editor
  sort     Stream Sorter
  tr       Translate, squeeze, and/or delete characters
  uniq     Discard all but one of successive identical lines
  vsh      The shell that understands cli command
  wc       Count words, lines, characters
  xml      Output in xml format (according to .xsd definitions)
  begin    Begin with the line that matches
  count    Count number of lines
  end      End with the line that matches
  exclude  Exclude lines that match
  include  Include lines that match

n5010# sh run | no-more ?
  <cr>   

n5010# sh run | no-more 

!Command: show running-config
!Time: Thu May 26 09:36:10 2011

version 4.2(1)N2(1)
feature telnet
feature lldp

username admin password 5 $1$X.DnsH.U$o4lND1RHUD3KKNM/oHLYf1  role network-admin
no password strength-check
ip domain-lookup
ip host n5010 10.1.1.63
hostname n5010
snmp-server user admin network-admin auth md5 0xaf2270df999b7075e1aeafcc425b23b0
 priv 0xaf2270df999b7075e1aeafcc425b23b0 localizedkey

vrf context management
  ip route 0.0.0.0/0 10.1.1.1
vlan 1

interface Ethernet1/1

interface Ethernet1/2

interface Ethernet1/3

interface Ethernet1/4

interface Ethernet1/5

interface Ethernet1/6

interface Ethernet1/7

interface Ethernet1/8

interface Ethernet1/9

interface Ethernet1/10

interface Ethernet1/11

interface Ethernet1/12

interface Ethernet1/13

interface Ethernet1/14

interface Ethernet1/15

interface Ethernet1/16

interface Ethernet1/17

interface Ethernet1/18

interface Ethernet1/19

interface Ethernet1/20

interface Ethernet2/1

interface Ethernet2/2

interface Ethernet2/3

interface Ethernet2/4

interface Ethernet2/5

interface Ethernet2/6

interface mgmt0
  ip address 10.1.1.63/24
line console
boot kickstart bootflash:/n5000-uk9-kickstart.4.2.1.N2.1.bin
boot system bootflash:/n5000-uk9.4.2.1.N2.1.bin 


n5010#

The equivalent command to achieve the same result is terminal length 0 EXEC command.
n5010# terminal ?
  alias             Show aliases (if no arugments); create 'exec' aliases (not
                    persistent). Persistent aliases are in config mode, see
                    'cli alias'
  color             Enable colorization of prompt(green if last command ok, red
                    if error), command line (blue), output (default color)
  dont-ask          Don't ask 'are you sure' questions, take default answer
                    instead
  edit-mode         Set command line edition keys (vi or emacs; emacs is
                    default)
  event-manager     Event manager cli event
  history           Configure terminal history properties
  length            Set number of lines on a screen
  log-all           Accounting log all commands including the show commands
  monitor           Copy Syslog output to the current terminal line
  no                Negate a command or set its defaults
  output            How output of show commands should be formated
  redirection-mode  Set the redirection mode
  session-timeout   Set session timeout
  terminal-type     Set the terminal type
  tree-update       Updates the main parse tree
  verify-only       Verify command and do not execute
  width             Set width of the display terminal

n5010# terminal length ?
  <0-511>  Number of lines on screen (0 for no pausing)

n5010# terminal length 0
n5010#

No comments:

Post a Comment