EPICS IOC Diagnostics Tools Jeff Hill. Overview 4 EPICS built-in diagnostic tools 4 solutions to specific problems.

Slides:



Advertisements
Similar presentations
1 1999/Ph 514: Working With an IOC EPICS Working with an IOC Marty Kraimer APS.
Advertisements

1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
 WAN uses Serial ports  Ethernet Ports:  Straight through  Cross over.
CISCO NETWORKING ACADEMY Chabot College ELEC Address Resolution Protocol.
TCP-IP Primer David Cozens. Targets Have a basic understanding of Ethernet network technology Be aware of how this technology is applied on the 5000 series.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Processor support devices Part 1:Interrupts and shared memory dr.ir. A.C. Verschueren.
SNS Integrated Control System Running IOC Core on Windows and Linux Dave Thompson Wim Blokland Ernest Williams.
Channel Access Protocol Andrew Johnson Computer Scientist, AES Controls Group.
11 TROUBLESHOOTING Chapter 12. Chapter 12: TROUBLESHOOTING2 OVERVIEW  Determine whether a network communications problem is related to TCP/IP.  Understand.
Operating Systems Concepts 1/e Ruth Watson Chapter 11 Chapter 11 Network Maintenance Ruth Watson.
Troubleshooting.
9-12 Oct 2000PCaPAC 2000, DESY Hamburg Epics to TINE translator Matthias Clausen, DESY Hamburg Phil Duval, DESY Hamburg Zoltan Kakucs, DESY Hamburg.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
V4 – Executive Summary 1.Provide online add/delete of I/O to support continuous operation. 2.Provide redundant control of remote I/O to support improved.
Networking with Windows Vista.. Vista’s New Tools and Features The Network and Sharing Center Network Discovery Network Map Network Diagnostics.
2. Methods for I/O Operations
TCP/IP Tools Lesson 5. Objectives Skills/ConceptsObjective Domain Description Objective Domain Number Using basic TCP/IP commands Understanding TCP/IP3.6.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 7 Connect the SUSE Linux Enterprise Server to the Network.
Ch 11 Managing System Reliability and Availability 1.
Overview Print and Document Services Print Management console Printer properties Troubleshooting.
Module 7: Configuring TCP/IP Addressing and Name Resolution.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Troubleshooting Your Network Networking for Home and Small Businesses.
Managing Network connections. Network Cabling Ethernet Topology Bus topology – Connects each node in a line – Has no central connection point Star topology.
Basic Router Troubleshooting
Guide to TCP/IP, Third Edition Chapter 8: The Dynamic Host Configuration Protocol.
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 43 – The Network Interface Card (NIC)
Managing Windows Server 2008 R2 Lesson 2. Objectives.
RTEMS overview W. Eric Norum Introduction RTEMS is a tool designed specifically for real-time embedded systems The RTEMS product is an executive.
Hands-On Microsoft Windows Server 2008 Chapter 12 Managing System Reliability and Availability.
Module 7: Fundamentals of Administering Windows Server 2008.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
© 2002, Cisco Systems, Inc. All rights reserved..
Cisco S2 C4 Router Components. Configure a Router You can configure a router from –from the console terminal (a computer connected to the router –through.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 9 Basic Router Troubleshooting.
I/O Example: Disk Drives To access data: — seek: position head over the proper track (8 to 20 ms. avg.) — rotational latency: wait for desired sector (.5.
Connecting to a Network Lesson 5. Objectives Understand the OSI Reference Model and its relationship to Windows 7 networking Install and configure networking.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
Day 14 Introduction to Networking. Unix Networking Unix is very frequently used as a server. –Server is a machine which “serves” some function Web Server.
11 NETWORK CONNECTION HARDWARE Chapter 3. Chapter 3: NETWORK CONNECTION HARDWARE2 NETWORK INTERFACE ADAPTER  Provides the link between a computer and.
SNS Integrated Control System MBUF Problems and solutions on VxWorks Dave Thompson and cast of many.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Experience Running Embedded EPICS on NI CompactRIO Eric Björklund Dolores Baros Scott Baily.
3.14 Work List IOC Core Channel Access. Changes to IOC Core Online add/delete of record instances Tool to support online add/delete OS independent layer.
1 Semester 2 Module 9 Basic Router Troubleshooting Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology.
DEBUGGING EPICS APPLICATIONS Bob Dalesio and Rozelle Wright February 10, 1997.
Writing a Channel Access Client in EPICS Bob Dalesio, April 5, 2000.
Vinay Paul. CONTENTS:- What is Event Log Service ? Types of event logs and their purpose. How and when the Event Log is useful? What is Event Viewer?
EPICS EPICS Limitations Bob Dalesio Marty Kraimer.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.0 Module 9 Basic Router Troubleshooting.
1 1999/Ph 514: Flow of Control EPICS Flow of Control Marty Kraimer APS.
Network Troubleshooting
ERICSON BRANDON M. BASCUG Alternate - REGIONAL NETWORK ADMINISTRATOR HOW TO TROUBLESHOOT TCP/IP CONNECTIVITY.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Router Initialization steps.
1 1999/Ph 514: Channel Access Configuration EPICS Channel Access Configuration Andrew Johnson APS.
Troubleshooting Tools Kyle Broussard and Alexandra Mikolai.
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
1 Pertemuan 20 Network Testing. Discussion Topics Introduction to network testing Using a structured approach to troubleshooting Testing by OSI layers.
1 EPICS Flow of Control: EPICS Workshop at IHEP, Beijing, August 2001 EPICS Flow of Control Marty Kraimer APS.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
CHAPTER 3 Router CLI Command Line Interface. Router User Interface User and privileged modes User mode --Typical tasks include those that check the router.
ITMT Windows 7 Configuration Chapter 5 – Connecting to a Network ITMT 1371 – Windows 7 Configuration 1.
Monitoring Dynamic IOC Installations Using the alive Record Dohn Arms Beamline Controls & Data Acquisition Group Advanced Photon Source.
Windows Server 2003 { First Steps and Administration} Benedikt Riedel MCSE + Messaging
Instructor Materials Chapter 9: Testing and Troubleshooting
Troubleshooting IP Addressing
Channel Access Concepts
Channel Access Concepts
Presentation transcript:

EPICS IOC Diagnostics Tools Jeff Hill

Overview 4 EPICS built-in diagnostic tools 4 solutions to specific problems

Background 4 vxWorks shell allows any function to be called 4 vxWorks programs frequently provide special functions for diagnostic purposes 4 syntax is (almost) the same as calling a C function –parenthesis may be omitted 4 strings must always be in quotes

List Names of Function Blocks (Records) Installed 4 listing all records –dbl 4 listing all records of a particular type –dbl (“ ”) 4 list all records with names matching a wildcard pattern –dbgrep (“*portionOfCommiteeDesignedName*”)

Examining and Writing Function Blocks (Records) 4 Examining a function block (record) –dbpr “ ”, 4 Examining a field within a function block (record) –dbgf (“. ”) 4 Writing a Field –dbpf (“. ”, “ ”

Tracing Function Block (Record) Processing 4 set trace processing field, “TPRO”, to true –dbpf “.TPRO”,”1” –generates a message whenever the function block (record) is processed

Setting a Function Block (Record) Processing Break Point 4 set function block (record) processing break point –dbb ( “ ”) 4 delete function block (record) processing break point –dbd ( “ ”)

Single Stepping Function Block (Record) Processing 4 single step lock set after hitting break point –dbs or dbs (“ ”) 4 continue after hitting a break point –dbc or dbc (“ ”) 4 list records that have breakpoints installed –dbstat

Hardware Diagnostics 4 Examine the state of device drivers –dbior “ ”, 4 List all interrupt vectors currently in use –veclist –currently does not work on Intel architecture

Channel Access Communications Status 4 Channel Access server status –casr 4 Channel Access client status –ca_channel_status 4 List Channel Access event subscriptions –dbel 4 Status of database links to other IOCs –dbcar

Diagnosing Specific Problems 4 clients don’t connect 4 unexpected exception

Clients Don’t Connect 4 is the IOC’s CPU saturated? –type “spy” / “spyStop” to see if the server is starved for CPU –CA server will starve first –Common CPU consumption culprits sequencer, driver, record processing load 4 is the network functioning? –from workstation type “ping -s ”

No Response to “ping” 4 response at IOC’s console port? 4 Missing route? –no route to off-subnet clients by default –type “routeShow”

No Response to “ping” 4 creative thin wire (BNC) Ethernet networking? –any network where the connectors fit must be ok - not! 4 check for mBuf starvation with “mbufShow”

No Response at IOC’s Console Port 4 interrupt or DMA related problem are common culprits –exception at interrupt level typically caused by device driver problems –unacknowledged VME interrupts frequently this is a missing jumper on the VME back plane –VME bus master has not released the bus

Clients Don’t Connect 4 client and server not on the same IP subnet –if not, use EPICS_CA_ADDR_LIST environment variable 4 network interface improperly configured? –IP subnet masks of interfaces must match on vxWorks type: “ifShow” on UNIX type: “ifconfig -a” or “netstat -i” on windows type: “ipconfig”

Unexpected Exception 4 the task which generated the exception will be suspended –type “i” to list tasks and find out which one 4 determine if there is stack over flow –checkStack 4 determine if the system is low on memory –memShow strange output indicates corruption of pool

Unexpected Exception 4 before rebooting obtain a stack trace –type: “tt (0x ) frequently this is all that is needed strange output indicates stack corruption 4 send a bug report –certain bugs occur only in rare or intermittent circumstances

Observations 4 in vxWorks any C function can be used as a diagnostic 4 if you experience trouble –try to avoid rebooting without saving a stack trace of suspended tasks