02 Linux Commands
02 Linux Commands
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
1
viewlog ‐ read the gesys log in a Unix shell
1. Open a Unix shell and type:
{ctuser@hci} viewlog [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.
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:
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]
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]
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
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)
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]
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
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:
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