0% found this document useful (0 votes)
28 views10 pages

02 Linux Commands

Uploaded by

Luis Batta
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
28 views10 pages

02 Linux Commands

Uploaded by

Luis Batta
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 10

 How to read a PDF file in the CT Console

o Copy the file to the USB Flash Drive you want to read at the console
o Install the USB Drive in any USB port available in the console
o Open a Unix shell and type:
a. mountUSB [enter}
b. cd /USB [enter]
c. acroread filename.pdf [enter]
Example: acroread “Linux commands.pdf” [enter] (use quotes when more than one word)
or
acroread commands.pdf [enter]
d. The file will open at the console

 tail ‐f ‐ allow to watch the gesys log in real time

 GFV ‐ search for patterns of key system failures events


Method # 1 – requires Class M, Class C and Proprietary Service Key.
o CSD  Error Logs  StartGFV

Method # 2 – requires Class M


o {ctuser@hci ~} cd /usr/g/service/GFV
o {ctuser@hci GFV} StartGFV

1
 viewlog ‐ read the gesys log in a Unix shell
1. Open a Unix shell and type:
{ctuser@hci} viewlog [enter]

How to search for patterns:


/xxxx ‐ search forward for a specific pattern
Examples:
/Jan<sp><sp>1 (double space if a single digit date)
/Jan<sp>10 (single space if a double digit date)
/Exam:<sp>##### (#### is the Exam number)
n search for previous pattern
> Go to last line in file
?xxxx – search backwards for a specific pattern

2. Press “q” to exit.

 How to read a gesys log compressed file


1. {ctuser@hci} cd /usr/g/service/log [enter]
2. {ctuser@hci} ls ‐altr gesys* [enter]
‐rw‐r‐‐r‐‐ 1 ctuser ctuser 334263 Jan 17 11:15 gesys_rev_evo1.log.01.17.2020.11.15.33.Z
‐rw‐r‐‐r‐‐ 1 ctuser ctuser 248271 Feb 4 16:43 gesys_rev_evo1.log.02.04.2020.16.43.38.Z
‐rw‐r‐‐r‐‐ 1 root root 5314801 Mar 23 08:40 gesys_rev_evo1.log
3. {ctuser@hci} zless gesys_rev_evo1.log.02.04.2020.16.43.38.Z
(Note: You will need to change the filename highlighted in yellow, for what you got in step 2)

 How to copy the gesys log to a USB Flash Drive


1. Install the USB Drive on any USB port available
2. Open a Unix shell
3. Type: mountUSB [enter]
4. Type: viewlog [enter]
5. Press the letter “q”
Below is an example of the system response after pressing the letter “q”:
Processing the file /usr/g/service/log/gesys_msec7x1.log. Please wait.
6. cp /usr/g/service/log/gesys_msec7x1.log /USB [enter]
7. unmountUSB [enter]

2
 What type of System is it?
There are 2 methods to find out the system type:
1. Home page of the Common Service Desktop
2. Open a Unix shell and type:
{ctuser@hci} check_config [enter]
Product: Revolution EVO
sw_version: 16HW14.9
sw_hw_string: 16HW14.9_SP1‐0‐1.H40_PN_CM64_G_GTL  In this example the software version
is 16HW14.9 with Service Pack 1.0
host_id: 4202339038
tube_type: 22
gantry_type: GANTRY_HP_40
No. of processors: 24
Processor speed: 2394
memory: 32768

Note: check_config also provides the Software version installed on the system, as well as the host id, which
is required to create new options if the HP Host Computer is replaced.

 What is the Hardware Configuration?


Open a Unix shell and type:
swhwinfo ‐con returns Console Type
swhwinfo ‐table returns Table type
swhwinfo ‐das returns DAS type
swhwinfo ‐tube returns Tube type. If the output includes the word “plus”, the tube is a Liquid Bearing
swhwinfo ‐pet returns crystal matrix and material used by PET
swhwinfo ‐m returns Class M version information if installed
swhwinfo ‐c returns Class C version information if installed

view_config This command is available on Optima 660, Revolution EVO and Frontier 2.0
This command displays the hardware and software configuration information as listed below:

- Output of check_config command - Class C software version


- Hospital Name - Class M software version
- Host Name - IIP software version
- System ID - GPU card information
- Console type - Table type
- Host Workstation type and BIOS - DAS type
- OS information - Tube type
- Patch software information - Axial Drive type
- Host drive configuration list

