YaST2: How to access hardware and configuration files There are a number of different ways to access configuration files, the output of external programms and the hardware from within YCP scripts. All methods have advantages and disadvantages. The upper list is ordered in the direction in which you have to decide. For example if something can be done with the anyagent, you should do it this way. If not, try to write an agent in C++ or in shell. The advantage of agents is, that they are very independent of the configuration module(s) that use them. It is much more easy to reuse an agent than a code sequence of a module.