Configuring Session Manager

Similar documents
Configuring Rate Limits

Configuring sflow. Information About sflow. sflow Agent. This chapter contains the following sections:

Configuring WCCPv2. Information About WCCPv2. Send document comments to CHAPTER

Configuring IP TCP MSS

Configuring NTP. Information About NTP. This chapter contains the following sections:

Configuring Layer 2 Switching

Configuring NTP. Information About NTP. Information About the NTP Server. This chapter contains the following sections:

Configuring NTP. Information About NTP. Information About the NTP Server. This chapter contains the following sections:

This chapter describes how to configure the Network Time Protocol (NTP) on Cisco NX-OS devices. This chapter includes the following sections:

Configuring NTP. Information About NTP. Information About the NTP Server. This chapter contains the following sections:

Configuring NTP. Information About NTP. This chapter contains the following sections:

Configuring Local SPAN and ERSPAN

Configuring Policy-Based Routing

Configuring Network QoS

C Commands. Cisco Nexus 5500 Series NX-OS System Management Command Reference 1

Configuring Traffic Storm Control

Configuring Layer 2 Switching

Configuring Online Diagnostics

Configuring Password Encryption

Configuring Password Encryption

Configuring Mutation Mapping

Configuring Classification

Configuring Terminal Settings and Sessions

Configuring Traffic Storm Control

Configuring DNS. Finding Feature Information. Information About DNS Clients. DNS Client Overview

This chapter describes how to configure the Configure Replace feature.

Configuring ECMP for Host Routes

Configuring Unicast RPF

Configuring sflow. About sflow. sflow Agent

Configuring DHCP Snooping

This chapter describes how to configure the NetFlow feature on Cisco NX-OS devices.

Configuring EEE. Finding Feature Information. This chapter describes how to configure Energy Efficient Ethernet (EEE) on Cisco NX-OS devices.

Configuring User Accounts and RBAC

IVR Zones and Zonesets

Send document comments to

Configuring QoS on VLANs

Configuring Policy-Based Routing

Configuring Online Diagnostics

Configuring SPAN. About SPAN. SPAN Sources

Working with Configuration Files

Basic Device Management

Monitoring QoS Statistics

Configuring Layer 3 Interfaces

Configuring a MAC ACL

Configuring Private VLANs Using NX-OS

Class-based Quality-of-Service MIB

Configuring SSH and Telnet

Configuring DHCP. Finding Feature Information

Configuring Layer 3 Virtualization

Configuring DHCP. About DHCP Snooping, page 2 About the DHCPv6 Relay Agent, page 8

Configuring System Message Logging

Configuring User Accounts and RBAC

Nexus 7000 and 7700 Series Switches Optimized ACL Logging Configuration Example

Configuring TACACS+ About TACACS+

Configuring Rate Limits

Configuring SPAN. Finding Feature Information. About SPAN. SPAN Sources

Configuring NetFlow. About NetFlow. This chapter describes how to configure the NetFlow feature on Cisco NX-OS devices.

Configuring User Accounts and RBAC

Configuring TACACS+ Information About TACACS+ Send document comments to CHAPTER

Configuring Static and Dynamic NAT Translation

Configuring Rate Limits

Configuring IP ACLs. About ACLs

Configuring STP Extensions Using Cisco NX-OS

Configuration Examples for DHCP, on page 37 Configuration Examples for DHCP Client, on page 38 Additional References for DHCP, on page 38

Configuring Static and Dynamic NAT Translation

Configuring TAP Aggregation and MPLS Stripping

Configuring Static MPLS

Configuring the Embedded Event Manager

Finding Feature Information, page 2 Information About DHCP Snooping, page 2 Information About the DHCPv6 Relay Agent, page 8

B Commands. bandwidth (interface) Send document comments to

Configuring IP Tunnels

Configuring IPv4. Finding Feature Information. This chapter contains the following sections:

Configuring Layer 3 Interfaces

Configuring Q-in-Q VLAN Tunnels

Configuring TAP Aggregation and MPLS Stripping

Configuring Port Channels

Managing the Unicast RIB and FIB

Configuring NetFlow. Information About NetFlow. What is a Flow. This chapter contains the following sections:

InterAS Option B. Information About InterAS. InterAS and ASBR

Configuring SNMP. Information About SNMP. SNMP Functional Overview. This chapter contains the following sections:

Configuring the Catena Solution

On the Cisco Nexus 5548 Switch, Fibre Channel ports and VSAN ports cannot be configured as ingress source ports in a SPAN session.

Send document comments to name List name. The range of valid values is 1 to 64.

Configuring Static Routing

Managing the Unicast RIB and FIB, on page 5

Configuring Q-in-Q VLAN Tunnels

Configuring SNMP. About SNMP. SNMP Functional Overview

Managing the Unicast RIB and FIB, page 5

Configuring Online Diagnostics

Configuring MAC Address Tables

Configuring SPAN. Configuring SPAN. SPAN Sources. This chapter includes the following sections: Configuring SPAN, page 1

Configuring Advanced BGP

Configuring IP ACLs. About ACLs

Scheduling Maintenance Jobs

Configuring 802.1X. Finding Feature Information. Information About 802.1X

Upgrading or Downgrading the Cisco Nexus 3500 Series NX-OS Software

Configuring System Message Logging

Configuring Port Channels

Configuring an IP ACL

Configuring IGMP Snooping

Transcription:

