Is there a comment character or do-nothing command in the HP CLI environment?
I'm looking for an equivalent of the exclamation mark (!) in Cisco IOS.
Although there's no direct equivalent to the Cisco IOS "!" to add comment lines to an HP ProCurve switch config file, you can achieve a similar result by using multiple "alias" commands within the config file, with a final "no alias" command at the end of the script to tidy things up:
alias COMMENT "Some procurve configuration comment line here"
...
alias COMMENT "Second line of comment"
...
no alias COMMENT
I'm sorry to tell you that I believe the answer is no; you can't just insert a comment wherever you want on Procurves. However, for what it's worth, there is a handy way to configure "friendly" port names so you can at least add what amounts to a comment for each port or group of ports. I use this frequently.
; ...