Moxa Technologies NPort S9000 Series Manual

Moxa Technologies NPort S9000 Series Manual

Command line interface
Table of Contents

Advertisement

Quick Links

NPort S9000 Series
Command Line Interface
Edition 1.0, March 2017
www.moxa.com/product
© 2017 Moxa Inc. All rights reserved.

Advertisement

Table of Contents
loading

Summary of Contents for Moxa Technologies NPort S9000 Series

  • Page 1 NPort S9000 Series Command Line Interface Edition 1.0, March 2017 www.moxa.com/product © 2017 Moxa Inc. All rights reserved.
  • Page 2 NPort S9000 Series Command Line Interface The software described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement. Copyright Notice © 2017 Moxa Inc. All rights reserved.
  • Page 3: Table Of Contents

    Table of Contents Command Modes ..........................1-1 CLI (Command Line Interface) ......................1-1 Configuring the NPort S9000 to CLI Mode ....................1-1 Basic Operation ..........................1-2 Useful Interactive “Help” Features ......................1-3 Commands ............................2-1 Root Layer Commands ......................2-1 2.1.1 quit ...........................
  • Page 4 2.2.48 vlan create ........................ 2-29 2.2.49 vlan mode ......................... 2-29 2.2.50 gvrp .......................... 2-30 2.2.51 redundancy........................ 2-30 2.2.52 redundancy mode ....................... 2-30 2.2.53 auth mode ......................... 2-31 2.2.54 auth tacacs+ ......................2-31 2.2.55 auth tacacs+ server-ip ....................2-31 2.2.56 auth tacacs+ server-port ..................... 2-32 2.2.57 auth tacacs+ shared-key .....................
  • Page 5: Command Modes

    Command Line Interface (CLI) The command line interface (CLI) for the NPort S9000 series can be accessed through either the serial console or Telnet console. For either type of connection, access to the command line interface is generally referred to as an EXEC session.
  • Page 6: Basic Operation

    NPort 9000 Series CLI Command Modes 3. Press y to activate. 4. Now log in to access CLI display mode. After changing to CLI mode, the CLI mode will be the default setting for the next reboot. Basic Operation The CLI is organized in different configuration levels. When you first enter CLI mode, type ? to view a quick help panel that shows the basic commands of the first configuration level.
  • Page 7: Useful Interactive "Help" Features

    NPort 9000 Series CLI Command Modes To go directly back to the first level, type Ctrl + z. Useful Interactive “Help” Features The CLI includes several types of interactive commands. The Help commands are listed in the following table: Command Purpose Provides a brief description of the Help feature in any command level.
  • Page 8: Commands

    Commands 2.1 Root Layer Commands After logging in to the CLI console, users will be at the root folder of the CLI console. In the root folder, users can see the system settings, ping other devices, upgrade firmware and so on. 2.1.1 quit Use quit to quit the current configuration mode.
  • Page 9: Reload

    NPort 9000 Series CLI Commands 2.1.3 reload Use the reload privileged command on the switch to restart the Moxa Switch. Use the reload factory-default privileged command to restore the switch configuration to the factory default values. Commands reload [factory-default] reload [serial] {p1 | p2 | p3 | p4 | all} reload Syntax Halt and perform a cold restart...
  • Page 10: Login

    NPort 9000 Series CLI Commands 2.1.5 login Use the login privileged command on the device server to configure default login console. Commands login mode { menu | cli } Syntax login Change login mode Description mode Login modes menu Legacy menu mode Command line interface Defaults menu...
  • Page 11: Save

    NPort 9000 Series CLI Commands 2.1.7 save Use the save privileged command on the device server to save the configuration to the flash rom. Commands save config Syntax save config Save running configuration to flash Description Defaults Permission Admin group Usage Guidelines NPort S9450I-2S-SC-HV# save config...
  • Page 12: Show

    NPort 9000 Series CLI Commands 2.1.10 show Use the show user EXEC command on the device server to display the system informations. Commands show { version | running-config | startup-config | system | users | ip | serial | clock | snmp | gmrp | password-policy | login-lockout | logging-capacity | qos | loopprotection | s2n-conn | serial-status | serial-error | serial-setting | serial-alias | serial-param | system-info | network-conn | accounts }...
  • Page 13 NPort 9000 Series CLI Commands serial Show serial info port Serial port 1 - n opmode Show serial port opmode data-packing Show serial port data-packing protocol Show serial protocol modbus Show Modbus protocol settings dnp3 Show DNP3 protocol settings clock Display the system clock snmp Display SNMP configuration...
  • Page 14: Configure

    NPort 9000 Series CLI Commands password-policy Display password policy settings login-lockout Display login lockout settings logging-capacity Display logging capacity settings Display QoS configuration cos-to-queue CoS to traffic queue mappings dscp-to-queue DSCP to traffic queue mappings loopprotection Display loop protection settings s2n-conn Display the running serial to network connections serial-status...
  • Page 15: Sslcertgen

    NPort 9000 Series CLI Commands 2.1.12 sslcertgen Use the sslcertgen privileged command on the device server to generate SSL certificate. Commands sslcertgen Syntax sslcertgen Generate SSL certificate Description Defaults Permission Admin group Usage Guidelines NPort S9450I-2S-SC-HV#sslcertgen Examples Generating... it may take a few minutes... generating ssl certificate : done NPort S9450I-2S-SC-HV# 2.1.13 sshkeygen...
  • Page 16: Configuration Mode Commands

    NPort 9000 Series CLI Commands 2.2 Configuration Mode Commands In the root layer, use the “configure” command to enter configuration mode. In the configuration mode, user could set all system related settings of the device server. 2.2.1 password-policy minimum-length Use password-policy minimum-length global password-policy configuration commands on the device server to configure the minimum password-length with specified characters.
  • Page 17: Password-Policy Complexity-Check

    NPort 9000 Series CLI Commands 2.2.3 password-policy complexity-check Use password-policy complexity-check global password-policy configuration commands on the device server to enable the password policy check. Use the no form of this command to disable complexity-check. Commands password-policy complexity-check { digit | alphabet | special-characters } no password-policy complexity-check { digit | alphabet | special-characters } password-policy Syntax...
  • Page 18: Login-Lockout Retry-Threshold

    NPort 9000 Series CLI Commands 2.2.5 login-lockout retry-threshold Use login-lockout retry-threshold global login-lockout configuration commands on the device server to configure the login-lockout retry-threshold with specified times. Use the no form of this command to return to the default. Commands login-lockout retry-threshold retry no login-lockout retry-threshold Syntax...
  • Page 19: Logging-Capacity

    NPort 9000 Series CLI Commands 2.2.7 logging-capacity Use the logging-capacity privileged command on the device server to set logging capacity related settings. Commands logging-capacity over-size-action { overwrite-oldest | stop-recording } Syntax logging-capacity Set logging capacity related settings. Description over-size-action Set logging capacity oversize-action. overwrite-oldest Set logging capacity oversize-action : Overwrite oldest event logs stop-recording...
  • Page 20: Snmp-Server Location

    NPort 9000 Series CLI Commands 2.2.9 snmp-server location To set the system location string, use the snmp-server location global configuration command. To remove the location string, use the no form of this command. Commands snmp-server location text no snmp-server location snmp-server Syntax Configure SNMP server...
  • Page 21: Snmp-Server Contact

    NPort 9000 Series CLI Commands 2.2.11 snmp-server contact To set the system contact string, use the snmp-server contact global configuration command. To remove the contact string, use the no form of this command. Commands snmp-server contact text no snmp-server contact snmp-server Syntax Configure SNMP server...
  • Page 22: Snmp-Server Read-Write-User

    NPort 9000 Series CLI Commands 2.2.14 snmp-server read-write-user To configure a read-write privileged user and its authentication type and password to a Simple Network Management Protocol (SNMP), use the snmp-server read-write-user global configuration command. Commands snmp-server read-write-user username auth {no-auth|md5|sha} password Syntax snmp-server Configure SNMP server...
  • Page 23: Snmp-Server Host

    NPort 9000 Series CLI Commands 2.2.16 snmp-server host To specify the recipient of a Simple Network Management Protocol (SNMP) notification operation, use the snmp-server host global configuration command. To remove the specified host, use the no form of this command Commands snmp-server host host-addr community-string no snmp-server host [host-addr]...
  • Page 24: Interface

    NPort 9000 Series CLI Commands 2.2.18 interface Use the interface privileged command on the device server to select an interface to configure. Commands interface mgmt interface trunk trunk_id_range interface ethernet mod_port interface serial ser_id interface serial protocol { modbus | dnp3 } Syntax interface Select an interface to configure...
  • Page 25: Clock Timezone

    NPort 9000 Series CLI Commands 2.2.20 clock timezone Use the clock timezone global configuration command on the device server to set the current time zone. Commands clock timezone gmt offset-hour offset_minutes Syntax clock Configure time-of-day clock Description timezone Time zone hour shifting Greenwich Mean Time offset-hour -12 to 12...
  • Page 26: Ntp Remote-Server

    NPort 9000 Series CLI Commands 2.2.22 ntp remote-server Use the ntp remote-server global configuration command on the device server to configure the remote NTP server. Use the no form of this command to return to the default. Commands ntp remote-server server-addr-1 [server-addr-2] no ntp remote-server Syntax Configure Network Time Protocol...
  • Page 27: Irig-B

    NPort 9000 Series CLI Commands 2.2.25 irig-b Use the irig-b privileged command on the device server to configure the global irig-b settings and serial interface irig-b settings. Commands irig-b output { off|pwm|pps } Syntax irig-b Configure irig-b for system irig-b output. Description Set the irig-b to off.
  • Page 28: Line-Swap-Fast-Recover

    NPort 9000 Series CLI Commands 2.2.28 line-swap-fast-recover Use the line-swap-fast-recovery global configuration command on the device server to enable the fast recovery feature of the MAC address table when line swapping. Use the no form of this command to disable it. Commands line-swap-fast-recovery no line-swap-fast-recovery...
  • Page 29: Ip Http-Server Login-Message

    NPort 9000 Series CLI Commands 2.2.31 ip http-server login-message Use ip http-server login-message global configuration commands on the device server to configure the login message. Use the no form of this command to return to the default. Commands ip http-server login-message login_string no ip http-server login-message Syntax Global IP configuration subcommands...
  • Page 30: Ip Telnet

    NPort 9000 Series CLI Commands 2.2.33 ip telnet Use ip telnet global configuration commands on the device server to enable telnet service. Use the no form of this command to disable telnet service. Commands ip telnet no ip telnet Syntax Global IP configuration subcommands Description telnet...
  • Page 31: Ip Moxa-Service

    NPort 9000 Series CLI Commands 2.2.36 ip moxa-service Use ip moxa-service global configuration commands on the device server to enable moxa-service. Use the no form of this command to disable moxa-service. Commands ip moxa-service no ip moxa-service Syntax Global IP configuration subcommands Description moxa-service Enable Moxa service...
  • Page 32: Ip Igmp-Snooping Vlan

    NPort 9000 Series CLI Commands 2.2.39 ip igmp-snooping vlan Use the ip igmp-snooping vlan global configuration command on the device server to globally enable Internet Group Management Protocol (IGMP) snooping on a VLAN. Use the no form of this command to disable IGMP snooping on a vlan.
  • Page 33: Ip Igmp-Snooping Query-Interval

    NPort 9000 Series CLI Commands 2.2.41 ip igmp-snooping query-interval Use the ip igmp-snooping query-interval global configuration command on the device server to configure the interval between IGMP queries. Use the no form of this command to return to the default. Commands ip igmp-snooping query-interval interval Syntax...
  • Page 34: Ip Igmp Static-Group

    NPort 9000 Series CLI Commands 2.2.43 ip igmp static-group Use the ip igmp static-group global configuration command on the device server to add a static multicast MAC address and its member ports. Use the no form of this command to remove the static multicast group or just its member ports.
  • Page 35: Ip Dhcp-Relay Option82

    NPort 9000 Series CLI Commands 2.2.45 ip dhcp-relay option82 Use the ip dhcp-relay option82 global and interface configuration command to enable DHCP Relay with Option 82 messages. To disable it, use the no form of this command. Commands ip dhcp-relay option82 no ip dhcp-relay option82 Syntax Configure IP parameters...
  • Page 36: Serial

    NPort 9000 Series CLI Commands 2.2.47 serial Use the serial global command to enable serial console. To disable it, use the no form of this command. Commands serial no serial Syntax serial Enable serial console Description Defaults Default is enabled. Permission Admin group Usage...
  • Page 37: Gvrp

    NPort 9000 Series CLI Commands 2.2.50 gvrp Use the gvrp global configuration command on the device server to enable GVRP. Use the no form of this command to disable it. Commands gvrp no gvrp gvrp Syntax Enable/Disable GVRP Description Defaults The feature is enabled by default.
  • Page 38: Auth Mode

    NPort 9000 Series CLI Commands 2.2.53 auth mode Use the auth mode global configuration command on the device server to change the authentication login option. Commands auth mode { tacas+ | radius } no auth mode auth Syntax Configure authentication mechanism Description mode Authentication login option...
  • Page 39: Auth Tacacs+ Server-Port

    NPort 9000 Series CLI Commands 2.2.56 auth tacacs+ server-port Use the auth tacacs+ server-port global configuration command on the device server to set the TACACS+ authentication server port. Use the no form of this command to set to default. Commands auth tacacs+ server-port server-port no auth tacacs+ server-port auth...
  • Page 40: Auth Tacacs+ Auth-Type

    NPort 9000 Series CLI Commands 2.2.58 auth tacacs+ auth-type Use the auth tacacs+ auth-type global configuration command on the device server to specify the type of TACACS+ authentication. Use the no form of this command to return to the default setting. Commands auth tacacs+ auth-type { ascii | pap | chap | arap | mschap } no auth tacacs+ auth-type...
  • Page 41: Lldp Enable

    NPort 9000 Series CLI Commands 2.2.60 lldp enable Use the lldp enable global configuration command to enable LLDP. To stop LLDP, use the no form of this command. Commands lldp enable no lldp enable lldp Syntax Configure LLDP parameters Description enable Start up Defaults...
  • Page 42: Dot1X Reauth

    NPort 9000 Series CLI Commands 2.2.63 dot1x reauth Use the dot1x reauth global configuration command on the device server to globally enable periodic re-authentication of the client. Use the no form of this command to return to the default setting. Commands dot1x reauth [period period] no dot1x reauth [period period]...
  • Page 43: Monitor

    NPort 9000 Series CLI Commands 2.2.65 monitor Use monitor global configuration commands to enable the monitoring of data transmitted/received by a specific port. Use the no form of this command to disable the monitoring. Commands monitor source interface mod_port [direction] no monitor source interface monitor destination interface mod_port no monitor destination interface...
  • Page 44: Email-Warning Mail-Address

    NPort 9000 Series CLI Commands 2.2.67 email-warning mail-address Use email-warning mail-address to configure the email address(es) to which warning messages will be sent. To clear the setting, use no form of this command. Commands email-warning mail-address mailIndex mailAddress no email-warning mail-address mailIndex email-warning Syntax Email warning setting...
  • Page 45: Email-Warning Send Test Email

    NPort 9000 Series CLI Commands 2.2.69 email-warning send test email Use email-warning send test email to send a test email. Commands email-warning send test email Syntax email-warning Email warning setting Description send Send test email test Test email email Test email address Defaults Permission Admin group...
  • Page 46: Relay-Warning Override

    NPort 9000 Series CLI Commands 2.2.71 relay-warning override Use relay-warning override relay to override the relay warning setting temporarily. Releasing the relay output will allow administrators to fix any problems with the warning condition. Use the no form of this command to disable the override.
  • Page 47: Relay-Warning Event

    NPort 9000 Series CLI Commands 2.2.73 relay-warning event Use relay-warning event global configuration commands to enable the warning events to trigger relay. Use the no form of this command to disable it. Commands relay-warning event { power-input1-fail | power-input2-fail | turbo-ring-break } no relay-warning event { power-input1-fail | power-intput2-fail | turbo-ring-break } relay-warning Syntax...
  • Page 48: Ptp Enable

    NPort 9000 Series CLI Commands 2.2.75 ptp enable Use the ptp enable command on the device server to enable the PTP operation. Use the no form of this command to disable the PTP operation on the device server. Commands ptp enable no ptp Syntax Configure PTP...
  • Page 49: Ptp Log-Sync-Interval

    NPort 9000 Series CLI Commands 2.2.77 ptp log-sync-interval Use the ptp log-sync-interval global configuration command on the device server to set the log-sync-interval parameter. Commands ptp log-sync-interval interval Syntax Configure PTP Description log-sync-interval Set the logarithm to the base 2 of the mean SyncInterval interval -3 to 1 Defaults...
  • Page 50: Ptp Log-Min-Delay-Req-Interval

    NPort 9000 Series CLI Commands 2.2.80 ptp log-min-delay-req-interval Use the ptp log-min-delay-req-interval global configuration command on the device server to set the log-min-delay-req-interval parameter. Commands ptp log-min-delay-req-interval interval Syntax Configure PTP Description log-min-delay-re Set the logarithm to the base 2 of the mean minDelayReqInterval q-interval interval 0 to 5...
  • Page 51: Ptp Transport

    NPort 9000 Series CLI Commands 2.2.83 ptp transport Use the ptp transport configuration command on the device server to set the transport type of the ptp domain. Commands ptp transport [802_3|ipv4] Syntax Configure PTP Description transport Set the transport type of the ptp doman 802_3 Set the transport type of the PTP domain to 802.3/Ethernet Ipv4...
  • Page 52: Ptp Utc-Offset

    NPort 9000 Series CLI Commands 2.2.86 ptp utc-offset Use the ptp utc-offset configuration command on the device server to set the PTP utc-offset field. Commands ptp utc-offset interval Syntax Configure PTP Description utc-offset sets the offset between TAI and UTC interval 0 to 65535 Defaults...
  • Page 53: Qos Mapping

    NPort 9000 Series CLI Commands 2.2.89 qos mapping Use the qos mapping global configuration command on the device server to configure the CoS and DSCP mappings. Use the no form of this command to return to the default. Commands qos mapping cos-to-queue cos-value queue no qos mapping cos-to-queue qos mapping dscp-to-cos dscp-value cos-value no qos mapping dscp-to-cos...
  • Page 54: Account Edit

    NPort 9000 Series CLI Commands 2.2.91 account edit To configure the user account name and its group to log in to this device. Commands account edit name name old_password old_password new_password new_password account edit name name [ group {admins | users | guest } ] [note note ] Syntax account To manage the user account database...
  • Page 55: System-Log Network

    NPort 9000 Series CLI Commands 2.2.93 system-log network To configure which events will be logged locally and/or remotely by the device server. Commands system-log network local no system-log network local system-log network remote no system-log network remote Syntax system-log To enable the system log according to different event group. Description network This event group includes: DHCP/BOOTP/PPPoE Get IP/Renew,...
  • Page 56: System-Log Opmode

    NPort 9000 Series CLI Commands 2.2.95 system-log opmode To configure which events will be logged locally and/or remotely by the device server. Commands system-log opmode local no system-log opmode local system-log opmode remote no system-log opmode remote Syntax system-log To enable the system log according to different event group. Description opmode This event group includes: Connect, Disconnect, Authentication Fail,...
  • Page 57: Console Try-Next-Auth

    NPort 9000 Series CLI Commands 2.2.98 console try-next-auth To enable or disable try next authentication type when console auth is radius-local and tacas+-local mode. Commands console try-next-auth no console try-next-auth Syntax console Set the parameters of the console. Description try-next-auth Try next authentication type when the first authentication type fail Defaults The default settings are disabled.
  • Page 58 NPort 9000 Series CLI Commands 2.3.1.2 relay-warning event Use relay-warning event interface configuration commands to enable the warning events to trigger the relay. Use the no form of this command to disable it. Commands relay-warning event { link-on | link-off } relay-warning event traffic-overload [ rxThreshold duration] no relay-warning event { link | traffic-overload } Syntax...
  • Page 59 NPort 9000 Series CLI Commands 2.3.1.4 trunk-mode Use the trunk-mode interface configuration command on the device server to set the trunk mode of the specified trunk group. Use the no form of this command to return to the default setting. Commands trunk-mode { static | lacp } no trunk-mode...
  • Page 60 NPort 9000 Series CLI Commands 2.3.1.7 speed-duplex Use the speed-duplex interface configuration command to specify the speed of the interface and its duplex mode. Use the no form of this command to return the interface to its default value. Commands speed-duplex {10M-Full | 10M-Half | 100M-Full| 100M-Half | 1G-Full | Auto} no speed-duplex speed-duplex...
  • Page 61 NPort 9000 Series CLI Commands 2.3.1.9 media cable-mode Use the media cable-mode interface configuration command on the device server to enable the medium-dependent interface crossover feature on the interface. Use the no form of this command to disable Auto-MDIX. Commands media cable-mode [mdi | mdix | auto] no media cable-mode Syntax...
  • Page 62 NPort 9000 Series CLI Commands 2.3.1.11 switchport trunk fixed vlan add Use the switchport trunk fixed vlan add interface configuration command on the device server to add the trunk characteristics when the interface is in trunking mode. Use the no form of this command to reset a trunking characteristic to the default.
  • Page 63 NPort 9000 Series CLI Commands 2.3.1.13 switchport trunk forbidden vlan add Use the switchport trunk forbidden vlan add configuration command on the device server to add the trunk forbidden characteristics when the interface is in trunking mode. Use the no form of this command to reset a trunking characteristic to the default.
  • Page 64 NPort 9000 Series CLI Commands 2.3.1.15 switchport trunk native vlan Use the switchport trunk native vlan interface configuration command on the device server to configure PVID of a port as a trunking port. Use the no form of this command to return to the default. Commands switchport trunk native vlan vlan-id no switchport trunk native vlan...
  • Page 65 NPort 9000 Series CLI Commands 2.3.1.17 switchport hybrid fixed vlan add Use the switchport hybrid fixed vlan add interface configuration command on the device server to add the trunk hybrid characteristics when the interface is in hybrid mode. Use the no form of this command to reset to the default.
  • Page 66 NPort 9000 Series CLI Commands 2.3.1.19 switchport hybrid forbidden vlan remove Use the switchport hybrid forbidden vlan remove interface configuration command on the device server to remove the trunk forbidden characteristics when the interface is in hybrid mode. Use the no form of this command to reset to the default.
  • Page 67 NPort 9000 Series CLI Commands 2.3.1.21 port-security Use the port-security interface configuration command on the device server to add a static unicast MAC-address on a specified port. Use the no form of this command to remove the specified MAC address. Commands port-security MAC-address no port-security MAC-address...
  • Page 68: Vlan Interface Commands

    NPort 9000 Series CLI Commands 2.3.1.24 ip auto-assign Use the ip auto-assign interface configuration command on the device server to enable and set the auto IP assignment of specified interfaces. Use the no form of this command to remove an Ethernet port from a trunk group.
  • Page 69 NPort 9000 Series CLI Commands 2.3.2.2 ip default-gateway Use the ip default-gateway VLAN configuration command on the device server to configure the IP default gateway address. Use the no form of this command to return to the default. Commands ip default-gateway ip-address no default-gateway Syntax Configure IP paramters...
  • Page 70 NPort 9000 Series CLI Commands 2.3.2.4 bind vlan Use the bind vlan configuration command on the device server to bind the management address with a specified VLAN ID. Use the no form of this command to return to the default. Commands bind vlan VLAN-ID Syntax...
  • Page 71: Serial Interface Commands

    NPort 9000 Series CLI Commands 2.3.3 Serial Interface Commands From the CLI root directory, use the “configure” command to enter configure mode, and use the “interface serial ” command to enter the serial interface folder. In the folder, users can set all serial-related settings. 2.3.3.1 email-warning event Use the email-warning event serial interface configuration command to allow interface warning events to be...
  • Page 72 NPort 9000 Series CLI Commands 2.3.3.3 baud-rate To configure the baudrate for specified serial port. Commands baud-rate rate Syntax baud-rate Configure baud rate for serial port Description Defaults The default is 115200 Permission Admin group Usage Baud-rate: 50, 75, 110, 134, 150, 300, 600, 1200, 1800, 2400, 4800, 7200, 9600, Guidelines 19200,38400, 57600, 115200, 230400, 460800, 921600, or user specific baud-rate value NPort S9650I-16-2HV(config)# interface serial 1...
  • Page 73 NPort 9000 Series CLI Commands 2.3.3.6 stop-bit To configure the stop-bit for specified serial port. Commands stop-bit {1 | 1.5 | 2} Syntax stop-bit Configure stop-bit for serial port Description Defaults The default is 1 Permission Admin group Usage Guidelines NPort S9650I-16-2HV(config)# interface serial 1 Examples NPort S9650I-16-2HV(config-serif)# stop-bit 2...
  • Page 74 NPort 9000 Series CLI Commands 2.3.3.9 port-type To configure the flow control for specified serial port. Commands port-type {232 | 422 | 485-2w | 485-4w } Syntax port-type Configure interface for serial port Description Defaults The default is 232 Permission Admin group Usage Guidelines...
  • Page 75 NPort 9000 Series CLI Commands 2.3.3.11 realcom To configure the parameters of RealCOM mode for specified serial port. Commands realcom alive-check minute realcom [max-conn maxconn] [ ignore-jammed-ip {enable | disable} ] [ allow-driver-ctrl {enable | disable}] realcom conn-down-rts {low | high} realcom conn-down-dtr {low | high} Syntax realcom...
  • Page 76 NPort 9000 Series CLI Commands 2.3.3.12 rfc2217 To configure the parameters of RFC 2217 mode for specified serial port. Commands rfc2217 alive-check minute rfc2217 tcp-port tcp-port Syntax rfc2217 To configure the parameters of RFC 2217 mode. Description alive-check TCP alive check time specifies how long the device server will wait for a response to "keep alive"...
  • Page 77 NPort 9000 Series CLI Commands 2.3.3.13 tcpserver To configure the parameters of TCP Server mode for specified serial port. Commands tcpserver alive-check minute tcpserver inactivity milli-second tcpserver [max-conn maxconn] [ ignore-jammed-ip {enable | disable}] [ allow-driver-ctrl {enable | disable} ] tcpserver conn-down-rts {low | high} tcpserver conn-down-dtr {low | high} tcpserver local-tcp-port tcp-port...
  • Page 78 NPort 9000 Series CLI Commands NPort S9650I-16-2HV(config-serif) # tcpserver local-tcp-port 4005 2.3.3.14 tcpclient To configure the parameters of TCP Client mode for specified serial port. Commands tcpclient alive-check minute tcpclient inactivity milli-second tcpclient ignore-jammed-ip {enable|disable} tcpclient [dest-ip1 ip-address] [dest-port1 tcp-port ] tcpclient [dest-ip2 ip-address] [dest-port2 tcp-port ] tcpclient [dest-ip3 ip-address] [dest-port3 tcp-port ] tcpclient [dest-ip4 ip-address] [dest-port4 tcp-port ]...
  • Page 79 NPort 9000 Series CLI Commands device server for this TCP connection. local-port4 4th designated local port specifies the desired local port number of the device server for this TCP connection. conn-ctrl Connection control determines the parameters under which a TCP connection is established or disconnected Clear the setting to empty Defaults...
  • Page 80 NPort 9000 Series CLI Commands 2.3.3.15 To configure the parameters of UDP mode for specified serial port. Commands udp [dest-ip1-begin ip-address] [ dest-ip1-end ip-address ] [dest-port1 port] udp [dest-ip2-begin ip-address] [ dest-ip2-end ip-address ] [dest-port2 port] udp [dest-ip3-begin ip-address] [ dest-ip3-end ip-address ] [dest-port3 port] udp [dest-ip4-begin ip-address] [ dest-ip4-end ip-address ] [dest-port4 port] udp local-port udp-port no udp dest-ip1-begin...
  • Page 81 NPort 9000 Series CLI Commands Usage IP address: IPv4 address Guidelines Tcp-port: 1 – 65535 NPort S9650I-16-2HV(config)# interface serial 1 Examples NPort S9650I-16-2HV(config-serif)# udp dest-ip1-begin 192.168.1.100 dest-ip1-end 192.168.1.105 dest-port1 4001 NPort S9650I-16-2HV(config-serif)# udp dest-ip2-begin 192.168.1.200 dest-ip2-end 192.168.1.205 NPort S9650I-16-2HV(config-serif)# udp local-port 4001 NPort S9650I-16-2HV(config-serif)# udp dest-port3 4003 2.3.3.16 dnp3...
  • Page 82 NPort 9000 Series CLI Commands 2.3.3.18 modbus To configure the parameters of Modbus mode for specified serial port. Commands modbus [ connected-dev { rtu-master | rtu-slave | ascii-master | ascii-slave } ] [ resp-timeout milli-second] [ inter-char-timeout milli-second] [ inter-frame-delay milli-second] [ designated-tcp-port tcp-port ] modbus Syntax...
  • Page 83 NPort 9000 Series CLI Commands 2.3.3.19 data-packing To configure the data packing settings in different operation mode for specified serial port. Commands data-packing length packet-length data-packing deli1-char delimiter1-character [deli2-char delimiter2-character ] data-packing deli1 {enable|disable} [ deli2 {enable|disable} ] data-packing process {nothing | plus1 | plus2 | strip} data-packing force-transmit millisecond Syntax data-packing...
  • Page 84 NPort 9000 Series CLI Commands 2.3.3.20 email-warning event Use the email-warning event serial interface configuration command to allow interface warning events to be sent through the email if the event occurs. Use the no form of this command to disable the specified warning event notifications.
  • Page 85: Protocol Modbus Interface Commands

    NPort 9000 Series CLI Commands 2.3.4 Protocol Modbus Interface Commands From the CLI root directory, use the “configure” command to enter configure mode, and use the “interface serial protocol modbus ” command to enter the Modbus protocol folder. In this folder, user can set all Modbus protocol settings.
  • Page 86 NPort 9000 Series CLI Commands 2.3.4.4 tcp-response-timeout To configure the listen TCP response timeout of the Modbus protocol. Commands tcp-response-timeout milli-seconds Syntax tcp-response-tim Configure the TCP client response time out for the Modbus protocol Description eout Defaults The default is 1000 Permission Admin group Usage...
  • Page 87 NPort 9000 Series CLI Commands 2.3.4.6 sid-map add remote-ip To configure the slave id mapping table of the Modbus protocol. Commands sid-map add remote-ip ip-address remote-tcp-port tcp-port sid-start slave-id sid-end slave-id Syntax sid-map To configure the slave-id mapping of Modbus mode. Description remote-ip The desination is Modbus tcp IP address.
  • Page 88 NPort 9000 Series CLI Commands 2.3.4.7 sid-map edit To configure the slave id mapping table of the Modbus protocol. Commands sid-map edit channel id [remote-ip remote-ip] [ remote-tcp-port remote-port ] [sid-start slave-id-start][ sid-end slave-id-end] Syntax sid-map To configure the slave-id mapping of Modbus mode. Description channel The channel ID of the slave ID map...
  • Page 89 NPort 9000 Series CLI Commands 2.3.4.8 no sid-map To remove an entry of the slave id mapping table of the Modbus protocol. Commands no sid-map channel id Syntax sid-map To configure the slave-id mapping of Modbus mode. Description channel The channel ID of the slave ID map The channel id Defaults Permission...
  • Page 90: Protocol Dnp3 Interface Commands

    NPort 9000 Series CLI Commands 2.3.5 Protocol DNP3 Interface Commands From the CLI root directory, use the “configure” command to enter the configure mode, and use the “interface serial protocol dnp3 ” command to enter the DNP3 protocol folder. In this folder, user could set all DNP3 protocol settings.
  • Page 91 NPort 9000 Series CLI Commands 2.3.5.3 address-table add To configure the address table of the DNP3 protocol. Commands address-table add remote-ip ip-address remote-tcp-port tcp-port addr-start addr-start addr-end addr-end Syntax address-table To configure the address table of DNP3 mode. Description remote-ip The destination is tcp.
  • Page 92 NPort 9000 Series CLI Commands 2.3.5.4 address-table edit To configure the address table of the DNP3 protocol. Commands address-table edit channel id [ remote-ip ip-address][ remote-tcp-port tcp-port ][addr-start addr-start ][addr-end addr-end] Syntax address-table To configure the address table of DNP3 mode. Description channel The channel ID of DNP3 address table...
  • Page 93 NPort 9000 Series CLI Commands 2.3.5.5 no address-table To remove an entry of the address table of the DNP3 protocol. Commands no address-table channel id Syntax address-table To configure the address table of DNP3 mode. Description channel The channel ID of DNP3 address table DNP3 channel id Defaults Permission...

Table of Contents