2.5.12 Portstatus
Description
Syntax: sc portstatus [-x127] PORTSPEC SOURCE
Alternative names: ---
Authorization level: service
Principle of operation
The "sc portstatus" command queries whether a specific port in the firewall is open. The "-
x127" option must be specified if X127 rather than the X130 firewall is concerned. The port
specification is identical to "sc openport", e.g. "tcp/102". However, no names are permitted
here and the specified source IP must be unique.
The following status is output:
● "Port not open" with exit status 1.
● "Port is open (rule ID is <N>)." and exit status 0.
Whereby, the ID required for "sc closeport" must also be specified.
2.5.13 Restart
Description
Syntax: sc restart all|system|network| [!]SUBSYSTEM
Alternative names: reboot
Authorization level: service
The "sc restart" action initially stops the specified subsystems and then restarts them with the
following restriction: Dependent subsystems are also started for a restart.
Syntax
'hmi', 'nck' or any other subsystem names can be used as subsystems. Multiple subsystems
can also be specified successively; they (including all required dependencies) are then started
and stopped in this order. It is also possible to start and stop all subsystems, other than the
named ones. To do this, prefix an exclamation mark "!" to the list.
"all", "system" and "network" are special values for the subsystem:
● "all" stops and starts all available subsystems.
● In contrast, "sc restart system" initiates a cold restart of the system (reboot).
● "network" may be specified only together with "restart". "sc restart network" reinitializes the
network, e.g. after settings have been changed in basesys.ini.
Configuring the system
2.5 Description of the actions
NCU operating system
52 Commissioning Manual, 12/2017, 6FC5397-1DP40-6BA1