117. .proc.cpuinfo

SCR Agent for reading /proc/cpuinfo

117.1. Authors

  • Ladislav Slezak <lslezak@suse.cz>

117.2. 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

117.3. Usage

Example 65. 

    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+")