3
 Mounting the Aegis Service Key manually
{ctuser@hci} lsscsi [enter]
(find the Aegis key (Apricorn Secure Key, example /dev/sdc)
{ctuser@hci} sudo mount ‐o uid=ctuser,gid=users /dev/sdc1 /media/SSA [enter]

 What options are installed in the system?


{ctuser@rev_evo1} swokinstall ‐p [enter]

Note: if you want to save the option list to a USB Flash Drive do as follows:
{ctuser@rev_evo1} mountUSB [enter]
{ctuser@rev_evo1} swokinstall ‐p > /USB/options.txt [enter]
{ctuser@rev_evo1} unmountUSB [enter]

 How to check the XR Tube temperature?


Monopolar
{ctuser@hci} watch rotor_ctrl ‐temp [enter]
Tube temperature will be updated every 2 seconds

Bipolar
{ctuser@hci} watch mat_c_tool ‐t [enter]  Not recommended to run on systems with Monopolar Tube
Tube temperature will be updated every 2 seconds

 What type of HP Host Computer is installed?


{ctuser@hci} su ‐

[root@hci ~]# dmidecode | grep ‐i hp [enter]


Product Name: HP Z840 Workstation ‐ this is an example

 Hard Drive(s) space information


{ctuser@hci} df ‐h [enter]
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 15G 5.9G 9.2G 40% /
udev 16G 296K 16G 1% /dev
tmpfs 16G 335M 16G 3% /dev/shm
/dev/sda1 197M 49M 138M 27% /boot
/dev/sda5 5.0G 122M 4.9G 3% /tmp
/dev/sda6 5.0G 403M 4.6G 8% /var
/dev/sda7 10G 33M 10G 1% /var/log/audit
/dev/sda8 213G 22G 192G 11% /usr/g
/dev/sdb5 280G 16G 264G 6% /usr/g/sdc_image_pool
/dev/sdc1 477G 305G 172G 64% /raw_data
/dev/sdd 7.6G 6.8M 7.6G 1% /media/SSA

4
 Ifconfig – configure network interface
{ctuser@msec7x1} ifconfig [enter]
eth0 Link encap:Ethernet HWaddr 14:02:EC:7A:9A:DE
inet addr:172.16.0.1 Bcast:172.16.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Memory:f4100000‐f4200000
eth1 Link encap:Ethernet HWaddr 14:02:EC:7A:9A:DF
inet addr:192.9.220.1 Bcast:192.9.220.255 Mask:255.255.255.0
inet6 addr: fe80::1602:ecff:fe7a:9adf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2977019 errors:0 dropped:0 overruns:0 frame:0
TX packets:2426566 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:471979569 (450.1 Mb) TX bytes:324437172 (309.4 Mb)
Memory:f4000000‐f4100000
eth2 Link encap:Ethernet HWaddr 70:5A:0F:2F:02:57
inet addr:3.231.48.16 Bcast:3.231.48.255 Mask:255.255.255.0
inet6 addr: fe80::725a:fff:fe2f:257/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2744572 errors:0 dropped:126612 overruns:0 frame:0
TX packets:3195703 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:189715813 (180.9 Mb) TX bytes:4196990115 (4002.5 Mb)
Memory:e8100000‐e8180000
eth3 Link encap:Ethernet HWaddr 70:5A:0F:2F:02:56
inet addr:10.44.22.20 Bcast:10.44.22.255 Mask:255.255.255.0
inet6 addr: fe80::725a:fff:fe2f:256/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:189660 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:12141352 (11.5 Mb)
Interrupt:20 Memory:e8300000‐e8320000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:91153812 errors:0 dropped:0 overruns:0 frame:0
TX packets:91153812 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5632860664 (5371.9 Mb) TX bytes:5632860664 (5371.9 Mb)

5
 arp ‐a mapping of IP Addresses to MAC Addresses
{ctuser@rev_evo1} arp ‐a [enter]
(Note: below is an example, the output varies depending on the Host PC model)
TGP (192.9.220.2) at 00:08:00:02:0f:e0 [ether] on eth1 (TGP is connected to the Host PC eth1)
? (3.231.48.254) at 00:00:0c:07:ac:30 [ether] on eth2 (Hospital network connected to eth2)
ipc (192.9.220.5) at 00:a0:f4:40:30:25 [ether] on eth1
glc (192.9.220.8) at 00:19:5c:07:17:a3 [ether] on eth1
? (10.44.22.21) at <incomplete> on eth3 (EKG Monitor connected to eth3)

 How to check a successful LFC completion


{ctuser@hci} cd /var/adm [enter]
{ctuser@hci} grep “input/output error” install.log.xxxxx [enter]
xxxxx is date and time of LFC completion
if the “input/output eror” is found in the log, perform LFC again

 How to check Software media


{ctuser@hci} mount /mnt/cdrom [enter]
{ctuser@hci} cd /mnt/cdrom [enter]
{ctuser@hci} checkMedia ‐r /usr/g/ctuser/Soft_Media_Check.txt [enter]
{ctuser@hci} unmount /mnt/cdrom [enter]
Note: after completing checkMedia, the result will be output in /usr/g/ctuser/Soft_Media_Check.txt
Verify all file checks are passed.

 INFO File – the INFO file includes all the information entered in the “reconfig” GUI
{ctuser@hci} cd /usr/g/config [enter]
{ctuser@hci} less INFO [enter]

 How to save/restore System State when Applications do not come up. (onsite)
Open a Unix shell and type:
{ctuser@hci} event_router& [enter]
{ctuser@hci} sysstategui ‐USB [enter]
Reboot the system once you finish copying/restoring System State.

6
 How to capture screen snapshots (onsite)
o Install the USB Flash Drive in any USB port available.
o Open a Unix shell and type:
a. {ctuser@hci} mountUSB [enter]
b. {ctuser@hci} cd /USB [enter]
c. {ctuser@hci} import filename.jpg [enter]
Filename can be any name.
Run this command, press ENTER, then press the mouse left button on the screen you want to capture.
File will be saved in the USB Flash Drive.
d. {ctuser@hci} unmountUSB [enter]

 How to edit a file (onsite)


1. Open a Unix shell
2. Go to the directory where the file you want to edit is located
3. Type: xedit filename [enter]
The file will open, edit the file, then save the changes.

 XR Tube usage
{ctuser@msec7x1} tubeUsage ‐tty ‐exam [enter]
Tube Date Installed
‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐‐‐‐
1 Tue Dec 18 14:34:10 2018
2 Thu Oct 4 03:31:20 2018
3 Tue May 29 13:45:42 2018
4 Wed Feb 28 17:07:10 2018
5 Wed Jan 17 15:20:39 2018
6 Wed Dec 13 15:12:57 2017
7 Wed Nov 9 16:33:42 2016
8 Thu Jun 9 07:14:07 2016
9 Tue May 31 20:38:46 2016
10 Fri May 27 15:25:40 2016
11 Fri May 27 15:01:03 2016
12 Fri May 27 14:44:32 2016
13 Thu Nov 12 18:41:19 2009
14 Mon Jul 13 13:17:34 2009
15 Fri Jul 10 04:04:58 2009
c Cumulative Statistics
q Quit

tube to view :: Enter the number here!

7
 Check Air Bubbles in Systems with Monopolar Tube (Revolution GSI, Frontier, HD750 & VCT)
{ctuser@msec7x1} cat /usr/g/service/state/air_bubble_detection_result.csv [enter]
Mon Feb 24 15:32:12 2020,50032/1/7, 7269.425781
Tue Mar 3 15:24:24 2020,50042/1/3, 3645.091309

Notes:

1. Beam Quality Scans are performed once a week.


2. If the value is over 20,000, it may indicate air in the oil
cooling system. Artifacts may begin to appear when the
value is above 40,000

 Copying DICOM images to the USB Flash Drive using “sdc2tree” script. (onsite)
1. Select Image Works
2. Select an Exam, then select the series and images you want to copy.
3. Select Utilities  Create anonymous patient by series
Note: latest software versions include the “Anonymize Patient” button on the right pane.
The system will create the same Exam/Series anonymized
4. Open a Unix shell by pressing Alt+F3 or by selecting the Tool Chest button, if available.
5. In the Image Works screen, select the Exam and Series you just anonymized.
6. In the Unix shell, while the Exam/Series are highlighted, enter the sdc2tree command to create a full
set of DICOM images from the Exam.
7. When the sdc2tree command is entered, you should see a scrolling set of text in the Unix terminal
until all the DICOM images are created.
8. When complete, go to the following directory listed in the Unix shell. See example below:
{ctuser@hci} sdc2tree [enter]
/usr/g/ctuser/DCM_TREE/rev/20191206‐e100/ created.
/usr/g/ctuser/DCM_TREE/rev/20191206‐e100/s301/ created.
/usr/g/sdc_image_pool/images/p2/e2/s2/i18.CTDC.1
/usr/g/sdc_image_pool/images/p2/e2/s2/i19.CTDC.2
/usr/g/sdc_image_pool/images/p2/e2/s2/i20.CTDC.3  copy the line colored in red, this
line may be different depending on the software version.
{ctuser@hci} cd /usr/g/sdc_image_pool/images/p2/e2/s2
{ctuser@hci} ls [enter]
i18.CTDC.1* i21.CTDC.4* i24.CTDC.7* i27.CTDC.10* i30.CTDC.13* i33.CTDC.16*
i19.CTDC.2* i22.CTDC.5* i25.CTDC.8* i28.CTDC.11* i31.CTDC.14*
i20.CTDC.3* i23.CTDC.6* i26.CTDC.9* i29.CTDC.12* i32.CTDC.15*
{ctuser@hci} Install a USB Flash Drive and type: mountUSB [enter]
{ctuser@hci} cp *.*.* /USB [enter] (Note: all images will be copied to the USB Flash Drive)
{ctuser@hci} unmountUSB [enter]

9. Install the USB Flash Drive in your laptop, rename at least one of the images, for example:
i18.CTDC.1 rename it as i18.CTDC.1.jmg ‐ the “jmg” extension was added.
10. Double click on the image you just renamed and Javista will open. The rest of the images appear on
the upper left pane.

8
Files of Interest
Location Filename
/usr/g/service/log gencal.hhs_scan.report
ssw.diagSession.hist
/usr/g/service/state ssw.GenCal.hist*
ssw.mylar_check.hist
ssw.powerSupply.log
ssw.smart_kv.hist*
ssw.srvGanBalance.hist*
ssw.sysBalanceMon.hist*
ssw.system_alignment.hist*
ssw.tracking.hist*
ssw.tube_align.hist*

9
Navigating Documents using Adobe Acrobat Reader DC

Select View  Show/Hide  Toolbar Items  Show Page Navigation Tools  Show All Page Navigation Tools

10

You might also like