home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sun / hardware / 6827 < prev    next >
Encoding:
Text File  |  1993-01-12  |  8.0 KB  |  288 lines

  1. Newsgroups: comp.sys.sun.hardware
  2. Path: sparky!uunet!walter!porthos!wort!bmaggio
  3. From: bmaggio@wort.dcs.bellcore.com (Bill Maggio)
  4. Subject: SUMMARY: Host ID
  5. Organization: Bellcore, Livingston, NJ
  6. Date: Tue, 12 Jan 93 21:25:56 GMT
  7. Message-ID: <1993Jan12.212556.3597@porthos.cc.bellcore.com>
  8. Keywords: SUMMARY Host ID
  9. Sender: netnews@porthos.cc.bellcore.com (USENET System Software)
  10. Lines: 276
  11.  
  12.  
  13. Recently, I wrote:
  14.  
  15. >does anyone know how to translate the host id info
  16. >into the Sun system hardware type (eg 670,490,etc)?
  17.  
  18. Many thanks to all who responded:  
  19.  
  20. uug@cpsc.ucalgary.ca
  21. kevan@cis.prime.com
  22. janw@fwi.uva.nl
  23. beaulieu@bose.com
  24. euapbn@eua.ericsson.se 
  25.  
  26.  
  27. Here is a posting of the responses I received:
  28.  
  29.  
  30. =========================================================================
  31.  
  32. From: uug@cpsc.ucalgary.ca (William Graham):
  33.  
  34. Compare the high byte against the #defines in /usr/include/mon/idprom.h.
  35.  
  36. =========================================================================
  37.  
  38. From: kevan@cis.prime.com:
  39.  
  40. Here is a small program I have got for showing the type of Sun I am using.
  41.  
  42. #---------------------- Cut Here ----------------------------------------
  43. #! /bin/csh -f
  44.  
  45. set host_id = `hostid`
  46.  
  47. if ( ${host_id} =~ 12* ) then
  48.     set machine_type =  "3/50"
  49. else if ( ${host_id} =~ 17* ) then
  50.     set machine_type =  "3/60"
  51. else if ( ${host_id} =~ 42* ) then
  52.     set machine_type =  "3/80"
  53. else if ( ${host_id} =~ 11* ) then
  54.     set machine_type =  "3/XXX"
  55. else if ( ${host_id} =~ 13* ) then
  56.     set machine_type =  "3/XXX"
  57. else if ( ${host_id} =~ 14* ) then
  58.     set machine_type =  "3/XXX"
  59. else if ( ${host_id} =~ 41* ) then
  60.     set machine_type =  "3/XXX"
  61. else if ( ${host_id} =~ 21* ) then
  62.     set machine_type =  "4/XXX"
  63. else if ( ${host_id} =~ 22* ) then 
  64.     set machine_type =  "4/110"
  65. else if ( ${host_id} =~ 23* ) then
  66.     set machine_type =  "4/XXX"
  67. else if ( ${host_id} =~ 24* ) then
  68.     set machine_type =  "4/XXX"
  69. else if ( ${host_id} =~ 51* ) then
  70.     set machine_type =  "SparcStation 1"
  71. else if ( ${host_id} =~ 52* ) then
  72.     set machine_type =  "SparcStation IPC"
  73. else if ( ${host_id} =~ 53* ) then
  74.     set machine_type =  "SparcStation 1+"
  75. else if ( ${host_id} =~ 54* ) then
  76.     set machine_type =  "SparcStation SLC"
  77. else if ( ${host_id} =~ 55* ) then
  78.     set machine_type =  "SparcStation 2"
  79. else if ( ${host_id} =~ 56* ) then
  80.     set machine_type =  "SparcStation ELC"
  81. else if ( ${host_id} =~ 57* ) then
  82.     set machine_type =  "SparcStation IPX"
  83. else if ( ${host_id} =~ 72* ) then
  84.     set machine_type =  "SparcStation 10/30"
  85. else if ( ${host_id} =~ 80* ) then
  86.     set machine_type =  "SparcClassic"
  87. else
  88.     set machine_type =  "Unknown"
  89. endif
  90.  
  91. echo "Machine : $machine_type"
  92.  
  93. #---------------------- Cut Here ----------------------------------------
  94.  
  95.  
  96. =========================================================================
  97.  
  98. From: janw@fwi.uva.nl (Jan Wortelboer):
  99.  
  100. Take the first 2 digits of the hostid and compare them with the following list:
  101.  
  102.  
  103. 0x11, "3/160",
  104. 0x12, "3/50",
  105. 0x13, "3/260",
  106. 0x14, "3/110",
  107. 0x17, "3/60",
  108. 0x18, "3/E",
  109. 0x41, "3/470",
  110. 0x42, "3/80",
  111. 0x21, "4/260",   /**/
  112. 0x22, "4/110",   /**/
  113. 0x23, "4/330",   /**/
  114. 0x24, "4/470",   /**/
  115. 0x51, "4c/60",   /*SPARCstation 1*/
  116. 0x52, "4c/40",   /*SPARCstation IPC*/
  117. 0x53, "4c/65",   /*SPARCstation 1+*/
  118. 0x54, "4c/20",   /*SPARCstation SLC*/
  119. 0x55, "4c/75",   /*SPARCstation 2*/
  120. 0x56, "4c/25",   /*SPARCstation ELC*/
  121. 0x57, "4c/50",   /*SPARCstation IPX*/
  122. 0x58, "4c/70",   /**/
  123. 0x59, "4c/80",   /**/
  124. 0x5a, "4c/10",   /**/
  125. 0x5b, "4c/45",   /**/
  126. 0x5c, "4c/05",   /**/
  127. 0x5d, "4c/85",   /**/
  128. 0x5e, "4c/32",   /**/
  129. 0x5f, "4/HIKE",
  130. 0x60, "4/120",  /*Sun 4e /120??*/
  131. 0x61, "4e/120",
  132. 0x71, "4m/60",  /*Sun 4m /60 690/670??*/
  133. 0x72, "4m/50",  /*Sun 4m /50 SS10/20 ??*/
  134. 0x73, "4m/40",  /*Sun 4m /40 ??*/
  135. 0x80, "4m/??",  /*Sun 4/15?30 (Classic?LX) */
  136. 0x81, "4d/",    /*sun4d */
  137.  
  138. =========================================================================
  139.  
  140. From: beaulieu@bose.com (Larry Beaulieu):
  141.  
  142.     The 1st 2 characters of the hostid identify the CPU type.
  143.     This does not distinguish between systems of the same
  144.     CPU type, e.g. 4/470 and 4/490, however it does distinguish
  145.     between 3/50, 3/60, 3/80, SS1, SS1+, SS2, IPC, ELC, SLC, IPX,
  146.     4/300, 4/400, etc.
  147.  
  148.     This info was documented by Sun in one of their monthly
  149.     software bulletins about a year ago, unfortunately I no
  150.     longer have the manual.
  151.  
  152. =============================================================================
  153.  
  154. euapbn@eua.ericsson.se (Per.Borjeson):
  155. |> 
  156. |> Hello Bill!
  157. |> 
  158. |> Here is a small script that will test this:
  159. |> 
  160. |> #!/bin/csh -f
  161. |> ########################################################################
  162. |> # Detta script anvands for att ta reda p} maskintyp och minne  AKF/SHE #
  163. |> # Rev: 1.0     901010            Created        #
  164. |> # Rev: 1.1     901212            added ss2      #
  165. |> # Rev: 1.2     910416            Only 4.1.1     #
  166. |> # Rev: 1.3     910603            added IPC      #
  167. |> # Rev: 1.4     920727            added IPX      #
  168. |> # Rev: 1.5     920813            added 690      #
  169. |> ########################################################################
  170. |> 
  171. |> 
  172. |> set prog=$0;set prog=$prog:t
  173. |> set hosts=($argv)
  174. |> 
  175. |> if ( $#hosts == 0) then
  176. |>    set hosts=`hostname`
  177. |> endif
  178. |> 
  179. |> set hosts=(`show_hosts $hosts`)
  180. |> 
  181. |> foreach h ( $hosts)
  182. |>    nawk 'BEGIN{printf("%-9s ==>>",h)}' h=$h
  183. |>         /usr/etc/ping $h 3 >&/dev/null
  184. |>         if ( $status ) then
  185. |>                echo ": NOT RESPONDING"
  186. |>       continue
  187. |>    endif
  188. |>    ### we want 5 arguments
  189. |>    ### 11002ff6 mem = 8192K (0x800000)
  190. |>    ###    1      2  3   4        5
  191. |>    set result=(`rsh $h 'hostid;/etc/dmesg | grep "^mem =" | tail -1'`)
  192. |>    set num memsize hostid
  193. |>    if ( $#result >0 )then
  194. |>       set hostid=$result[1]
  195. |>       set num=`nawk 'BEGIN{print substr(h,1,2)}' h=$hostid`
  196. |>    endif
  197. |>    if ( $#result >4 )then
  198. |>       set memsize=`nawk 'BEGIN{l=length(m);m=substr(m,1,l-1);m=m/1024;printf("%3dMb\n",m)}' m=$result[4]`
  199. |>    endif
  200. |> switch ( $num )
  201. |> 
  202. |>    case 01:
  203. |>       set mtype="Sun 2 Multibus"
  204. |>    breaksw
  205. |>    case 02:
  206. |>       set mtype="Sun 2 VME                  "
  207. |>    breaksw
  208. |>    case 04:
  209. |>       set mtype="SolBourne S4000DX          "
  210. |>    breaksw
  211. |>    case 11:
  212. |>       set mtype="Sun 3/180                  "
  213. |>    breaksw
  214. |>    case 12:
  215. |>       set mtype="Sun 3/50                   "
  216. |>    breaksw
  217. |>    case 13:
  218. |>       set mtype="Sun 3/280                  "
  219. |>    breaksw
  220. |>    case 14:
  221. |>       set mtype="Sun 3/110                  "
  222. |>    breaksw
  223. |>    case 17:
  224. |>       set mtype="Sun 3/60                   "
  225. |>    breaksw
  226. |>    case 20:
  227. |>       set mtype="Personal Mainframe 5000    "
  228. |>    breaksw
  229. |>    case 21:
  230. |>       set mtype="Sun 4/200 Series           "
  231. |>    breaksw
  232. |>    case 22:
  233. |>       set mtype="Sun 4/110                  "
  234. |>    breaksw
  235. |>    case 23:
  236. |>       set mtype="Sun 4/390                  "
  237. |>    breaksw
  238. |>    case 24:
  239. |>       set mtype="Sun 4/470 or 4/490         "
  240. |>    breaksw
  241. |>    case 31:
  242. |>       set mtype="Sun 386i                   "
  243. |>    breaksw
  244. |>    case 40:
  245. |>       set mtype="Solbourne M500-series      "
  246. |>    breaksw
  247. |>    case 51:
  248. |>       set mtype="Sun 4/60 ( Sparcstation1  )"
  249. |>    breaksw
  250. |>    case 52:
  251. |>       set mtype="Sun 4/40 ( IPC            )"
  252. |>    breaksw
  253. |>    case 53:
  254. |>       set mtype="Sun 4/65 ( Sparcstation1+ )"
  255. |>    breaksw
  256. |>    case 54:
  257. |>       set mtype="Sparcstation SLC           "
  258. |>    breaksw
  259. |>    case 55:
  260. |>       set mtype="Sun 4/75 ( Sparcstation2  )"
  261. |>    breaksw
  262. |>    case 56:
  263. |>       set mtype="Sun 4/50 ( IPX            )"
  264. |>    breaksw
  265. |>    case 71:
  266. |>       set mtype="Sun 4/600( GALAXY         )"
  267. |>    breaksw
  268. |>    default:
  269. |>       set mtype="Machine type not defined   "
  270. |>    breaksw
  271. |> endsw
  272. |> echo "Type=$mtype MEM : $memsize"
  273. |> 
  274. |> end
  275. |> 
  276. |> 
  277.  
  278.  
  279.  
  280.  
  281. Bill Maggio
  282.  
  283. -------------------------------------------------------------------------------
  284. William J. Maggio                       Email     : bmaggio@bellcore.com
  285. Bellcore                                SnailMail : bellcore!bmaggio
  286. 6 Corporate Place, PYA-1J257            VoiceMail : 908-699-6864
  287. Piscataway, NJ 08855-1320               Fax       : 908-336-2237
  288.