Quantcast
Channel: I create my own way - networking yogi way
Viewing all articles
Browse latest Browse all 25

Comware CLI tricks

$
0
0
Many of IT specialists are familiar with Cisco CLI.
Some may also know CLI shortcuts to make navigation in 'black depressive screen' easier - Ethan had a great post on this subject some time ago.

Many vendors introduced Cisco-like CLIs. I have seen some rather good (DELL switches come to mind) and some rather poor (like Zyxel 2108)

H3C and 3Com for that part (now both part of HP Networking) are using I'd say also Cisco-like interface. But with some nuances. First of all the decided to substitute all the commands with synonyms:
show -> display  

reload -> reboot

running-config -> current-configuration

no -> undo

exit -> quit



HP even introduced a list of translations between Cisco and Comware CLI commands called 'HP Networking and Cisco CLI Reference Guide'.

Comware also provides more advance features of the CLI like piping with "|" and regexps:
[h3c-lb-tp-core]disp int brie | inc 1/0/[6-9]

The brief information of interface(s) under bridge mode:

Link: ADM - administratively down; Stby - standby

Speed or Duplex: (a)/A - auto; H - half; F - full

Type: A - access; T - trunk; H - hybrid

Interface            Link Speed   Duplex Type PVID Description

GE1/0/6              DOWN auto    A      A    70

GE1/0/7              DOWN auto    A      A    1

GE1/0/8              DOWN auto    A      A    1

GE1/0/9              DOWN auto    A      A    1


This post was some time in drafts, but now I decided to release it as I have found very cool feature I used a lot in Cisco and lacked heavily in Comware. This is interface range command.
Starting 18xx feature release (at least for 5800 series) Comware offers this feature too!

[h3c]int range gi1/0/10 to gi1/0/11 gi2/0/11

[h3c-if-range]undo desc

[h3c-if-range]port acc

[h3c-if-range]port access vl

[h3c-if-range]port access vlan 20

Have a good day!




Viewing all articles
Browse latest Browse all 25

Trending Articles