107. .proc.cpuinfo

SCR Agent for reading /proc/cpuinfo

107.1. Description

Reads /proc/cpuinfo file, each processor is in separate section. Note: Keys and values are architecture dependent! (For example i386 has key "cpu MHz" and value "1400.072", but PPC has "clock" with value "668MHz"!)

Access type: read

File Name: /usr/share/YaST2/scrconf/proc_cpuinfo.scr

107.2. Usage

Example 60. 

    read list of processors:  Dir(.proc.cpuinfo.section)
		=> (["0"])
    read available keys:  Dir(.proc.cpuinfo.value.0)
		=> (["vendor_id", "cpu family", "model", ... ])
    read value: Read(.cpu.value.0."model name")
		=> ("AMD Athlon(tm) XP 1600+")