- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- Comware Based
- >
- Re: Indentation on a HP Comware 5 Config file.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2014 04:13 AM
08-01-2014 04:13 AM
Indentation on a HP Comware 5 Config file.
Hi.
We're working on a configuration audit tool, that parses various configuration files for various reason.
Its been parsing Cisco IOS for some time, and Cisco configuration files have blockwise indentation, e.g
! interface TenGigabitEthernet1/19 switchport switchport trunk allowed vlan 2-4,10-13,20-24,30,40 switchport mode trunk switchport nonegotiate storm-control broadcast level 0.10 storm-control multicast level 0.10 channel-group 1 mode active no ethernet cfm ais link-status !
Så "!" can be ignored, and no indentation means either global config or a start of a block, and all lines in the block are indented by 1. Sub-blocks are further indented (usually - but at least always indented ).
HP Comware 5 uses "#" instead of "!", and obvoius blocks (e.g interface,vlan-interface, etc . blocks) works the same way as Cisco. So far - so good.
But global commands seems to follow a pattern - maybe not quite so obvoius. Some are intented, some are not e.g:
undo copyright-info enable # lldp enable lldp compliance cdp # transceiver phony-alarm-disable # switch-mode standard switch-mode normal slot 0 switch-mode normal slot 7 switch-mode normal slot 12 # switch-mode route-normal # password-recovery enable #
header login %
blablablablalblal
blakdfjaklsdj
kdjfkdfjk
%
#
Note the "header login %" is a block-start, but indented one space (why?)
Is there some kind of system in this, or is it more or less random indentation (for the global commands)?
(I expect Comware itself knows every command :), and therefore doesn't care about indentation. )
Regards
Søren Diderksen
Region Midtjylland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2014 08:43 AM
08-02-2014 08:43 AM