Chapter 18
P Commands
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
port-type
To configure port type policies, use port-type command. To disable port type policies, use the no form
of the command.
Syntax Description
access ports
all
trunks
Defaults
None.
Command Modes
Configuration mode.
Command History
Release
4.1(1b)
Usage Guidelines
The default policy uses its own internal port type, which is the same as all ports.
Examples
The following example shows how to configure port monitoring for access ports:
switch# config t
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)# port-monitor name cisco
switch(config-port-monitor)# port-type access-port
trying to get name
name is cisco
sending port type access
switch(config-port-monitor)#
The following example shows how to configure port monitoring for all ports:
switch(config-port-monitor)# port-type all
trying to get name
name is cisco
sending port type all
switch(config-port-monitor)#
The following example shows how to configure port monitoring for trunk ports:
switch(config-port-monitor)# port-type trunks
trying to get name
name is cisco
sending port type trunks
switch(config-port-monitor)#
OL-18089-01, Cisco MDS NX-OS Release 4.x
port-type {all | trunks | access-Ports}
no port-type {all | trunks | access-Ports}
Configures only access ports.
Configures both trunk ports and access ports.
Configures only trunk ports.
Modification
This command was introduced.
Cisco MDS 9000 Family Command Reference
port-type
18-33