Notes on the miniGlobal Project
The Basics
- Six East Coast Centers to be Simulated: ZJX ZDC ZBW ZOB ZMA ZNY
- Three Airports to be simulated: KMCO, KLAX KJFK
- Three West Coast Centers to be Simulated: ZLA ZOA ZSE
- Adaptations MiniGlobal?-jwbcrn-A
- eac1201h National
- j137a307 j ZJX Jacksonville
- w137a307 w ZDC Washington
- b147c307 b ZBW Boston
- c137a307 c ZOB Cleveland
- r137d307 r ZMA Miami
- n137b307 n ZNY New York
- l137b307 l ZLA Los Angles
- o137a307 o ZOA Oakland
- s137c307 s ZSE Seattle
Contacts
Name | Phone | role/org | |
Dan Warburton | 4480 | warb@… | TGF/SDRR support |
Jim Petco | 7605 | eib admin/LM | |
Vince | eib admin/LM | ||
Sam Goodman | O:13862267131 M: 609-442-4786 | ftb | |
Chris Continisio | (609) 485-5869 | Christopher.CTR.Continisio@… | NIEC Support |
vnc for ftp
bash-4.2$ cat bin/vncftb ## ERAM-ZNY vncviewer -Shared -ViewOnly 172.17.70.206::5901 & ## TGF Display vncviewer -Shared -ViewOnly 172.17.70.131::5900 & ## ftbsdrr1 ##vncviewer -Shared -ViewOnly 172.17.70.170 # #sdrr display (dsp01?) ## vncviewer -Shared 172.17.70.132:5900& # # ATOP-ZNY ## vncviewer -Shared 172.17.70.216:5900& # # ERAM-ZNY ## vncviewer -Shared 172.17.70.206:5901& # # ERAM-ZMA ## vncviewer -Shared 172.17.70.200:5900& bash-4.2$
Generate GroundFlights? only scenario for sdrr
Think this will do it cvs -d jvnoffice:/raid/scenarioroot co scenarios bash-4.2$ pwd /eram/sget/data/miniGlobal/miniGlobalEastWestGround importtgf ~warb/tgf/data/MiniGlobal/flights/GroundFlights.fpx -n bash-4.2$ exportsdrr -n -E sdrrGroundFlights
Generate a sdrr scenario file from a tgf file
You need a blank scenario with all the sites included ....
# import fpx file to gsgt using only NasRoute field importtgf <FPXFile> -n # export sdrr scenario with only non-radar and FP msgs exportsdrr -n -E <sdrrScenName>
Java Debugging
Step 2: Request a Thread Dump from the JVM jstack If installed/available, we recommend using the jstack tool. It prints thread dumps to the command line console. To obtain a thread dump using jstack, run the following command: jstack <pid> You can output consecutive thread dumps to a file by using the console output redirect/append directive: jstack <pid> >> threaddumps.log
Remote Debugging: Client Side: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-remotejava_launch_config.htm
http://javarevisited.blogspot.com/2011/02/how-to-setup-remote-debugging-in.html
In order to remote debug a Java application from Eclipse, that application must be started with following JVM debug options: java -Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n -jar stockTradingGUI.jar This will start java application stockTradingGUI into debug mode using Java Debug Wire Protocol (jdwp) protocol and it will listen on port 8001 suspend=y will ensure that that application will not start running until Eclipse connect it on speicified debug port.It also important to note that application must be start before Eclipse tries to connect it other wise Eclipse will throw error "Failed to connect to remote VM. Connection refused" or "Connection refused: connect" Read more: http://javarevisited.blogspot.com/2011/02/how-to-setup-remote-debugging-in.html#ixzz2neS6aaZg
SGET
Created a subdirectory /eram/adapts/miniGlobal and created symbolic links to adaptations we have for the six sites
Note: multiselect all the sites...to create the combined center configuration....
New Scenario: Warning: fdnam.xml is not found: /opt/release/eac1201h/fdnam.xml New Scenario: Warning: fdnam.xml is not found: /opt/release/eac1201h/fdnam.xml New Scenario: Warning: fdnam.xml is not found: /opt/release/eac1201h/fdnam.xml New Scenario: Warning: fdnam.xml is not found: /opt/release/eac1201h/fdnam.xml New Scenario: Warning: fdnam.xml is not found: /opt/release/eac1201h/fdnam.xml New Scenario: Warning: fdnam.xml is not found: /opt/release/eac1201h/fdnam.xml
Export SDRR to /eram/sget/data/miniGlobal/
System Architecture
- FTB EIB (Florida Test Bed ERAM in a Box)
- VTL Virtural Test Bed installed on LPAR
- Requires NTP running
- FTB SDRR
- runs the sirds - aka ERAM driver
- Requires NTP running
- FTB ECO
- TGF (Target Generation Facility) Aircraft Simulation
- Requires NTP running
- FTB WorkStation? (general linux workstation that is used for simulation start up and control)
- requires Xeypher installed to receive ERAM ATC RADAR displays (currently one per ARTCC Facility)
- SGET Workstation workstation with access to the SGET scenario generation tool
- create a scenario with six centers by multi selection on new scenario
- import the TGF fpx flight plan file
- export for SDRR (generation of the injections etc for the flights) , copy to SDRR
- labUtils use to generate sdrr/eib simulation configuration
- ex: eibGen --rpos=1 eadp/c12ahjp0 --outdir=zjx
- eibGen --rpos=1 eadp/c12ahwo0 --outdir=zdc
- mergeHarnesses zjx zdc --outdir=MiniGlobal?-jw
scripts
Generate sdrr/eib scripts on system with labUtils installed i.e. sget for TGF
#!/bin/bash eibGen --rpos=1 /dssc/xmount/csrd/j137a307 --outdir=zjx --user=1 eibGen --rpos=1 /dssc/xmount/csrd/w137a307 --outdir=zdc --user=1 eibGen --rpos=1 /dssc/xmount/csrd/b147c307 --outdir=zbw --user=1 eibGen --rpos=1 /dssc/xmount/csrd/c137a307 --outdir=zob --user=1 eibGen --rpos=1 /dssc/xmount/csrd/r137d307 --outdir=zma --user=1 eibGen --rpos=1 /dssc/xmount/csrd/n137b307 --outdir=zny --user=1 mergeHarnesses zjx zdc zbw zob zny --outdir=MiniGlobal-jwbcn-dw mergeHarnesses zjx zdc zbw zob zma zny --outdir=MiniGlobal-jwbcrn-dw
## script to start miniglobal eib.... ees:/net/raid/raid1/home/ees/MiniGlobal/bruce/MiniGlobal-jwbcrn-B/eibNIEC==> cat runeib ./start_sdrr.ksh -d 172.17.70.170 172.17.70.171 172.17.70.172 172.17.70.173 172.17.70.174 172.17.70.175 172.17.70.176 ==> cat runeib5 # display ZJX ZDC ZBW ZOB ZNY ./start_sdrr.ksh -d 172.17.70.170 172.17.70.171 172.17.70.172 172.17.70.173 172.17.70.174 172.17.70.176
### script to run sdrr with --live statements.... sdrr@ftbsdrr:~/MiniGlobal/MiniGlobal-jwbcrn-B$ cat runsdrr sirds ./sdrr/cfg*.xml ./sdrr/staticMsgs*.xml --utc --eram=ZJX/ees:if1 --eram=ZDC/ees:if2 --eram=ZBW/ees:if3 --eram=ZOB/ees:if4 --eram=ZMA/ees:if5 --eram=ZNY/ees:if6 --noscenario --tgf=udp:3201,3201 --msg=udp:9601 --nopsync --live=zjx --live=zdc --live=zbw --live=zob --live=zma --live=zny
notes
overrides/fdklanhardware.xml
Shared memory errors are resolved by updating the ZR4_Support Element in fdklanhardware.xml this will need to be done for each generate, for each site.
The SITE_ID is set in /etc/environment
==> grep SITE /etc/environment SITE_ID=r4
Here's it is Get the ZR4_Support entry that has CODR=25 , not the others...
<Name>ZR4_Support</Name> <Network_Id>172.17.70.0</Network_Id> <CIDR>24</CIDR>
Rich Bormann Director of Engineering R4 Incorporated 442 State Route 35 Eatontown, NJ 07724-2252 732.544.5555 X1046 office 732.544.5550 fax 732.691-1399 cell www.r4-inc.com <http://www.r4-inc.com/>
ipop hadds
grep for ipop port.... on ees ....
NIEC==> netstat -a | grep 47071 tcp4 0 0 10.245.128.163.47071 *.* LISTEN udp4 0 0 239.161.3.32.47071 *.* udp4 0 0 239.161.7.32.47071 *.* udp4 0 0 239.161.8.32.47071 *.* udp4 0 0 239.161.2.32.47071 *.* udp4 174 0 239.161.4.32.47071 *.* udp4 0 0 239.161.6.32.47071 *.*
On ftbsdrr:
Six center config here: /home/sdrr/MiniGlobal/MiniGlobal-jwbcrn
drr@ftbsdrr:~/MiniGlobal/MiniGlobal-jwbcrn$ pwd /home/sdrr/MiniGlobal/MiniGlobal-jwbcrn
sdrr@ftbsdrr:~/MiniGlobal/MiniGlobal-jwbcrn$ ls displays/ eib/ runsdrr* sdrr/ sdrr-miniglobal/
sdrr@ftbsdrr:~/MiniGlobal/MiniGlobal-jwbcrn$ cat runsdrr /usr/local/sdrr.3.2.4/bin/sirds ./sdrr/cfgZJX.xml ./sdrr/staticMsgsZJX.xml ./sdrr/cfgZDC.xml ./sdrr/staticMsgsZDC.xml ./sdrr/cfgZBW.xml ./sdrr/staticMsgsZBW.xml ./sdrr/cfgZOB.xml ./sdrr/staticMsgsZOB.xml ./sdrr/cfgZNY.xml ./sdrr/staticMsgsZNY.xml --utc --eram=ZJX/ees:if1 --eram=ZDC/ees:if2 --eram=ZBW/ees:if3 --eram=ZOB/ees:if4 --eram=ZMA/ees:if5 --eram=ZNY/ees:if6 -s ./sdrr-miniglobal/sdrr.xml --tgf=udp:3201,3201
sirds: QSharedMemoryPrivate::initKey: unable to set key on lock (when running six erams)
On NIEC ees:
NIEC==> cd eib ees:/net/raid/raid1/home/ees/MiniGlobal/MiniGlobal-jwbcrn/eib NIEC==> ls FDK_SCRATCH ZDC ZOB fdksimlib ls setup_remote_displays start_sdrr.ksh README ZJX atcoach fdnamlib overrides setup_remote_displays.mod terminate_sdrr.ksh SARData ZMA fdklib fdstalib parselib setup_remote_displays.org tmslib ZBW ZNY fdksim_config.xml generate_sdrr.ksh runeib socat
NIEC==> cat setFtbHaadsIpAddresses.ksh #!/bin/ksh -x ## only using channel A CHAN=A fac_ZOB='ZOB' fac_ZBW='ZBW' fac_ZNY='ZNY' fac_ZDC='ZDC' fac_ZJX='ZJX' fac_ZMA='ZMA' haddsIP_ZOB='172.17.70.106' haddsIP_ZBW='172.17.70.105' haddsIP_ZNY='172.17.70.104' haddsIP_ZDC='172.17.70.103' haddsIP_ZJX='172.17.70.102' haddsIP_ZMA='172.17.70.101' ##Usage: ed edit an xmlfle ## --inplace edit "in place" ## -P preserve original formatting ## -u xpath selector look for an Element Name_Def,Who's <Name> Element is "..Ip_Addr|Hadds..." , replace the <String_Def> content with $haddsIP address ## -v newvalue ## $fdnamFile the location of the fdnam file to be edited xmlstarlet ed --inplace -P -u "//Name_Def[Name=':|Ip_Addr|Hadds|$CHAN|$fac_ZOB']/String_Def" -v $haddsIP_ZOB overrides/$fac_ZOB/fdnam.xml ## just ZOB for now ##xmlstarlet ed --inplace -P -u "//Name_Def[Name=':|Ip_Addr|Hadds|$CHAN|$fac_ZBW']/String_Def" -v $haddsIP_ZBW overrides/$fac_ZBW/fdnam.xml ##xmlstarlet ed --inplace -P -u "//Name_Def[Name=':|Ip_Addr|Hadds|$CHAN|$fac_ZNY']/String_Def" -v $haddsIP_ZNY overrides/$fac_ZNY/fdnam.xml ##xmlstarlet ed --inplace -P -u "//Name_Def[Name=':|Ip_Addr|Hadds|$CHAN|$fac_ZDC']/String_Def" -v $haddsIP_ZDC overrides/$fac_ZDC/fdnam.xml ##xmlstarlet ed --inplace -P -u "//Name_Def[Name=':|Ip_Addr|Hadds|$CHAN|$fac_ZJX']/String_Def" -v $haddsIP_ZJX overrides/$fac_ZJX/fdnam.xml ##xmlstarlet ed --inplace -P -u "//Name_Def[Name=':|Ip_Addr|Hadds|$CHAN|$fac_ZMA']/String_Def" -v $haddsIP_ZMA overrides/$fac_ZMA/fdnam.xml
on ftb eco
172.17.70.130 dstgfeco1.floridanextgentestbed.org dstgfeco1
Host ftbeco User miniglobal Hostname 172.17.70.130
user: miniglobal home: /net/dstgfeco1/home/miniglobal/projects/tgf/data/MiniGlobal