WEBVTT

00:06.580 --> 00:13.120
This video we'll take a look at the answers for lap on format and command output.

00:13.120 --> 00:16.490
Let me remind you of the scenario for that lab.

00:16.570 --> 00:23.190
Your own realisation has specific criteria for the content and appearance of management reports.

00:23.230 --> 00:30.400
You get to write several commands that were used formatted output so that the output could be used in

00:30.400 --> 00:31.900
management reports.

00:31.900 --> 00:40.660
Let's go to exercise one in which you had to create a formatted display of computers system information

00:40.960 --> 00:50.140
as a task one so you had to pipe the output of a command to get member to see a list of properties or

00:50.410 --> 00:57.700
two from at least asterisk to say a list of properties and then well years by using the command get

00:58.000 --> 01:06.100
the same instance there's class re-inserted to underscore computer system and you get to create at least

01:06.430 --> 01:14.500
display that included the following computer's name description domain manufacturer modal number of

01:14.500 --> 01:23.250
processors install physical memory in gigabytes and step 3 was to create the specified list.

01:23.260 --> 01:27.430
So to do that task you could run the following command.

01:27.430 --> 01:36.250
Get to the same instance Desch class re-inserted to underscore computer system Pypard to formant least

01:36.570 --> 01:45.550
the property and formatted by the computer's name Komer description comma Dumaine comma manufacturer

01:45.730 --> 01:56.860
comma modal comma number of processors and a calculated property where an OR name equals total physical

01:56.860 --> 02:07.180
memory in quotes and expression equals biocide and total physical memory divided by 1 gigabyte task

02:07.380 --> 02:14.650
was to create a formatted table of process information you had to display a table of running processes

02:14.950 --> 02:23.020
and the table had to encode the forwarding process name ID virtual memory in megabytes to two decimal

02:23.020 --> 02:24.010
places.

02:24.010 --> 02:28.000
Physical memory and megabytes to two decimal places.

02:28.000 --> 02:36.400
Step two was that the table had to have additional space between didn't have to have additional space

02:36.400 --> 02:43.460
between the columns and had to be redirected to a text file that was named.

02:43.460 --> 02:50.920
That takes two and step three was to create the specifier at least by running the power shell command.

02:50.920 --> 03:00.520
So you could use the following command to get process by form formal table by property name ID and calculated

03:00.520 --> 03:10.150
property with name the name and expression beside him that we have divided by 1 megabyte for months

03:10.150 --> 03:22.390
3 in equals and 2 and another custom property with PM for name and expression beside him that PM divided

03:22.390 --> 03:26.610
by 1 megabyte for months three in equals and 2.

03:26.800 --> 03:32.210
And it should should be auto sayst and pipe 2 out file approx.

03:32.230 --> 03:39.830
That takes the tasks three ways to display a table of processes organized by base priority level.

03:39.880 --> 03:43.290
You get to display tables of random processes.

03:43.360 --> 03:52.560
The tables had to be are identical to the output normally produced by gate process using a single command.

03:52.570 --> 03:59.050
You had to create one table for each of the processes base priority property.

03:59.200 --> 04:08.920
So to display the specified list you could run get proses pipes sort base priority and pipe it to form

04:08.920 --> 04:09.920
a table.

04:09.970 --> 04:18.700
There's group by base priority task for wants to display a list of local to supply roads you had to

04:19.000 --> 04:25.760
run it to use all the command get net rolled display in a table of two separate bureaus.

04:25.810 --> 04:33.790
The table had to enclose the Fulham Road address Family road metric type of road destination graphics

04:34.090 --> 04:42.790
and the destination graphics had to be right aligned the table had had not to include additional space

04:42.790 --> 04:46.030
between Cowens to create the specified table.

04:46.030 --> 04:55.270
You could run Nat get get There's no road pipe it to for my table there's property address Family road

04:55.270 --> 04:57.670
or Mattrick type of road.

04:57.880 --> 05:08.840
And Atika co-curated property is name equal and destination Grafix and expression equal and be outside

05:08.990 --> 05:14.950
that destination graphics a line equals right and auto size.

05:15.030 --> 05:23.990
Now let's move on to the exercise too in which you had to reproduce specified output in test Kwami you

05:23.990 --> 05:29.580
had to write a command that displays file names and sizes as specified.

05:29.600 --> 05:38.250
Step one was to write a command that will display a list of all files haven't and that is the filename

05:38.330 --> 05:46.370
extension and the C-Drive Windows directory you're out good must Bluecoat exactly as follows to produce

05:46.370 --> 05:49.980
a specified output run the following command.

05:50.210 --> 06:00.350
Get child item that spells Seacole on backslash windows backslash stories that you see by sort object.

06:00.350 --> 06:09.610
There's property lands there's descendant and pipe it to form a table desk property name karma.

06:09.800 --> 06:18.140
And the following custom property name Mikel's Sarrazin kilobyte an expression equals beside that lands

06:18.500 --> 06:27.760
divided by one kilobyte format Martinek unequals and 2 and altar that task to you had to write to a

06:27.770 --> 06:32.250
command that displayed Ihram block entries specified.

06:32.330 --> 06:39.240
Step one was it want lock controls had to to have a time generated and time written.

06:39.260 --> 06:43.460
The difference between those two times is typical is zero.

06:43.460 --> 06:50.900
However it is possible for there to be a delay between the time that the event is generated and the

06:50.900 --> 06:58.260
time that it was written into the lock you had to display the most recent 20 entries from the security

06:58.260 --> 07:04.910
went look calculate the difference between the time each event was generated and the time that it was

07:04.910 --> 07:10.570
written to display the list exactly as shown on the image.

07:10.610 --> 07:13.920
So to do that you have to run the following command.

07:14.170 --> 07:17.090
To run clock does log name security.

07:17.200 --> 07:21.160
Newest round to pipe it to select object.

07:21.320 --> 07:29.090
Property with calculated property and pipe it to sort of object Desch property.

07:29.090 --> 07:38.950
Time difference there is just sound and the last five to format table this property anti-ID time difference.

07:39.080 --> 07:40.640
There are two sides.