This chapter describes how to configure Session Manager on Cisco NX-OS devices. This chapter contains the following sections: About Session Manager, page 1 Licensing Requirements for Session Manager, page 2 Prerequisites for Session Manager, page 2 Guidelines and Limitations for Session Manager, page 2, page 2 Verifying the Session Manager Configuration, page 5 Configuration Example for Session Manager, page 5 Additional References, page 6 About Session Manager Session Manager allows you to implement your configuration changes in batch mode. Session Manager works in the following phases: Configuration session Creates a list of commands that you want to implement in Session Manager mode. Validation Provides a basic semantic check on your configuration. Cisco NX-OS returns an error if the semantic check fails on any part of the configuration. Verification Verifies the configuration as a whole, based on the existing hardware and software configuration and resources. Cisco NX-OS returns an error if the configuration does not pass this verification phase. Commit Cisco NX-OS verifies the complete configuration and applies the changes to the device. If a failure occurs, Cisco NX-OS reverts to the original configuration. Abort Discards the configuration changes before implementation. 1

High Availability You can optionally end a configuration session without committing the changes. You can also save a configuration session. High Availability Session Manager sessions remain available after a supervisor switchover. Sessions are not persistent across a software reload. Licensing Requirements for Session Manager Product Cisco NX-OS License Requirement Session Manager requires no license. Any feature not included in a license package is bundled with the nx-os image and is provided at no extra charge to you. For a complete explanation of the Cisco NX-OS licensing scheme, see the Cisco NX-OS Licensing Guide. Prerequisites for Session Manager Make sure that you have the privilege level required to support the Session Manager commands that you plan to use. Guidelines and Limitations for Session Manager Session Manager has the following configuration guidelines and limitations: Session Manager supports only access control list (ACL) and quality of service (QoS) features. You can create up to 32 configuration sessions. You can configure a maximum of 20,000 commands across all sessions. You cannot simultaneously execute configuration commands in more then one configuration session or configuration terminal mode. Parallel configurations (for example, one configuration session and one configuration terminal) might cause validation or verification failures in the configuration session. If an interface reloads while you are configuring that interface in a configuration session, Session Manager may accept the commands even though the interface is not present in the device at that time. Note Be aware that the Cisco NX-OS commands might differ from Cisco IOS commands. 2

Creating a Session Creating a Session You can create up to 32 configuration sessions. Procedure Step 1 Step 2 Step 3 or Action configure session name switch# configure session myacls switch(config-s)# show configuration session [name] switch(config-s)# show configuration session myacls save location switch(config-s)# save bootflash:sessions/myacls Creates a configuration session and enters session configuration mode. The name can be any alphanumeric string. Displays the contents of the session. Displays the contents of the session. Saves the session to a file. The location can be in bootflash:, slot0:, or volatile:. Configuring ACLs in a Session You can configure ACLs within a configuration session. Procedure Step 1 Step 2 Step 3 or Action configure session name switch# configure session myacls switch(config-s)# ip access-list name switch(config-s)# ip access-list acl1 switch(config-s-acl)# permit protocol source destination switch(config-s-acl)# permit tcp any any Creates a configuration session and enters session configuration mode. The name can be any alphanumeric string. Creates an ACL and enters a configuration mode for that ACL. Adds a permit statement to the ACL. 3

Verifying a Session Step 4 or Action interface interface-type number Enters interface configuration mode. Step 5 Step 6 switch(config-s-acl)# interface ethernet 2/1 switch(config-s-if)# ip access-group name {in out} switch(config-s-if)# ip access-group acl1 in show configuration session [name] switch(config-s-if)# show configuration session myacls Specifies the direction of traffic the access group is applied to. Displays the contents of the session. Verifying a Session Use the following command in session mode to verify a session: verify [verbose] switch(config-s)# verify Verifies the configuration as a whole, based on the existing hardware and software configuration and resources. Cisco NX-OS returns an error if the configuration does not pass this verification. Committing a Session Use the following command in session mode to commit a session: commit [verbose] switch(config-s)# commit Validates the configuration changes made in the current session and applies valid changes to the device. If the validation fails, Cisco NX-OS reverts to the original configuration. Saving a Session Use the following command in session mode to save a session: 4

Discarding a Session save location switch(config-s)# save bootflash:sessions/myacls Saves the session to a file. The location can be in bootflash:, slot0:, or volatile:. Discarding a Session Use the following command in session mode to discard a session: abort switch(config-s)# abort switch# Discards the configuration session without applying the changes. Verifying the Session Manager Configuration To display the Session Manager configuration information, perform one of the following tasks: show configuration session [name] show configuration session status [name] show configuration session summary Displays the contents of the configuration session. Displays the status of the configuration session. Displays a summary of all the configuration sessions. Configuration Example for Session Manager This example shows how to create and commit an ACL configuration using Session Manager: switch# configure session ACL_tcp_in Config Session started, Session ID is 1 Enter configuration commands, one per line. End with CNTL/Z. switch(config-s)# ip access-list ACL1 switch(config-s-acl)# permit tcp any any switch(config)# interface e 7/1 switch(config-if)# ip access-group ACL1 in switch(config-if)# exit switch(config)# exit switch# config session ACL_tcp_in Config Session started, Session ID is 1 Enter configuration commands, one per line. End with CNTL/Z. switch(config-s)# verify Verification Successful switch(config-s)# commit Commit Successful 5

Additional References switch# Additional References Related Documents Related Topic Configuration files Document Title Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide 6