You are on page 1of 14

Huawei CX frequently used

commands
CX frequently used commands

Contents
1 Introduction.............................................................................................3
2 Logons.....................................................................................................3
3 Display Commands.................................................................................5
4 Ping Commands...................................................................................10
5 Configuration Commands.....................................................................11
6 Commonly used keys...........................................................................13

1
CX frequently used commands

1 Introduction
All of the Huawei CX products, regardless of model (e.g. CX1, CX8, CX16), use the same
basic commands for displaying/configuring the node using the CLI via telnet. The following
document will list some of the general commands used for the CX nodes.

2 Logons
The following user accounts are for general access to the CX nodes and should be used for
read-only operations and pings. In order to perform write commands which will change the
configuration of the node a specific user account will be required with the necessary
privileges.

CX1 - User: vha Pass: huawei567 -does not work for every CX1

CX8 & CX16 - User: hwran Pass: Huawei123!

CX16 - User: hwran Pass: R&cnbsc -use CX8 pass if this one fails

To logon the CX: 1. Use the search function in U2000, 2. Type the name of the node, 3.
Select search, 4. Double click on the node you are looking for.

4 \

2
CX frequently used commands

Right click on the node you wish to log on to, then click tools and telnet:

Enter the appropriate username and password for the node you wish to access. Once
successfully logged into the node, the CLI will show the node ID inside <> brackets to the left
of the screen.

3
CX frequently used commands

3 Display Commands
To check if the script has been loaded on the CX for a given site use:

display current-configuration interface GigabitEthernet 16/1/9.2335


dis cur int gi 16/1/9.2335 (shorthand)

This command will show the current configuration on the sub-interface 2335 for port 16/1/9
on NECXH3. As a standard Huawei configure the sub-interface to be the same as the
CVLAN:

From the output of this command we can see that the configuration of sub-interface
16/1/9.2335 is for site 2460 3G (i.e. description NERH1 to 202460-2460-3G), where the
VLAN is 2335 (i.e. vlan-type dot1q 2335), the sub-interface IP address is 10.225.9.114 with a
/29 subnet address (i.e. ip address 10.225.9.114 255.255.255.248) and the virual ip address
is 10.225.9.113 (i.e. vrrp vrid 9 virtual-ip 10.225.9.113).

We can tell from the virtual IP address that the eNodeB address will be the virtual address
+5 (i.e. the Node B address will be 10.225.9.118 in this case the actual Node address can
be confirmed from the LDD).

To view the configuration for all VLANs on a specific port on the CX use:

display ip interface brief | include 16/1/9


dis ip int b | include 16/1/9 (shorthand)

Where 16/1/9 is the port we are interested in. Adding the | symbol allows us to filter the
results to only include port 16/1/9. The output shows all VLANs configured on 16/1/9, the IP
address configured for that sub-interface and the status for that sub-interface.

4
CX frequently used commands

A variation of this command is:

display interface brief | include 16/1/9


dis int b | include 16/1/9 (shorthand)

This command does not include the ip portion. The output this time does not include the ip
addresses configured on the sub interfaces but instead shows the utilisation for each of the
VLANs.

The filter symbol, |, can also be used to search for a script on a CX using the Site ID only:

display interface description | include 202460


dis int des | in 202460 (shorthand)

5
CX frequently used commands

The result shows the sub-interface where the script is loaded for site 202460

You can also use a similar search using the VLAN for your site:

display interface description | include 2335


dis int des | in 2335 (shorthand)

To view the status of the port on the CX use the following:

display interface GigabitEthernet 16/1/9


dis int gi 16/1/9 (sorthand)

From the output we can see information on whether the port is up/down, the optical power
level on the port, stats on the utilisation of the port, etc.

The CX and Node B MAC addresses can be viewed using:

display arp interface GigabitEthernet 16/1/9.2335


dis arp int gi 16/1/9.2335 (shorthand)

6
CX frequently used commands

You can see that the CX MAC address is 54-89-98-3f-05-58 from the sub-interface IP
address 10.225.9.114. Also, as the Node B IP addresses is 10.225.9.118 we know from the
above output that the Node B MAC is 4c-1f-cc-33-d7-41.

The virtual address for a specific sub-interface can be viewed using:

display vrrp interface GigabitEthernet 16/1/9.2335


