Page 1 of 2 12>
Topic Options
#27570 - 2002-08-22 07:54 PM Remotely generate @cpu output?
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
What I'm attempting to do is query NT4/XP machines remotely (i.e. outside of logon/netlogon scripts) to create machine inventory reports that EUs can read.

When I execute @cpu locally on a box I get back what I want - "Intel Pentium III".

When I query against the same box remotely I can get back 'undesirables' like:

"Unknown Intel P6 processor"
"GenuineIntel"
"x86 Family 6 Model 8 Stepping 10, GenuineIntel"

My EUs can understand "Pentium III", but have a tough time with "Family 6 Model 8 Stepping 10" and "Unknown Intel P6"

Anything that I have been able to source so far doesn't provide me a reliable way to translate "Family x Model y and Stepping z" values to "Intel P #".

Does anyone have an Intel translation table that would assist me to imitate @cpu output?

TIA
_________________________
We all live in a Yellow Subroutine...

Top
#27571 - 2002-08-22 07:57 PM Re: Remotely generate @cpu output?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You can't do that. KiXtart only proceesses the information for the local computer/user.

For remote computer management, you will need to sue WMI and/or ADSI.

Please searcht he BBs for 'inventory' and you'll find script that do this kind of thing.

Also, please read ADSI/WMI/COM Info and links and COM Scripting Primer
_________________________
There are two types of vessels, submarines and targets.

Top
#27572 - 2002-08-22 08:43 PM Re: Remotely generate @cpu output?
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
Let me try to clarify...

I've already looked at the great links that you have suggested, and I'm already using WMI/ADSI queries to poll machines for inventory data.

My issue may be an 'Intel-off-topic' item?
I would like to be able to massage my collected CPU data (e.g. [Confused] Family 6 Model 8 Stepping 10) to output 'more meaningful' information (e.g. [Smile] Pentium III).

Cheers...
_________________________
We all live in a Yellow Subroutine...

Top
#27573 - 2002-08-22 08:47 PM Re: Remotely generate @cpu output?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mmm...
family is the correct one. what are those for pentium 4?

I think the family 6 just means i686 which is the same as with pentium II

as what comes to the processor, pentium 4 is somewhat same with pentium.
it just have pretty many improvements.
_________________________
!

download KiXnet

Top
#27574 - 2002-08-22 09:25 PM Re: Remotely generate @cpu output?
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
Ah, we're on the right track...

How do you know this...
quote:
family is the correct one
Is there an Intel tutorial out there somewhere that explains this stuff?

Cheers...
_________________________
We all live in a Yellow Subroutine...

Top
#27575 - 2002-08-22 09:56 PM Re: Remotely generate @cpu output?
Dean B. Offline
Fresh Scripter

Registered: 2002-02-04
Posts: 46
Loc: Allegan, MI USA
Searching Intel's web site turns up the following link and information:

http://support.intel.com/support/processors/sb/1047078283579359-prd24.htm

A processor's family, model and stepping numbers refer to the manufacturing process on which a processor was manufactured and can be useful in identifying a processor in a system. The family, model and stepping numbers do not directly translate to a specific processor, and should not be used as a tool to identify a specific processor.
_________________________
Dean

Top
#27576 - 2002-08-22 10:05 PM Re: Remotely generate @cpu output?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
there are two reasons why I know it:
1) I've studied computer sience
2) I'm so old that I know much!

anyway, if you check on any unix/linux stuff made for PC, they have builds for i386 (intel 386) compatible and i586 (pentium compatible).
if you study little processor architecture, 386 has kindof two 286 in it.
same is with 486 against 386.
the last one that has doubled is pentium.
that makes it 586 but it was not allowed anymore to register with number so they came up with the name "pentium"...

well, pentium is 32 bit processor. so is pentium 4

this comes up to:
they are same processor (hence the name) with improvements on every stepping.

how the stepping increases, you should check on o'reilly's page or search with google.

anyway, as we think of, pentium has had uttleast these steps:
original (the one with the problems. 75-90Mzh)
pentium
pentium PRO
pentium MMX
pentium II
pentium III
pentium 4

