Hudratronium commented on issue #6680:
URL: https://github.com/apache/cloudstack/issues/6680#issuecomment-1230323456

   lscpu alone is giving me the whole output which is expected, as well as the 
'model name'.
   
   System's locale is locale is `en_GB.UTF-8` . So nothing spcial by any 
means.... And currently we don't have any requirement for CS to use a special 
locale Version. If that's **needed** we shall edit the docs soon!
   
   Tried this `LC_ALL=C lscpu | grep -i 'Model name' | head -n 1 | egrep -o 
'[[:digit:]].[[:digit:]]+GHz' | sed 's/GHz//g'` and the same result.
   Results after every step of the pipes:
   `LC_ALL=C lscpu`  = FULL lscpu result
   `LC_ALL=C lscpu | grep -i 'Model name' ` = Model name:   AMD..... 
   `LC_ALL=C lscpu | grep -i 'Model name' | head -n 1 ` = Model name:  AMD ....
   `LC_ALL=C lscpu | grep -i 'Model name' | head -n 1 | egrep -o 
'[[:digit:]].[[:digit:]]+GHz' ` = EMPTY with no error
   `LC_ALL=C lscpu | grep -i 'Model name' | head -n 1 | egrep -o 
'[[:digit:]].[[:digit:]]+GHz' | sed 's/GHz//g'` = EMPTY with no error
   
   The 'Model name' for AMD CPUs doesn't contain any value for speeds nor the 
"egrep" pattern....
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to