Need help on physical and virtual cpu

HI,

I need a command to find,
1) Avaiable Physical CPU
2) Avaiable virtual CPU

TIA

OK,
I think below command should do it for you.

lparstat -i | egrep 'Entitled Capacity|Online Virtual CPUs'