it's not eight but I'm sure the correct stepping info is there somewhere.
just STFW [Big Grin]
_________________________
!

download KiXnet

Top
#27577 - 2002-08-22 10:13 PM Re: Remotely generate @cpu output?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what comes to deans link, it does not directly provide the info.

anyway, it is there.

anyway, do you really need to get the info.

I mean, do you need to know is it pentium 2,3 or 4 when the processor frequency is at 700Mhz?

as I said on last post, all pentiums are not so different.

also, if you look at the charts at intels web site, you see the same.

newist pentium 4 with so much "improvements" it just beats pentium 3 running at 500Mhz because of the higher frequency.
_________________________
!

download KiXnet

Top
#27578 - 2002-08-22 10:29 PM Re: Remotely generate @cpu output?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
As far as I remember the architectual changes made to the Pentium IV core require higher clock and FSB speeds to actually come to fruit. That's why a low-speed P4 is actually worse than a high-speed P3.

Also, if a high-speed P4 is combined with a high-speed RDRAM then the resulting performance does beat a Pentium 3.

BTW, Lonkero, you forgot to mention the new XEONs, I believe they have a separate number
_________________________
There are two types of vessels, submarines and targets.

Top
#27579 - 2002-08-22 10:41 PM Re: Remotely generate @cpu output?
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
Too true...nothing beats age,education,and experience [Wink]
Thanks for links and knowledge sharing...

With regard to
quote:
anyway, do you really need to get the info.

I mean, do you need to know is it pentium 2,3 or 4 when the processor frequency is at 700Mhz?

the answer is a 'qualified' yes because the suits that read the reports want to see stuff like
quote:
pentium PRO
pentium MMX
pentium II
pentium III
pentium 4

I'm thinking I need the Intel's CPUID capability in a command line / text output utility...

Cheers...
_________________________
We all live in a Yellow Subroutine...

Top
#27580 - 2002-08-22 11:07 PM Re: Remotely generate @cpu output?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
waltz,
I would not use it.

just because it's their product!

IBM released a long time ago the smbios.

it gives all the info I can think of needing.

well, you might need more.

also, why don't you execute() the suits as kixtart has the capability [Big Grin]

just do in your logonscript:

if ingroup("suits")
$void=execute("for $c=0 to 2 $c=0 next")
endif

it's simple.
if they say something bad, say them, you want a raise!

fight them.
_________________________
!

download KiXnet

Top
#27581 - 2002-08-22 11:17 PM Re: Remotely generate @cpu output?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Found it in WMI under Win32_ComputerSystem.Processor.DeviceID
Win32_ComputerSystem.Processor.DeviceID.Name="Pentium III processor"
Win32_ComputerSystem.Processor.DeviceID.Family=17

17 translates to "Pentium 3" according to the WMI SDK. So, there's no need to use an external utility.
_________________________
There are two types of vessels, submarines and targets.

Top
#27582 - 2002-08-22 11:31 PM Re: Remotely generate @cpu output?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
thanks jens!

I was sure that I was hoping that there was no need...
do you follow?

anyway, all the info is fantastic.

jens, what is 16 or 18 then?
_________________________
!

download KiXnet

Top
#27583 - 2002-08-22 11:39 PM Re: Remotely generate @cpu output?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Lonkero:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win 32_processor.asp has then whole list of properties. However, it seems that there is a mistake in the documentation. o=Other doesn't seem to exist and it's actually 0=Unknown, so the number all decrease by one, thus 17=Pentium III.

I actually used that table as a lookup table in the inventory script that I started working on, I just completely forgot about it. Sign of age?

