0

I'm having 2 solaris machines to manage, So i want to write my own scripts for getting various information. I'm able to get most of the information but not able to retrieve following:

  • Chassis type
  • Mother Board S/N
  • OS Language

I have no physical access to the machine. I'hv already tried dmi_cmd but it just got stuck at connecting. I'm not able to find sneep package. locale does not provide language information. Even if i try to set it, the command exits with error saying unable to set locale.

smbios would not work hence its a sparc machine.

Sven
  • 97,248
  • 13
  • 177
  • 225
bikram990
  • 101
  • 6

2 Answers2

0

Little rusty on sparc/solaris, but these might help ...

  • Chassis type : As far as I remember one of the uname switches will give you a model, e.g. v240. If you just run uname -a it should be in there somewhere.
  • S/N : try prtconf -v or lsconf
  • echo $LOCALE ?
chrskly
  • 1,539
  • 11
  • 16
  • uname does not tells whether its a desktop/laptop/server prtconf does not revels S/N in my case echo $LOCALE ? does not return anything i tried without ? also – bikram990 Feb 19 '13 at 11:49
  • However i was thinking of that chassis can be derived from the model name given by uname -i and use some look ups to decide laptop/desktop/server that would be requiring look up table it will not be consistent if the machine changes – bikram990 Feb 19 '13 at 11:54
  • 1
    `echo $LOCALE` should be `echo $LANG` or `/usr/bin/locale` - but that reports the locale/language settings you use, which aren't necessarily the system defaults (users can choose their own language). `locale -a` lists all the locales installed on the system. – alanc Feb 19 '13 at 22:45
  • @alanc I want something like "locale -ck LC_IDENTIFICATION" in RHEL it specifies english etc – bikram990 Feb 20 '13 at 10:02
0

The command prtdiag will give you as much HW info as I have seen on Solaris machines look at /etc/default/init for default language settings

trent
  • 3,094
  • 18
  • 17