Hi Michael,
There is no direct string containing the vendor/model. By default we don't
include the dmidecode command which can retrieve BIOS info, but not always
accurate or useful.
A couple ideas ... (example APU2)
# cat /proc/cpuinfo | sed -n -r 's/^model
name[[:space:]]*:[[:space:]]*(.+)$/\1/p'
AMD GX-412TC SOC
AMD GX-412TC SOC
AMD GX-412TC SOC
AMD GX-412TC SOC
You could generate a unique hash string from that ...
# cat /proc/cpuinfo | sed -n -r 's/^model
name[[:space:]]*:[[:space:]]*(.+)$/\1/p' | tr -d ' \t' | sha1sum | cut -c 1-8
4e908e0f
Of course this is not totally unique, but for the common boards used with
AstLinux it would probably be unique. But you would have to map the hash to a
human readable string.
You could further refine it using the MAC address of the NIC's
# ip -o link show | sed -n -r 's#^.*link/ether ([0-9a-fA-F:]+).*$#\1#p'
00:0d:b9:01:02:24
00:0d:b9:01:02:25
00:0d:b9:01:02:26
00:0d:b9:01:02:25
Get the Vendor of the first MAC ...
# ip -o link show | sed -n -r 's#^.*link/ether ([0-9a-fA-F:]+).*$#\1#p' | xargs
mac2vendor
PC Engines GmbH
You can create a very simple shell script to qualify your vendor/model.
--
#!/bin/sh
echo "Network Hardware: $(ip -o link show | sed -n -r 's#^.*link/ether
([0-9a-fA-F:]+).*$#\1#p' | xargs mac2vendor)"
echo "Memory: $(awk '/^MemTotal:/ { print int(($2 + 512) / 1024) }'
/proc/meminfo) MB"
case $(cat /proc/cpuinfo | sed -n -r 's/^model
name[[:space:]]*:[[:space:]]*(.+)$/\1/p' | tr -d ' \t' | sha1sum | cut -c 1-8)
in
4e908e0f) echo "PC Engines APU2" ;;
f24bfcb8) echo "Jetway NF9HG-2930" ;;
173fdaba) echo "Soekris net5501" ;;
*) echo "Model Unknown" ;;
esac
--
Output for APU2:
--
Network Hardware: PC Engines GmbH
Memory: 3881 MB
PC Engines APU2
--
Lonnie
On Mar 1, 2018, at 4:49 AM, Michael Knill <[email protected]>
wrote:
> Ah whoops sorry. Wrong terminology.
> I meant board vendor/model etc. E.g. is it an APU1, APU2, Jetway ????
>
> Regards
> Michael Knill
> On 1/3/18, 9:39 pm, "Michael Keuter" <[email protected]> wrote:
>
>
>> Am 01.03.2018 um 11:25 schrieb Michael Knill
>> <[email protected]>:
>>
>> Hi Group
>>
>> Is there an easy way to find what board type you have installed in an
>> Astlinux box?
>> Im starting to lose track of what I have installed ☹
>>
>> Regards
>> Michael Knill
>
> "cat /proc/cmdline"
>
> This is from the file:
>
> "/oldroot/cdrom/os/astlinux-xxx.run.conf"
>
> you can see in the line KCMD under "astlinux=xxx" the board type.
>
> Michael
>
> http://www.mksolutions.info
>
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Astlinux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to
> [email protected].
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Astlinux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to
> [email protected].
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to
[email protected].