• No se han encontrado resultados

ANEXO 4. INFORME FINAL NIVEL III CICLO 2.015

5. DEL SISTEMA DE GESTIÓN AMBIENTAL

Use display diff to display the configuration differences between two configuration files.

Syntax

display diff configfile file-name-s { configfile file-name-d | current-configuration |

startup-configuration }

display diff current-configuration { configfile file-name-d | startup-configuration }

display diff startup-configuration { configfile file-name-d | current-configuration }

Views

Any view

Predefined user roles

network-admin network-operator

Parameters

configfile file-name-s: Specifies the source configuration file for comparison.

configfile file-name-d: Specifies the target configuration file for comparison.

current-configuration: Specifies the current startup configuration file. In the display diff current-configuration command, this keyword specifies the source configuration file for comparison. In the display diff configfile file-name-s and display diff startup-configuration

commands, this keyword specifies the target configuration file.

startup-configuration: Specifies the next-startup configuration file. In the display diff startup-configuration command, this keyword specifies the source configuration file for comparison. In the display diff configfile file-name-s and display diff current-configuration

commands, this keyword specifies the target configuration file.

Usage guidelines

If you specify the startup-configuration keyword, the system searches the next-startup configuration file for comparison in the following order:

1. The main next-startup configuration file.

2. The backup next-startup configuration file if the main next-startup configuration file is unavailable or corrupt.

If both the main and backup next-startup configuration files are unavailable or corrupt, the system prompts that the next-startup configuration file does not exist.

Examples

# Display the configuration differences between test.cfg and testsys.cfg.

<Sysname> display diff configfile test.cfg configfile testsys.cfg --- flash:/test.cfg +++ flash:/testsys.cfg @@ -6,7 +6,7 @@ # stp global enable # - sysname test + sysname test1 #

#

# Display the configuration differences between test.cfg and testsys.cfg on the master and subordinate devices.

<Sysname>display diff configfile slot1#flash:/test.cfg configfile slot2#flash:/testsys.cfg --- flash:/test.cfg +++ slot2#flash:/testsys.cfg @@ -6,7 +6,7 @@ # stp global enable # - sysname TEST + sysname TEST1 #

telnet server enable #

# Display the configuration differences between the current startup configuration file and the next-startup configuration file.

<TEST> display diff current-configuration startup-configuration --- Current configuration +++ Startup configuration @@ -6,7 +6,7 @@ # stp global enable # - sysname TEST + sysname TEST1 #

telnet server enable #

Table 21 Command output

Field Description - - - file1.cfg Name and directory of the source configuration file. +++ file2.cfg Name and directory of the target configuration file.

@@ -linenumber1,number1

+linenumber2,number2 @@

Location summary for a command line difference:

• -linenumber1 represents the line number of the different command line in the source configuration file.

• +linenumber2 represents the line number of the different command line in the target configuration file.

number1 represents the total number of lines excerpted from the source configuration file for comparison. The lines help you further locate the difference.

number2 represents the total number of lines excerpted from the target configuration file for comparison. The lines help you further locate the difference.

Field Description

- cmd

+ cmd

Different command lines in the compared configuration files: • The command line in the source configuration file is prefixed

with a minus sign (-).

• The command line in the target configuration file is prefixed with a plus sign (+).

cmd The command line without a minus sign (-) or a plus sign (+)

provides a context for locating the different command lines.

Related commands

display current-configuration

display current-configuration diff

display saved-configuration

display saved-configuration

Use display saved-configuration to display the contents of the configuration file for the next system startup.

Syntax

display saved-configuration

Views

Any view

Predefined user roles

network-admin network-operator

Usage guidelines

Use this command to verify that important settings have been saved to the configuration file for the next system startup.

This command selects the configuration file to display in the following order:

1. If the main startup configuration file is available, this command displays the contents of the main startup configuration file.

2. If only the backup startup configuration file is available, this command displays the contents of the backup file.

3. If both the main and backup startup configuration files are not available, this command displays nothing.

Examples

# Display the contents of the configuration file for the next system startup.

<Sysname> display saved-configuration # version 7.1.045, Release 1111 # sysname Sysname # ftp server enable

telnet server enable #

domain default enable system # vlan 1 # domain system # ---- More ---- Related commands reset saved-configuration save

display startup

Use display startup to display the names of the current startup configuration file and the next-startup configuration files.

Syntax

display startup

Views

Any view

Predefined user roles

network-admin network-operator

Usage guidelines

Current startup configuration file is the configuration file that has been loaded. Next-startup configuration file is the configuration file used at the next startup.

All IRF members use the same current startup configuration file as the master. After a master/subordinate switchover, it is normal that the current startup configuration files on them are displayed as NULL. This is because the new master continues to run with the running configuration rather than rebooting with a startup configuration file.

Examples

# Display names of the startup configuration files.

<Sysname> display startup MainBoard:

Current startup saved-configuration file: flash:/startup.cfg Next main startup saved-configuration file: flash:/startup.cfg Next backup startup saved-configuration file: NULL

Slot 1:

Current startup saved-configuration file: flash:/startup.cfg Next main startup saved-configuration file: flash:/startup.cfg Next backup startup saved-configuration file: NULL

Table 22 Command output

Field Description MainBoard Displays the startup configuration files on the master device. Current startup saved-configuration file Configuration file that the device has started up with. Next main startup saved-configuration file Main configuration file to be used at the next startup. Next backup startup saved-configuration file Backup configuration file to be used at the next startup. Slot n Displays the startup configuration files on member device n.

Related commands

startup saved-configuration

Documento similar