dis vrrp int gi 16/1/9.2335 (shorthand)

The virtual MAC for sub-interface 16/1/9.2335 is 00-00-5e-00-01-09. The format of the virtual
MAC address is common among all the CXs with the last 4 digits changing i.e. 01-09

The current configuration for the CX can be viewed using:

display current-configuration

To view what time is configured on the CX use:

display clock

If the time set on the CX is wrong, it is likely that the clock has not been synchronised with
the ntp server. To check this use:

7
CX frequently used commands

dis ntp status

To view what boards are installed on the CX use:

display device
dis dev (shorthand)

To view the version config on each board of the CX use:

display version
dis ver (shorthand)

8
CX frequently used commands

4Ping Commands
The node/tester at the End site can be pinged using the ping command:

ping 10.225.9.118

To run a ping for a long duration add - c plus the number of iterations:

ping c 1000 10.225.9.118

This command will run the ping to the address 10.225.9.118 x 1000 times.

The ping can also be run with different byte sizes using -s plus the byte size:

ping c 1000 s 1500 10.225.9.118

This command will run the ping to the address 10.225.9.118, 1000 times for a byte size of
1500.

9
CX frequently used commands

5 Configuration Commands
In order to enter configuration mode on the CX use:

System-view

Before entering configuration mode (i.e. system-view) the node name will appear within <>,
e.g. <6048 CX1H1> on the CLI. After successfully accessing system-view the node name
will appear within [], e.g. [6048 CX1H1].

Only a user account with the necessary user privileges will allow system-view to be
accessed.

To exit system view use:

quit or
Ctrl + C

Once in system-view, a specific port can be configured using:

interface GigabitEthernet 1/2/5.450

After successfully executing this command the CLI will show:


[6048 CX1H1- GigabitEthernet1/2/5.450] indicating that we are now on port 1/2/5 sub-
interface 450 and ready for configuration.

The VLAN 450 and IP address 192.168.1.1 with a subnet of 255.255.255.252 (i.e. /30
subnet address) for this sub-interface can be configured using:

vlan-type dot1q 450


ip address 192.168.1.1 30
description To 6048 eNodeB

The final command in the sequence is just to give a description to the port to say what it
connects to.

The above 4 commands are all that is necessary to configure a port which will connect to a
2G Node for an existing CX1. The 2G configuration does not require a static route.

10
CX frequently used commands

For 3G and LTE services we must also configure a static route for our port:

ip route-static 10.17.28.230 32 GigabitEthernet 1/2/5.450 10.166.247.246


description Nodeb for x8 OAM

For the above command, 10.17.28.230 is the OM IP for the eNodeB, 1/2/5.450 is the port
and sun-interface for the configuration and 10.166.247.246 is the Service IP for the eNodeB.

For further configuration commands such as CX LAG config and other CX1 initial config
settings please refer to Roger Cais CX600 ATN Configuration presentation stored at
R:\11_WI-MOP\CX

11
CX frequently used commands

6 Commonly Used Keys


If you ever forget or are unsure of a command; use the ? symbol. Using ? with no space
after the start of a command will show all possible options to complete the command:

Using ? with a space after a command will show all possible commands that can be used
after the initial command:

Other frequently used keys include the following:

12
CX frequently used commands

Key Function

Common key Inserts a character at the current position of the cursor if the editing
buffer is not full. The cursor then moves to the right. If the buffer is
full, an alarm is generated.
Backspace Moves the cursor to the left and deletes the character at that position.
When the cursor reaches the head of the command, an alarm is
generated.
Left cursor key Moves the cursor to the left a single space at a time. When the cursor
or Ctrl_B reaches the head of the command, an alarm is generated.

Right cursor key Moves the cursor to the right a single space at a time. When the
or Ctrl_F cursor reaches the end of the command, an alarm is generated.

Tab Press Tab after typing a partial key word and the system runs partial
help:If the matching key word is unique, the system replaces the
typed character string with a complete key word and displays it in a
new line with the cursor placed at the end of the word.
Ctrl_C Stops the display and the running of a command.

Space Allows information to be displayed on the next screen.

Enter Allows information to be displayed on the next line.

Note: A full list of the commands and operations possible on the Huawei CX can be seen on
the Huawei Hedex documentation stored at R:\11_WI-MOP\CX.

13

You might also like