Wednesday , September 20 2017
Home / FAQ / Huawei’s equivalent of Cisco’s ‘logging synchronous’

Huawei’s equivalent of Cisco’s ‘logging synchronous’

If a router wants you to know something, it wants you to know right now!

Let’s look what will happen if you are entering a long command and the device wants you to be informed about a link’s failure:

[Huawei-acl-adv-3000]rule 10 permit ip vpn-instance vpn_labnario source 1.1.1.1 0.0.0.255 destination 1.1.1.2
Jan 15 2013 11:04:18-08:00 Huawei %%01PHY/1/PHY(l)[5]:    GigabitEthernet0/0/0:
change status to down
Jan 15 2013 11:04:18-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[6]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the DOWN state.
^
Error:Incomplete command found at '^' position.

When you click ‘Enter’ you will have to write the command once again. It is frustrating for all network administrators.

Unfortunately we cannot change it, like on Cisco’s devices, by ‘logging synchronous‘ command.

Instead you have 3 ways to do this on Huawei’s devices:

If you remember the syntax of the command just continue writing:

[Huawei-acl-adv-3000]rule 10 permit ip vpn-instance vpn_labnario source 1.1.1.1 0.0.0.255 destination 1.1.1.2 
Jan 15 2013 11:19:15-08:00 Huawei %%01PHY/1/PHY(l)[21]:    GigabitEthernet0/0/0:
 change status to down
Jan 15 2013 11:19:15-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[22]:The line protoco
l IP on the interface GigabitEthernet0/0/0 has entered the DOWN state.0.0.0.255
[Huawei-acl-adv-3000]

You can just use question mark ‘?‘ to know the syntax of the command:

[Huawei-acl-adv-3000]rule 10 permit ip vpn-instance vpn_labnario source 1.1.1.1 0.0.0.255 destination 1.1.1.2 
Jan 15 2013 11:21:28-08:00 Huawei %%01PHY/1/PHY(l)[23]:    GigabitEthernet0/0/0:
 change status to up
Jan 15 2013 11:21:28-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[24]:The line protoco
l IP on the interface GigabitEthernet0/0/0 has entered the UP state.?
  0        Wildcard bits : 0.0.0.0 ( a host )
  X.X.X.X  Wildcard of destination
[Huawei-acl-adv-3000]rule 10 permit ip vpn-instance vpn_labnario source 1.1.1.1 0.0.0.255 destination 1.1.1.2 0.0.0.255

You can just click CTRL_R to repeat the display of the information of the current line:

[Huawei-acl-adv-3000]rule 10 permit ip vpn-instance vpn_labnario source 1.1.1.1 0.0.0.255 destination 1.1.1.2 
Jan 15 2013 11:24:35-08:00 Huawei %%01PHY/1/PHY(l)[25]:    GigabitEthernet0/0/0:
 change status to down
Jan 15 2013 11:24:35-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[26]:The line protoco
l IP on the interface GigabitEthernet0/0/0 has entered the DOWN state.
CTRL_R
[Huawei-acl-adv-3000]rule 10 permit ip vpn-instance vpn_labnario source 1.1.1.1 0.0.0.255 destination 1.1.1.2

Unfortunately you have to repeat it each time when the router wants you to know about something.

All system-defined shortcut keys you can find in huawei CLI introduction.

Leave a Reply

Your email address will not be published. Required fields are marked *