[ 22. August 2002, 23:49: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#27584 - 2002-08-22 11:55 PM Re: Remotely generate @cpu output?
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Getting some inconsitent results with regard to the type of processor (family)..

Ref. - WMIQuery() - Used to execute a query against WMI

Results are:
quote:

System Manufacturer is = Compaq
System Model is = EVO
System Serial Number is = xxxxxxxxxxxx
System BIOS Version is = 686Y2 v2.06
System BIOS Date is = COMPAQ - 20011203
CPU Speed is = 1695 Mhz
2
Family is 8086
System Memory = 255 MB
Dimm Size = 0 MB
Dimm Size = 128 MB
Dimm Size = 128 MB
Video Card is = NVIDIA Vanta/Vanta LT
Video Res is = 1024 x 768 x 65536 colors
Modem is =
Network Card is = Intel(R) PRO/100 VM Network Connection

Code is:
code:
BREAK ON CLS
? "System Manufacturer is = "WMIQuery("Manufacturer","Win32_ComputerSystem")
? "System Model is = "WMIQuery("Model","Win32_ComputerSystem")
? "System Serial Number is = "WMIQuery("SerialNumber","Win32_BIOS")
? "System BIOS Version is = "WMIQuery("SMBIOSBIOSVersion","Win32_BIOS")
? "System BIOS Date is = "WMIQuery("Version","Win32_BIOS")
? "CPU Speed is = "WMIQuery("CurrentClockSpeed","Win32_Processor") " Mhz"
; http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_processor.asp
$Family = WMIQuery("Family","Win32_Processor")
?$Family
get $k
Select
CASE $Family = 0 $Family = "Other"
CASE $Family = 1 $Family = "Unknown"
CASE $Family = 2 $Family = "8086"
CASE $Family = 3 $Family = "80286"
CASE $Family = 4 $Family = "80386"
CASE $Family = 5 $Family = "80486"
CASE $Family = 6 $Family = "8087"
CASE $Family = 7 $Family = "80287"
CASE $Family = 8 $Family = "80387"
CASE $Family = 9 $Family = "80487"
CASE $Family = 10 $Family = "Pentium Family"
CASE $Family = 11 $Family = "Pentium Pro"
CASE $Family = 12 $Family = "Pentium II"
CASE $Family = 13 $Family = "Pentium MMX"
CASE $Family = 14 $Family = "Celeron"
CASE $Family = 15 $Family = "Pentium II Xeon"
CASE $Family = 16 $Family = "Pentium III"
CASE $Family = 17 $Family = "M1 Family"
CASE $Family = 18 $Family = "M2 Family"
CASE $Family = 19 $Family = "K5 Family"
CASE $Family = 20 $Family = "K6 Family"
CASE $Family = 21 $Family = "K6-2"
CASE $Family = 22 $Family = "K6-III"
CASE $Family = 23 $Family = "Athlon"
CASE $Family = 24 $Family = "Power PC Family"
CASE $Family = 25 $Family = "Power PC 601"
CASE $Family = 26 $Family = "Power PC 603"
CASE $Family = 27 $Family = "Power PC 603+"
CASE $Family = 28 $Family = "Power PC 604"
CASE $Family = 29 $Family = "Alpha Family"
CASE $Family = 30 $Family = "MIPS Family"
CASE $Family = 31 $Family = "SPARC Family"
CASE $Family = 32 $Family = "68040"
CASE $Family = 33 $Family = "68xxx Family"
CASE $Family = 34 $Family = "68000"
CASE $Family = 35 $Family = "68010"
CASE $Family = 36 $Family = "68020"
CASE $Family = 37 $Family = "68030"
CASE $Family = 38 $Family = "Hobbit Family"
CASE $Family = 39 $Family = "Weitek"
CASE $Family = 40 $Family = "PA-RISC Family"
CASE $Family = 41 $Family = "V30 Family"
CASE $Family = 42 $Family = "Pentium III Xeon"
CASE $Family = 43 $Family = "AS400 Family"
CASE $Family = 44 $Family = "IBM390 Family"
CASE $Family = 45 $Family = "i860"
CASE $Family = 46 $Family = "i960"
CASE $Family = 47 $Family = "SH-3"
CASE $Family = 48 $Family = "SH-4"
CASE $Family = 49 $Family = "ARM"
CASE $Family = 50 $Family = "StrongARM"
CASE $Family = 51 $Family = "6x86"
CASE $Family = 52 $Family = "MediaGX"
CASE $Family = 53 $Family = "MII"
CASE $Family = 54 $Family = "WinChip"
ENDSELECT
? "Family is " +$Family
;? "Family is = "WMIQuery("Family","Win32_Processor") " Family"
? "System Memory = "val(WMIQuery("TotalPhysicalMemory","Win32_LogicalMemoryConfiguration"))/1024 " MB"
for each $dimm in Split(WMIQuery("Capacity","Win32_PhysicalMemory"),"|")
? "Dimm Size = "val($dimm) / 1048576 " MB"
next
? "Video Card is = "WMIQuery("Description","Win32_VideoController")
? "Video Res is = "WMIQuery("VideoModeDescription","Win32_VideoController")
? "Modem is = "WMIQuery("Description","Win32_POTSModem")
for each $nic in Split(WMIQuery("ProductName","Win32_NetworkAdapter"),"|")
if instr($nic,"miniport")=0 and instr($nic,"RAS")=0 and instr($nic,"Parallel")=0
? "Network Card is = "$nic
endif
next

get $k

FUNCTION WMIQuery($what,$where,)
dim $strQuery, $objEnumerator, $value
$strQuery = "Select $what From $where"
$SystemSet = GetObject("winmgmts:{impersonationLevel=impersonate}!//@WKSTA")
$objEnumerator = $SystemSet.ExecQuery($strQuery)
For Each $objInstance in $objEnumerator
If @Error = 0 and $objInstance <> ""
$=execute("$$value = $$objInstance.$what")
$WMIQuery="$value"+"|"+"$WMIQuery"
EndIf
Next
$WMIQuery=left($WMIQuery,len($WMIQuery)-1)
exit @error
ENDFUNCTION

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#27585 - 2002-08-22 11:59 PM Re: Remotely generate @cpu output?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Yes, they (family numbers) will all be off by one, at least when I tested it.
_________________________
There are two types of vessels, submarines and targets.

Top
#27586 - 2002-08-23 02:53 AM Re: Remotely generate @cpu output?
Jtel Offline
Fresh Scripter

Registered: 2002-04-13
Posts: 41
I wouldn't rely on any of the information in the CPU family table. Based on what you're saying and what the table shows, my new 2Ghz Pentium 4 (family 15) would be a Celeron. [Frown] The chart would be nice if it were correct and up to date.
Top
#27587 - 2002-08-23 03:43 AM Re: Remotely generate @cpu output?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Yeah, I found some documentation of this 'bug' here: http://groups.google.com/groups?hl=en&lr=&ie=UTF -8&oe=UTF-8&th=cdbecd9d8be76a9f&seekm=eptdpf4MCHA.2404%40tkmsftngp11&frame=off

This is actually quiet interesting since it specifies a way to access the value map of the returned value. you can therefore translate the value into the associated value, in this case the processor type.

Another addition: This post ( http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=3D390CDB.5C985D 0E%40hydro.com ) contains a translation table for family codes and model numbers, pretty extensive.

And I found a Microsoft KB article, too: http://support.microsoft.com/default.aspx?scid=kb;en-us;q289514

Jackput! The official Intel type, family, model, and stepping numbers are in this PDf document: ftp://download.intel.com/support/processors/procid/24161812.pdf

[ 23. August 2002, 03:56: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#27588 - 2002-08-23 04:12 PM Re: Remotely generate @cpu output?
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
Whew! [Big Grin]

With that amount of info, I'm confident that I will be able resolve my original question. I will post my solution when I have it.

FYI, can't seem to get the 'jackpot' pdf to download from the intel ftp site for some reason - just get a blank screen at that address. [Frown]

Cheers...
_________________________
We all live in a Yellow Subroutine...

Top
#27589 - 2002-08-23 04:18 PM Re: Remotely generate @cpu output?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You might need an FTP client to get to the file, although I just tested it with my browser (IE6) and it does download/display.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 484 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.052 seconds in which 0.013 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org