{"id":284,"date":"2015-09-07T16:20:04","date_gmt":"2015-09-07T16:20:04","guid":{"rendered":"http:\/\/onlinelab.info\/?p=284"},"modified":"2015-09-07T16:20:04","modified_gmt":"2015-09-07T16:20:04","slug":"register-clients-with-spacewalk-server","status":"publish","type":"post","link":"https:\/\/www.asianux.org.vn\/index.php\/2015\/09\/07\/register-clients-with-spacewalk-server\/","title":{"rendered":"Register clients with SpaceWalk Server"},"content":{"rendered":"<figure id=\"attachment_9224\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9224\" src=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/09\/Spacewalk.png\" alt=\"Install Spacewalk\" width=\"200\" height=\"200\" title=\"\"><figcaption class=\"wp-caption-text\">Spacewalk<\/figcaption><\/figure>\n<p>This is the third part of Spacewalk installation and configuration series. In the first two parts, we gone through how to install and configure Spacewalk server and managing Spacewalk channels and repositories.<\/p>\n<ol>\n<li><a href=\"http:\/\/www.itzgeek.com\/how-tos\/linux\/centos-how-tos\/how-to-install-spacewalk-on-centos-7-rhel-7.html\" target=\"_blank\" rel=\"noopener\">Install And Configure Spacewalk In CentOS 7<\/a><\/li>\n<li><a href=\"http:\/\/www.itzgeek.com\/how-tos\/linux\/centos-how-tos\/managing-channels-and-repositories-spacewalk-on-centos-7-rhel-7.html\" target=\"_blank\" rel=\"noopener\">Managing Spacewalk Channels And Repositories<\/a><\/li>\n<\/ol>\n<p>In this tutorial, we will configure clients to take installation packages from the Spacewalk server by registering it with Spacewalk server.<\/p>\n<h2>Environment:<\/h2>\n<p>OS : CentOS Linux release 7.0.1406 (Core)<\/p>\n<p>Hostname : client.itzgeek.local<\/p>\n<p>IP Address : 192.168.12.4<\/p>\n<h2>Install Spacewalk clients:<\/h2>\n<p>CentOS Base repository does not have packages that are required for registering clients with Spacewalk server, so we would require to configure Spacewalk repo on client machine.<\/p>\n<pre># rpm -Uvh http:\/\/yum.spacewalkproject.org\/2.3-client\/RHEL\/7\/x86_64\/spacewalk-client-repo-2.3-2.el7.noarch.rpm<\/pre>\n<p>Install below packhttp:\/\/www.itzgeek.com\/wp-admin\/post.php?post=9265&amp;action=editage.<\/p>\n<pre># yum install yum-rhn-plugin<\/pre>\n<p>Once the packages are installed, proceed to register the clients with spacewalk server.<\/p>\n<h2>Register clients with SpaceWalk Server:<\/h2>\n<p>It is recommended to use activation keys for registering and configuring client systems with Spacewalk server.<\/p>\n<p>Now, login to Spacewalk server and get an activation that we created in previous tutorial.<\/p>\n<p>Goto <strong>System \u2013&gt; Activation Keys<\/strong>.<\/p>\n<figure id=\"attachment_9253\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9253 size-full\" src=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/09\/Managing-Channels-and-Repositories-All-Activation-Keys.png\" alt=\"Register clients with SpaceWalk Server - Activation Keys\" width=\"1125\" height=\"347\" title=\"\"><figcaption class=\"wp-caption-text\">Register clients with SpaceWalk Server<\/figcaption><\/figure>\n<p>On client system\u2019s Terminal, run the following command to register it to the Spacewalk server.<\/p>\n<pre># rhnreg_ks --activationkey 1-3de95eb8d397e65b3831910fdc3e3f61 --serverUrl https:\/\/server.itzgeek.local\/XMLRPC<\/pre>\n<p>Once the above command is executed, goto Spacewalk console, and click on Systems. You will see our client system that we just registered with Spacewalk.<\/p>\n<figure id=\"attachment_9267\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/09\/Register-Clients-with-Spacewalk-server-System-Overview.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9267\" src=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/09\/Register-Clients-with-Spacewalk-server-System-Overview.png\" alt=\"Register Clients with Spacewalk server - System Overview\" width=\"640\" height=\"341\" title=\"\"><\/a><figcaption class=\"wp-caption-text\">Register Clients with Spacewalk server \u2013 System Overview<\/figcaption><\/figure>\n<p>Click on client name, you will be taken to client summary page where you can see detailed information about registered client (<strong>client.itzgeek.local<\/strong>). You can see that this system has subscribed\u00a0automatically to base channel (<strong>itzgeek_centos7<\/strong>).<\/p>\n<figure id=\"attachment_9268\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/09\/Register-Clients-with-Spacewalk-server-Client-Overview.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9268\" src=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/09\/Register-Clients-with-Spacewalk-server-Client-Overview.png\" alt=\"Register Clients with Spacewalk server - Client Overview\" width=\"640\" height=\"485\" title=\"\"><\/a><figcaption class=\"wp-caption-text\">Register Clients with Spacewalk server \u2013 Client Overview<\/figcaption><\/figure>\n<h2>Modifying Subscription (Optional):<\/h2>\n<h3>GUI Mode:<\/h3>\n<p>If you want to make a use of child channels (Ex. To install Nginx), To enable the child channels of the base channel to get Niginx packages.<\/p>\n<p>Go to <strong>Systems \u2013&gt; &lt;Your Client&gt; \u2013&gt; Software \u2013&gt; Software Channels \u2013&gt; Software Channel Subscriptions<\/strong>.<\/p>\n<p>OR<\/p>\n<p>Click on <strong>Alter Subscription Channels<\/strong> on client over page.<\/p>\n<p>Select the Child channels (Ex. nginx_centos7) and click Change Subscriptions.<\/p>\n<figure id=\"attachment_9270\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/09\/Register-Clients-with-Spacewalk-server-Change-Channel-subscription.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9270\" src=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/09\/Register-Clients-with-Spacewalk-server-Change-Channel-subscription.png\" alt=\"Register Clients with Spacewalk server - Change Channel subscription\" width=\"640\" height=\"484\" title=\"\"><\/a><figcaption class=\"wp-caption-text\">Register Clients with Spacewalk server \u2013 Change Channel subscription<\/figcaption><\/figure>\n<p>Now, client system is successfully subscribed to Nginx child channel.<\/p>\n<figure id=\"attachment_9271\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/09\/Register-Clients-with-Spacewalk-server-Subscripton-List.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9271\" src=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/09\/Register-Clients-with-Spacewalk-server-Subscripton-List.png\" alt=\"Register Clients with Spacewalk server - Subscripton List\" width=\"640\" height=\"485\" title=\"\"><\/a><figcaption class=\"wp-caption-text\">Register Clients with Spacewalk server \u2013 subscription List<\/figcaption><\/figure>\n<h3>Command Line Mode:<\/h3>\n<p>You can also change channel subscription using command Line. To list subscribed channels, run.<\/p>\n<pre># rhn-channel -l<\/pre>\n<p>sample output:<\/p>\n<pre>itzgeek_centos7<\/pre>\n<p>To list the available channels, run.<\/p>\n<pre># rhn-channel -L<\/pre>\n<p>sample output:<\/p>\n<pre>Username: itzgeek\nPassword:\nnginx_centos7<\/pre>\n<p>Now, to subscribe to child channel, run.<\/p>\n<pre># rhn-channel -a -c nginx_centos7<\/pre>\n<p>You will have to enter username and password of Spacewalk server admin account.<br \/>\nVeryify the subscription using below command.<\/p>\n<pre># rhn-channel -l<\/pre>\n<p>sample output:<\/p>\n<pre>itzgeek_centos7\nnginx_centos7<\/pre>\n<p>If you want to remove child channel subscriptions, run the following command.<\/p>\n<pre># rhn-channel -r -c nginx_centos7<\/pre>\n<p>That\u2019s it.\u00a0 You can start to install or update packages from the Spacewalk server. Also, make sure that you have disabled non-Spacewalk repositories.<\/p>\n<p>To do that, run:<\/p>\n<pre># sed -i 's\/enabled=1\/enabled=0\/g' \/etc\/yum.repos.d\/*<\/pre>\n<p>To test, install Nginx package on client machine.<\/p>\n<pre># yum install nginx<\/pre>\n<p>Sample output:<\/p>\n<pre>Loaded plugins: fastestmirror, rhnplugin\n<strong>This system is receiving updates from RHN Classic or Red Hat Satellite.<\/strong>\nLoading mirror speeds from cached hostfile\nResolving Dependencies\n--&gt; Running transaction check\n---&gt; Package nginx.x86_64 1:1.8.0-1.el7.ngx will be installed\n--&gt; Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\nPackage\u00a0\u00a0\u00a0\u00a0\u00a0 Arch\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Version\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Repository\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Size\n================================================================================\nInstalling:\nnginx\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1:1.8.0-1.el7.ngx\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>nginx_centos7\u00a0<\/strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 369 k\n\nTransaction Summary\n================================================================================\nInstall\u00a0 1 Package\n\nTotal download size: 369 k\nInstalled size: 889 k\nIs this ok [y\/d\/N]:\n\n[...]<\/pre>\n<p>If you see the above output, the packages are installed from Spacewalk child channel (nginx_centos7).<\/p>\n<p>That\u2019s All. You have successfully registered client systems with Spacewalk server for packages.I plan to cover more topics on Spacewalk server, stay tuned.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spacewalk This is the third part of Spacewalk installation and configuration series. In the first two parts, we gone through how to install and configure Spacewalk server and managing Spacewalk channels and repositories. Install And&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-284","post","type-post","status-publish","format-standard","hentry","category-solution"],"_links":{"self":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/comments?post=284"}],"version-history":[{"count":0,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/284\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/media?parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/categories?post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/tags?post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}