command to view the haware detail

I use command
#lscfg -v
in AIX system and it gives the detail of the hardware of the system.
what is the similar command to view the detail of the hardware of the system in SUN-Solaris

Not sure as what kind of info you get on aix with the above command, however you can try

#prtconf

to the find the configuration info alos you can try #prtdiag

the best command I use is

#prtdiag -v

it gives you almost everything

if you want to know hard disk details, type:

# format

this will give u the number of disks and the sizes

what type of system are you using? something like a v245 will show you all physical hardware but if you are on a m4000, you will only see whats been allocated to that domain as far as viewing from the OS.