Solaris and Linux Scripting

0 0

Total number of cores Linux:

$ lscpu | grep -E ‘^Thread|^Core|^Socket|^CPU(‘
CPU(s): 4
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1

Total number of cores Solaris:

~$ kstat cpu_info|grep core_id|sort -u|wc -l|awk ‘{print “Total cores=”$1}’
Total cores=2

Memory(RAM) Information Linux:

$ cat /proc/meminfo | grep MemTotal |awk ‘{print “Memory Of the Server=”$2/1024/1024 ” gb”}’
Memory Of the Server=62.669 gb

Memory(RAM) Information Solaris:


$ prtdiag -v | grep Memory |awk ‘{print “Memory Of the Server=”$3/1024 “gb”}’
Memory Of the Server=32gb
$ prtconf | grep Memory |awk ‘{print “Memory Of the Server=”$3/1024 “gb”}’
Memory Of the Server=32gb

About Post Author

janakiram

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous post Install Oracle WebLogic Server 12.2.1.3+ (64-bit)(ORMB)
Next post 12c Database Install on Oracle Cloud Infrastructure