Cisco Systems OL-8978-02 manual Using Special Variables, Applying a User-Defined Macro, 55-50

Page 50

Chapter 55 Configuring a VoIP Network

Using SmartPorts

In the above examples, $CDPVER is a global variable and $DATAVLAN and $AUXVLAN are per-port variables. $DATAVLAN is also defined as a global variable. If a macro is using the variable $DATAVLAN and the macro is applied to a port other than ports 3/2 or 3/3, the macro would use the value of 77 for that port. After a variable and its values are defined, they are stored in NVRAM.

Using Special Variables

A macro could have a variable that is not predefined; the variable would get its value when the macro is applied. #MODPORT is one such variable. For example, assume that a macro has the variable #MODPORT in its definition. When the macro is applied on a module/port, the variable #MODPORT is replaced by the module/port (mod/port) on which the macro is applied. An example is as follows:

Console> (enable) set macro name videophone

Enter macro commands one per line. End with character @. set port enable #MODPORT

set vlan $DATAVLAN #MODPORT

set port auxiliaryvlan #MODPORT $AUXVLAN

@

Console> (enable)

In the above example, #MODPORT is a special variable that gets its value when the macro videophone is applied on a port.

Note #MODPORT is currently the only special variable supported.

Applying a User-Defined Macro

After the macro is created, it can be applied to a port. When a macro is applied to a port, the commands in the macro definition are executed on the switch. If the commands in the macro definition use any variables, the variables are replaced by their respective user-defined values and then the commands are executed. Use the set port macro mod/port name_of_macro command to apply a macro to a port.

To create and execute a user-defined macro, perform these steps:

Step 1 Create the macro by entering the following commands:

Console> (enable) set macro name videophone

Enter macro commands one per line. End with character @.

set port enable #MODPORT

set vlan $DATAVLAN #MODPORT

set port auxiliaryvlan #MODPORT $AUXVLAN

@

Macro videophone successfully created

Console> (enable)

Step 2 Define the macro variables by entering the following commands:

Console> (enable) set macro variable $DATAVLAN 3 3/2

Variable DATAVLAN successfully created

Console> (enable) set macro variable $DATAVLAN 5 3/3

Console> (enable) set macro variable $AUXVLAN 4 3/2

 

Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7

55-50

OL-8978-02

