Aruba & ProVision-based
cancel
Showing results for 
Search instead for 
Did you mean: 

View Switch type in command line

 
SOLVED
Go to solution
Highlighted
Occasional Advisor

View Switch type in command line

Hi, 

I work at a company with a large number of different types of HP switches. And we have now decided to change the banner message at the prompt from the default one. 

Sometimes when I am administering, I would want to check what type of switch I am working on (eg: 2650, 5406zl,). Is there any command from the CLI that will display this information directly? Iknow how to display system information, but this does only display the serial number for the device. 

Thank you!

12 REPLIES 12
Highlighted
Respected Contributor

Re: View Switch type in command line

Try this command:

show modules details

The one below tells you the firmware code which by extension tells you the model number ;-)

Show version

Highlighted
Respected Contributor

Re: View Switch type in command line

And what about the command show version?

Highlighted
Occasional Advisor

Re: View Switch type in command line

The Show Modules command does not work.
Show version does not give me the information I need.

I am starting to think that there are no way of actually finding what kind of device youre working on in an easy way..

Highlighted
Occasional Visitor

Re: View Switch type in command line

Show run command gives you the produktnumber on one of the first lines of the output

Highlighted
Occasional Advisor

Re: View Switch type in command line

Yes, Thank you. That way we can google the product number and find the switch type. 

But, I was wondering if there are no way to display it directly, like it is displayed in the standard banner.

Highlighted
Trusted Contributor

Re: View Switch type in command line

Hi,
You can with snmp....

On the CLI try:
Getsnmp sysDescr.0

You get the productnumber the software and... the name of the product

HTH
Alex
Highlighted
Occasional Advisor

Re: View Switch type in command line

Thanks, 

But that command does not seem to work on any of our switches unfortunately.

Highlighted
Trusted Contributor
Solution

Re: View Switch type in command line

Ok.. i testet and as i always wrote get sysdecr.0 I thought it would be getsnmp but it is getmib. So please try

Getmib sysDescr.0

HTH
Alex
Highlighted
Occasional Advisor

Re: View Switch type in command line

Voila!  There it is! 
Thank you very much, this was exactly what I was looking for.

Have a nice day!