Aruba & ProVision-based
1752662 Members
5282 Online
108788 Solutions
New Discussion юеВ

Re: View Switch type in command line

 
SOLVED
Go to solution
Aaatsu
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!

13 REPLIES 13
Richard Litchfield
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

HP-Browniee
Respected Contributor

Re: View Switch type in command line

And what about the command show version?

Aaatsu
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..

KurtVWa
New Member

Re: View Switch type in command line

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

Aaatsu
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.

AbeAbe
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
Aaatsu
Occasional Advisor

Re: View Switch type in command line

Thanks, 

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

AbeAbe
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
Aaatsu
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!