1 00:00:00,000 --> 00:00:05,400 Okay, now it's time to look at SOS report. Now what is 2 00:00:05,400 --> 00:00:10,080 SOS report? Well, SOS, it's actually an 3 00:00:10,080 --> 00:00:14,250 international code that is used by many, many 4 00:00:14,250 --> 00:00:17,310 people when they are in distress, or they want to 5 00:00:17,310 --> 00:00:21,630 call out Mayday. So no one really knows exactly 6 00:00:21,630 --> 00:00:24,300 what they really stand for, but if you like Google 7 00:00:24,300 --> 00:00:27,300 it or go online, you will find that a few people 8 00:00:27,300 --> 00:00:31,680 says SOS stands for like, save our soul, or save our 9 00:00:31,680 --> 00:00:36,090 ship. Anyway, so SOS is something that is called 10 00:00:36,600 --> 00:00:40,470 when someone is in really deep trouble and needs 11 00:00:40,470 --> 00:00:45,000 help. So based on the same idea, Red Hat or 12 00:00:45,000 --> 00:00:48,900 CentOS created something called SOS report, it's a 13 00:00:48,900 --> 00:00:52,770 command, when you run that command, it actually 14 00:00:53,040 --> 00:00:56,220 collects all the information about your files, 15 00:00:56,220 --> 00:00:59,520 your logs, put it into a package, and it sends it 16 00:00:59,520 --> 00:01:02,580 out to them. So again, what's the purpose of this 17 00:01:02,580 --> 00:01:06,330 report? Collect and package diagnostic and 18 00:01:06,330 --> 00:01:11,070 support data. So the package name that has to be 19 00:01:11,070 --> 00:01:15,540 installed on your system, which usually comes pre 20 00:01:15,540 --> 00:01:19,260 installed, or pre package when you are installing 21 00:01:19,290 --> 00:01:22,440 Red Hat, or CentOS on your system, and the 22 00:01:22,440 --> 00:01:25,950 package is sos-, and the version name depending 23 00:01:25,950 --> 00:01:29,430 on which version you're running. And the command 24 00:01:29,430 --> 00:01:32,220 that you will need to run to collect all that 25 00:01:32,220 --> 00:01:36,500 data, all that files and directories is sosreport. 26 00:01:36,500 --> 00:01:40,710 So let's run the sosreport command and 27 00:01:40,710 --> 00:01:44,730 see how it works. Okay, so this is my Linux 28 00:01:44,730 --> 00:01:49,947 machine. I am logged in as myself, I want you to become root. 29 00:01:49,947 --> 00:01:54,813 [No audio] 30 00:01:54,813 --> 00:01:58,650 Okay, so now I'm root. Now simply type 31 00:01:59,100 --> 00:02:03,210 sosreport. This is the command, hit enter. 32 00:02:03,210 --> 00:02:09,336 [Auhtor typing] 33 00:02:09,336 --> 00:02:14,370 It's going to tell me the sosreport version, which is 3.5, 34 00:02:14,370 --> 00:02:17,490 goes through changes as you upgrade or update your 35 00:02:17,490 --> 00:02:20,550 system. It's telling you right here this command 36 00:02:20,550 --> 00:02:22,680 will collect diagnostic and configuration 37 00:02:22,680 --> 00:02:25,590 information from this CentOS Linux system and 38 00:02:25,590 --> 00:02:29,370 install the application. And the location of all 39 00:02:29,370 --> 00:02:33,870 the files that are collected or copied will be 40 00:02:34,470 --> 00:02:40,237 under /var/tmp, and the file name will be sos., 41 00:02:40,237 --> 00:02:43,770 and so on, but the case number or the date and 42 00:02:43,770 --> 00:02:47,790 time. Also, they asked you some information to 43 00:02:47,820 --> 00:02:51,390 confirm and press enter to continue or CTRL C to 44 00:02:51,390 --> 00:02:55,320 quit of it. If you did not intend to 45 00:02:55,320 --> 00:02:58,200 run this command, or don't want to share your 46 00:02:58,410 --> 00:03:01,620 configuration files with Red Hat support or 47 00:03:01,620 --> 00:03:05,220 CentOS. So you go ahead and hit enter, and you 48 00:03:05,220 --> 00:03:08,400 will see that will ask you, it will prompt you to 49 00:03:08,430 --> 00:03:12,600 enter your first initial and last name. So put in 50 00:03:12,780 --> 00:03:17,790 your first initial last name. Then the next 51 00:03:17,790 --> 00:03:20,820 question is Please enter the case id that you are 52 00:03:20,820 --> 00:03:24,060 generating this report for. Now the case id is 53 00:03:24,060 --> 00:03:28,020 something that is given to you when you open up a 54 00:03:28,020 --> 00:03:30,840 case with Red Hat. So you called up or you open up 55 00:03:30,840 --> 00:03:33,210 online, you say hey, I'm having an issue with my 56 00:03:33,210 --> 00:03:36,030 system and so and so, and they generate a case for 57 00:03:36,030 --> 00:03:39,630 you, right. So you will have to enter the case id 58 00:03:39,630 --> 00:03:43,140 here. So for this training purposes, we'll pick an 59 00:03:43,170 --> 00:03:49,440 arbitrary numbers let's say 9000, 9000, hit enter. 60 00:03:50,100 --> 00:03:54,060 And now you will see, it will collect all the 61 00:03:54,060 --> 00:03:57,163 configuration files that are located in /etc, 62 00:03:57,163 --> 00:04:00,150 it will collect all the logs, it will collect 63 00:04:00,180 --> 00:04:02,400 all the system information. So all that 64 00:04:02,400 --> 00:04:05,640 information is been packaged together into one 65 00:04:05,640 --> 00:04:09,720 file or container which will be a tar file, and it 66 00:04:09,720 --> 00:04:14,400 will be saved in your /var/tmp directory. 67 00:04:16,140 --> 00:04:18,450 The reason we do that is because this way the 68 00:04:18,480 --> 00:04:22,350 support do not have to come back to you to ask you 69 00:04:22,350 --> 00:04:25,110 to provide certain configuration file or certain 70 00:04:25,110 --> 00:04:27,690 information back and forth, back and forth. So they 71 00:04:27,690 --> 00:04:30,660 will have all that information beforehand, before 72 00:04:30,660 --> 00:04:33,720 they started asking you some additional questions. 73 00:04:34,710 --> 00:04:37,920 So you'll see right now it's running, it's at 72 74 00:04:38,160 --> 00:04:41,490 out of 99 processor. So it's probably going to 75 00:04:41,490 --> 00:04:47,490 take somewhere from one minute to five minutes, of 76 00:04:47,490 --> 00:04:51,150 course depending on your system. If your system is 77 00:04:51,660 --> 00:04:54,870 very heavy, beefed up resources, then it will take 78 00:04:54,870 --> 00:04:58,201 a little longer as well. So give it some time. 79 00:04:58,201 --> 00:05:04,140 [no audio] 80 00:05:04,140 --> 00:05:07,800 Okay, so the command completed successfully. And 81 00:05:07,800 --> 00:05:10,410 now you will see right here, it's telling you, Your 82 00:05:10,440 --> 00:05:15,261 sosreport has been generated and saved in a war 83 00:05:15,261 --> 00:05:20,340 /var/tmp/sosreport with my user id, and right here, 84 00:05:20,340 --> 00:05:23,040 this is the case number that we enter. Of course, 85 00:05:23,070 --> 00:05:25,200 the case number will be different, in your case, 86 00:05:25,560 --> 00:05:28,890 the date and time, and it's a tar file, and it is 87 00:05:28,890 --> 00:05:31,650 compressed file because it's not that big. So what 88 00:05:31,650 --> 00:05:34,560 do you have to do is, once you have that, once 89 00:05:34,560 --> 00:05:39,570 you go to /var/tmp, and then you do ls -ltr, 90 00:05:39,570 --> 00:05:41,460 and you'll see at the bottom, this is the file 91 00:05:41,460 --> 00:05:45,570 that has been generated. You can ignore the other 92 00:05:45,720 --> 00:05:49,500 md5 file, system checks some to make sure it has 93 00:05:49,530 --> 00:05:52,920 all the required files that it was looking for. So 94 00:05:52,920 --> 00:05:54,600 once you have this file, what do you have to do, 95 00:05:54,600 --> 00:05:59,220 now you could just copy it over to Red Hat portal 96 00:05:59,670 --> 00:06:03,930 through FTP if you have your communication open 97 00:06:03,930 --> 00:06:09,750 from your system to them, or you could simply FTP 98 00:06:09,750 --> 00:06:12,750 to your own desktop, and that's how you upload 99 00:06:12,750 --> 00:06:15,660 this file to them. They will look at it and then 100 00:06:15,660 --> 00:06:18,990 they will diagnose what the issue is. So that's 101 00:06:18,990 --> 00:06:24,090 about sosreport. It's very useful and it's 102 00:06:24,120 --> 00:06:27,390 required every time you become of course a system 103 00:06:27,390 --> 00:06:30,150 administrator you will be asked to provide SOS 104 00:06:30,150 --> 00:06:32,896 report when you open up a case with Red Hat. 105 00:06:32,896 --> 00:06:34,070 [No audio]