- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
02-PROFINET commands | 54.78 KB |
PROFINET commands
IMPORTANT: Only F6355P05 and later versions support PROFINET. |
display system internal profinet log
Use display system internal profinet log to display log information for all submodules of the PROFINET module.
Syntax
display system internal profinet log
Views
Probe view
Predefined user roles
network-admin
Example
# Display log information for all submodules of the PROFINET module.
<Sysname> system-view
[Sysname] probe
[Sysname-probe] display system internal profinet log
PROFINET log information:
Sub-module: APC. Level: Error
Sub-module: CLRPC. Level: Error
Sub-module: CM. Level: Error
Sub-module: DCP. Level: Error
Sub-module: GSY. Level: Error
Sub-module: NARE. Level: Error
Sub-module: LLDP. Level: Error
Sub-module: OHA. Level: Error
Sub-module: EDDS. Level: Error
Sub-module: MRP. Level: Error
Sub-module: SOCK. Level: Error
Sub-module: POF. Level: Error
Sub-module: IOD. Level: Error
Sub-module: PNPB. Level: Error
Sub-module: PNDV. Level: Error
Sub-module: TCIP. Level: Error
Sub-module: APPL. Level: Error
Sub-module: TSKMSG. Level: Error
Related commands
profinet enable
profinet log enable
profinet enable
Use profinet enable to enable the PROFINET feature.
Use undo profinet enable to disable the PROFINET feature.
Syntax
profinet enable
undo profinet enable
Default
The PROFINET feature is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
For the switch to act as a PROFINET I/O device in industrial networking scenarios, use this command. With PROFINET enabled on the switch, PROFINET I/O controllers and supervisors (such as Siemens TIA or STEP7) can manage the switch.
Example
# Enable the PROFINET feature.
<Sysname> system-view
[Sysname] profinet enable
Related commands
profinet log enable
profinet log enable
Use profinet log enable to enable the logging feature for the PROFINET module.
Use undo profinet log enable to restore the default.
Syntax
profinet log enable sub-module { acp | all | appl | clrpc | cm | dcp | edds | gsy | iod | ldp | mrp | nare | oha | pndv | pnpb | pof | sock | tcip | tskmsg } level { all | chat | error | error-fatal | high-chat | high-warning | high-note | note | warning }
undo profinet log enable sub-module { acp | all | appl | clrpc | cm | dcp | edds | gsy | iod | ldp | mrp | nare | oha | pndv | pnpb | pof | sock | tcip | tskmsg }
Default
The logging feature is enabled for the PROFINET module and the log level is error.
Views
Probe view
Predefined user roles
network-admin
Parameters
sub-module acp: Specifies the Acyclic Communication Protocol (ACP) submodule of the PROFINET module.
sub-module all: Specifies all submodules of the PROFINET module.
sub-module appl: Specifies the application submodule of the PROFINET module.
sub-module clrpc: Specifies the Connectionless Remote Procedure Call (CLRPC) submodule of the PROFINET module.
sub-module cm: Specifies the Context Management (CM) submodule of the PROFINET module.
sub-module dcp: Specifies the Dynamic Configuration Protocol (DCP) submodule of the PROFINET module.
sub-module edds: Specifies the Ethernet Device Driver for Standard Ethernet controller (EDDS) submodule of the PROFINET module.
sub-module gsy: Specifies the Generic Sync (GSY) submodule of the PROFINET module.
sub-module iod: Specifies the IO Device instance (IOD) submodule of the PROFINET module.
sub-module ldp: Specifies the Neighbor Discovery Protocol submodule of the PROFINET module.
sub-module mrp: Specifies the Media Redundancy Protocol (MRP) submodule of the PROFINET module.
sub-module nare: Specifies the Name Address Resolution (NARE) submodule of the PROFINET module.
sub-module oha: Specifies the Object Handler (OHA) submodule of the PROFINET module.
sub-module pnpb: Specifies the client application submodule of the PROFINET module.
sub-module pndv: Specifies the device application submodule of the PROFINET module.
sub-module pof: Specifies the Polymeric Optical Fiber (POF) submodule of the PROFINET module.
sub-module sock: Specifies the UDP socket interface for PROFINET IO (SOCK) submodule of the PROFINET module.
sub-module tcip: Specifies the TCP/IP protocol stack submodule of the PROFINET module.
sub-module tskmsg: Specifies the Implementation of tasks and communication between tasks (TSKMSG) submodule of the PROFINET module.
level all: Specifies all log levels.
level chat: Specifies the chat level.
level error: Specifies the error level.
level error-fatal: Specifies the error-fatal level.
level high-chat: Specifies the high-chat level.
level high-note: Specifies the high-note level.
level high-warning: Specifies the high-warning level.
level note: Specifies the note level.
level warning: Specifies the warning level.
Usage guidelines
In industrial networking scenarios, after you enable the PROFINET feature on the switch, you can perform this task for the system to log events of specific levels on specific submodules. The log file path is /var/log/profinet.log.
Enable PROFINET before you can configure this feature.
To enable logging for different submodules or events at different levels, configure this feature multiple times by specifying different parameters.
The log levels are error-fatal, error, high-warning, warning, high-note, note, high-chat, and chat in descending order. If you specify the high-note level, the system outputs log messages at the high-note, note, high-chat, and chat levels.
Example
# Enable the logging feature for the PROFINET module, and configure it to log events on all submodules and of all levels.
<Sysname> system-view
[Sysname] probe
[Sysname-probe] profinet log enable sub-module all level all
Related commands
profinet enable