Skip to content

Instantly share code, notes, and snippets.

View craigbruenderman's full-sized avatar

Craig Bruenderman craigbruenderman

  • CBTS
  • Louisville, KY
View GitHub Profile
@craigbruenderman
craigbruenderman / gist:57842bb30080b50dce3d8c9ff7269733
Last active January 14, 2026 02:09
HP Comware Show Commands
display version
display system information
display current-configuration
display ip interface brief
display vrrp
display vrrp verbose
display ospf interface
display ospf peer
display ospf lsdb
display bgp peer ipv4
#!/bin/bash
HOST=cpmasesx01.na.domain.com
PASSWD=
for m in $(cat list.txt)
do
MACHINE_PATH=`sshpass -p $PASSWD ssh root@$HOST find /vmfs/volumes/ -name $m -print`
if [ -z "$MACHINE_PATH" ]
then
! For each device, please paste these commands verbatim all at once from priviledged exec mode (enable),
! and save the output to one plain text file per device. This is a
! superset of commands to encompass multiple platforms. Therefore,
! not all of the commands will work on all platforms, so don't worry
! about any syntax errors you see.
term len 0
sh ver
sh inv
sh mod