{"id":3933,"date":"2016-03-09T09:23:34","date_gmt":"2016-03-09T09:23:34","guid":{"rendered":"http:\/\/www.theperfectarts.com\/?p=3933"},"modified":"2016-04-10T09:27:39","modified_gmt":"2016-04-10T09:27:39","slug":"command-to-check-aix-kernel-mode","status":"publish","type":"post","link":"https:\/\/www.ktchost.com\/blog\/command-to-check-aix-kernel-mode\/","title":{"rendered":"Command to check AIX kernel mode"},"content":{"rendered":"<p>In AIX its important to know exactly which &#8220;kernel mode&#8221; we are using as its useful for server security and performance. Basically in AIX the symbolic link is used to define the &#8220;kernel mode&#8221; which is different as compare to other operating systems. In AIX three main &#8220;kernel mode&#8221; is available on every server, we can set the &#8220;kernel mode&#8221; as per requirement, The &#8220;kernel mode&#8221; symbolic link defined under the \/unix directory , therefore we can change the &#8220;kernel mode&#8221; by removing the symbolic present under the \/unix directory and create the new symbolic link as per &#8220;kernel mode&#8221; we want to set.<\/p>\n<p>To check the &#8220;kernel mode&#8221;, simply login into the Server as a root user and run the following commands from the shell.<\/p>\n<blockquote><p>ls -l \/unix<\/p><\/blockquote>\n<p>It will show the following three possible outputs as per &#8220;kernel mode&#8221; defined on server.<\/p>\n<blockquote><p>\/unix -&gt; \/usr\/lib\/boot\/unix_up \u00a0 \u00a0# The 32 bit uniprocessor kernel<\/p>\n<p>\/unix -&gt; \/usr\/lib\/boot\/unix_mp \u00a0 # The 32 bit multiprocessor kernel<\/p>\n<p>\/unix -&gt; \/usr\/lib\/boot\/unix_64 \u00a0 \u00a0# \u00a0The 64 bit multiprocessor kernel<\/p><\/blockquote>\n<p>For example, if you want to change the\u00a0&#8220;kernel mode&#8221; from 32 bit\u00a0&#8220;kernel mode&#8221; to 64 bit\u00a0&#8220;kernel mode&#8221;, then refer to the following command one by one but make sure that you know exactly which command you are running else it will cause you many problem.<\/p>\n<blockquote><p>ln -sf \/usr\/lib\/boot\/unix_64 \/unix<\/p>\n<p># It will create new symbolic link for\u00a064 bit\u00a0&#8220;kernel mode&#8221;<\/p>\n<p>ln -sf \/usr\/lib\/boot\/unix_64 \/usr\/lib\/boot\/unix<\/p>\n<p># It will create symbolic link in\u00a0boot logical volume<\/p>\n<p>bosboot -ad \/dev\/hdiskxxx<\/p>\n<p># It will create complete boot image ( -a ) and define boot device ( -d )<\/p>\n<p>shutdown -r<\/p>\n<p># It will\u00a0initiate system reboot through the shutdown command.<\/p><\/blockquote>\n<p>The \/dev\/hdiskxx directory is a directory under which the complete boot image will be created. To find out what xxx is in hdiskxx, run the following command.<\/p>\n<blockquote><p>lslv -m hdxxx<\/p><\/blockquote>\n<p>For example\u00a0dev\/hdisk is\u00a0\/dev\/hd3, then command will be<\/p>\n<blockquote><p>lslv -m \/dev\/hd3<\/p><\/blockquote>\n<p>You can subscribe our mailing list for further articles, if you have any queries, you can mail us or make a comment.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>In AIX its important to know exactly which &#8220;kernel mode&#8221; we are using as its useful for server security and performance. Basically in AIX the <a class=\"mh-excerpt-more\" href=\"https:\/\/www.ktchost.com\/blog\/command-to-check-aix-kernel-mode\/\" title=\"Command to check AIX kernel mode\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":3986,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-3933","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aix"],"_links":{"self":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/3933"}],"collection":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/comments?post=3933"}],"version-history":[{"count":3,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/3933\/revisions"}],"predecessor-version":[{"id":3936,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/3933\/revisions\/3936"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media\/3986"}],"wp:attachment":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media?parent=3933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/categories?post=3933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/tags?post=3933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}