![Cisco MDS 9000 Series Command Reference Manual Download Page 865](http://html.mh-extra.com/html/cisco/mds-9000-series/mds-9000-series_command-reference-manual_21253865.webp)
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
18-33
Cisco MDS 9000 Family Command Reference
OL-18089-01, Cisco MDS NX-OS Release 4.x
Chapter 18 P Commands
port-type
port-type
To configure port type policies, use
port-type
command. To disable port type policies, use the
no
form
of the command.
port-type {all
| trunks | access-Ports}
no port-type {all
| trunks | access-Ports}
Syntax Description
Defaults
None.
Command Modes
Configuration mode.
Command History
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)#
access ports
Configures only access ports.
all
Configures both trunk ports and access ports.
trunks
Configures only trunk ports.
Release
Modification
4.1(1b)
This command was introduced.