Redirecting Show Command Output Using Sscp; Searching And Filtering From The --More-- Prompt - Cisco MDS 9000 Series Configuration Manual

Hide thumbs Also See for MDS 9000 Series:
Table of Contents

Advertisement

Understanding the Command-Line Interface

Redirecting show Command Output Using sscp

You can use the Streamed Secure Copy Protocol (sscp) to redirect the show command output to a file on a
remote server.
sscp connection-name destination-file
You must create a named Secure Shell (SSH) connection before using sscp.
Note
The following example shows how to copy show command output to a remote server using sscp:
switch# ssh name mybox testuser 172.23.152.34
testuser@172.23.152.34's password: Ctrl-C
switch# show running-config | sscp mybox /users/testuser/sscp_output

Searching and Filtering from the --More-- Prompt

You can search and filter output from --More–- prompts in the show command output.
This table describes the --More-- prompt commands.
Table 13: --More-- Prompt Commands
Commands
[lines]<space>
[lines]z
[lines]<return>
OL-29291-02
READ THIS BEFORE ATTEMPTING TO LOGON
This System is for the use of authorized users only.
using this computer without authority, or in excess of their
...
Redirecting show Command Output Using sscp
WARNING!!!
Description
Displays output lines for either the specified number
of lines or the current screen size.
Displays output lines for either the specified number
of lines or the current screen size. If you use the lines
argument, that value becomes the new default screen
size.
Displays output lines for either the specified number
of lines or the current default number of lines. The
initial default is 1 line. If you use the optional lines
argument, that value becomes the new default number
of lines to display for this command.
Cisco MDS 9000 Family NX-OS Fundamentals Configuration Guide
Individuals
61

Advertisement

Table of Contents
loading

Table of Contents