Image 50
Contents A P T E R 55-1Cisco IP Phone 55-255-3 55-4 Analog Station Gateway Access GatewaysCisco CallManager 55-5Digital Trunk Gateway FXS Interface FeaturesAnalog Trunk Gateway 55-6Link Management Digital Signal Processing Per T1/E1 PortConverged Voice Gateway 55-7How a Call Is Made 55-8Switch-to-Phone Connections 55-9Set port inlinepower Set inlinepower defaultallocation Voice-Related CLI CommandsCLI Commands Ethernet Module1 WS-X6608-T1/E12 WS-X6624-FXS3 Show port inlinepower55-11 Configuring Per-Port Power ManagementShow environment power 55-12 Task CommandShow module mod 55-13 Power Management ModesShow version mod 55-14 Power RequirementsPhone Class Required Power W Powering Off the Phone Available PowerWall-Powered Phones Phone Removal55-16 Phone Detection SummaryHigh-Availability Support Set port inlinepower mod/port auto static Setting the Power Mode of a Port or a Group of PortsSetting the Default Power Allocation 55-1755-18 Set inlinepower notify-threshold percentageShow port inlinepower mod /port detail Console show port inlinepower 4/1 detail Displaying the Switch Power Environment for ModulesShow environment power mod Console enable show environment powerUnderstanding the Auxiliary VLANs Configuring the Auxiliary VLANs on Catalyst LAN SwitchesEnter the set port auxiliaryvlan mod/port auxvlanid command 55-20Set port auxiliaryvlan mod /ports vlan Auxiliary Vlan Configuration GuidelinesConfiguring the Auxiliary VLANs Untagged dot1p noneKeyword Action Verifying the Auxiliary Vlan ConfigurationDisabling the Auxiliary VLANs Until an IP Phone is Detected 55-2255-23 Configuring the Access GatewaysConfiguring a Port Voice Interface Show port voice interface mod /port Displaying a Port Voice Interface ConfigurationDisplaying the FDL Statistics Show port voice fdl mod /portField Description Displaying the Port Configuration for the Individual PortsConsole enable show port voice fdl 7/1-3 Show port mod /portConsole show port Port T1/E1 Pstn Interface Module55-26 55-27 Port FXS Analog Interface Module 55-28All call conference transcode ipaddr Displaying the Active Call InformationShow port voice active mod/port 55-29Console show port voice active 3/2 55-30Console show port voice active 55-31 Configuring QoS in the Cisco IP PhoneUnderstanding How QoS Works in the Cisco IP Phone Set port qos mod/ports...trust-ext trusted Configuring QoS in the Cisco IP PhoneSetting the Phone Access Port Trust Mode UntrustedVerifying the Phone Access Port QoS Configuration Configuring a Trusted Boundary to Ensure Port SecuritySetting the Phone Access Port CoS Value 55-33Supported Cisco IP Phones QoS and Cisco IP Phone ConfigurationQoS, Cisco IP Phone, and PC Configuration 55-34Trusted Boundary Configuration Guidelines 55-35Configuring a Trusted Boundary 55-36Verifying a Port’s Trust-Device State Default ConfigurationSpecifying a Cisco IP Phone as the Trust Device 55-37Understanding SmartPorts Macros 55-3855-39 SmartPorts-Cisco IP PhoneSmartPorts-Cisco Softphone SmartPorts Guidelines and Restrictions CLI Interface for SmartPorts Command DescriptionCiscoipphone Command Output 55-41Console enable set port macro 3/1 ciscosoftphone vlan Ciscosoftphone Command OutputConsole enable set port macro 3/1 ciscoipphone vlan Detailed SmartPorts StatementsCiscosoftphone Macro Statement How to Use SmartPorts in Your NetworkCiscoipphone Macro Statement Keyword Port Type55-44 SmartPorts Enhancements in Software ReleaseCiscorouter SmartPorts Template 55-45 Ciscoswitch SmartPorts TemplateCiscodesktop SmartPorts Template Set port macro mod/port ciscodesktop vlan vlan55-46 Ciscoipphone SmartPorts TemplateCiscosoftphone SmartPorts Template Set port macro mod/port ciscosoftphone vlan nativevlanOverview Configuring User-Definable SmartPorts MacrosGlobal SmartPorts Template 55-47Creating User-Defined Macros Using the CLI to Configure User-Definable SmartPorts MacrosConsole enable set macro name videophone 55-4855-49 Modifying Existing User-Defined MacrosDefining Variables 55-50 Using Special VariablesApplying a User-Defined Macro 55-51 Console enable set port macro 3/2 videophoneConsole enable set port macro 3/7 videophone Show macro name nameofmacro show macro all Displaying MacrosDisplaying Macro Variables 55-5255-53 Clearing Macros and Macro VariablesClear macro name nameofmacro clear macro all 55-54 Displaying Macro Port MappingsShow macro map all name nameofmacro port mod/port 55-55 Configuring a Macro within a MacroConsole enable show macro map port 3/2 55-56

OL-8978-02 specifications

Cisco Systems OL-8978-02 is a comprehensive training curriculum designed to enhance the skills and knowledge of network professionals seeking to advance their careers in network management and security. This curriculum offers a significant focus on Cisco networking technologies and concepts, ensuring that learners are well-equipped to handle the intricacies of modern network environments.

One of the primary features of OL-8978-02 is its in-depth coverage of foundational networking concepts, which are crucial for effective network administration. The curriculum includes detailed modules on networking fundamentals, such as OSI and TCP/IP models, LAN and WAN architectures, and network protocols. This solid foundation enables learners to understand how different networking components interact and function together, forming the backbone of corporate and enterprise environments.

In addition to foundational knowledge, OL-8978-02 integrates a strong focus on security technologies and practices. Considering the increasing prevalence of cyber threats, the course emphasizes the importance of implementing robust security measures. Participants will learn about firewalls, intrusion prevention systems, VPNs, and other critical security technologies. This focus ensures that learners are prepared to safeguard networks against evolving security threats, a necessity in today’s digital landscape.

Another distinguishing characteristic of the OL-8978-02 curriculum is its emphasis on hands-on experience. The program often includes practical labs and simulations, allowing participants to apply theoretical knowledge in real-world scenarios. This experiential learning approach is pivotal for solidifying skills and boosting confidence in network management tasks.

Furthermore, OL-8978-02 addresses the latest advancements in networking technology, including software-defined networking (SDN) and cloud computing. By introducing emerging technologies, this curriculum ensures that professionals remain ahead of the curve, ready to adapt to the future demands of networking.

Finally, Cisco Systems OL-8978-02 positions itself not only as an educational tool but also as a career catalyst, providing learners with skills that are highly sought after in the IT job market. Upon completion, participants often find themselves well-prepared for various Cisco certifications, which can enhance their employability and professional growth opportunities in a competitive landscape. Through its thorough approach, OL-8978-02 plays a vital role in shaping the next generation of network professionals.