# indomcachectl

## NAME



           **indomcachectl** - manage instance domain cache files
    


## SYNOPSIS



           **$PCP_BINADM_DIR/indomcachectl**[**-w**] **-l** _indom_
    
           **$PCP_BINADM_DIR/indomcachectl**[**-w**] [**-m** _mode_] [**-g** _group_] [**-u** _user_]
           _indom_
    


## DESCRIPTION



           **indomcachectl** assists in the management of the Instance Domain
           cache files that are stored in **$PCP_VAR_DIR/config/pmda**.
    
           The mandatory _indom_ parameter uses a 2-dotted format to specify
           the _domain_ and _serial_ fields of the instance domain number.  The
           required values can be reported for a particular metric using the
           **-d** option to pminfo(1).
    
           The list of available options can be retrieved using the **-?** /**--help**
           option, which displays a usage message and exits.
    
           If the **-l** /**--list** option is specified the contents of the instance
           domain cache file are dumped on _stdout_ and _indomcachectl_ exits.
    
           Otherwise an empty instance domain cache file will be created.
           The user ownership of the created file is assigned to the uid of
           the caller, but may optionally assigned to the uid of _user_ from
           the passwd(5) file if the **-u** /**--user** option is specified.  The
           group ownership of the created file is assigned to the gid of the
           caller, else the default gid of the user _user_ if the _-u_ option is
           specified, else the gid of _group_ from the group(5) file if the
           **-g** /**--group** option is specified.
    
           The instance domain cache file is created with mode 0660 by
           default (some PMDAs use group read-write permission to access and
           update the contents of the file) - if this does not suit the
           **-m** /**--mode** option may be used to set the mode to the (octal) value
           _mode_.
    
           Because the indom cache files are precious to the associated PMDA
           _indomcachectl_ will not over-write an existing indom cache file.
    
           Operation is usually silent, except for errors (or warnings if the
           **-w** /**--warning** option is used).  The exit status is 0 for success, 1
           for failure.
    


## OTHER MANAGEMENT OPTIONS



           The files in **$PCP_VAR_DIR/config/pmda** are all text files (one per
           cached instance domain) so judicious surgery may be used to make
           changes or even remove the files in extreme cases **provided** the
           PMDA is not executing.
    
           Here is an example for the instance domain number 60.17 that is
           associated with the network.interface.* metrics.
    
                **$ cat /var/lib/pcp/config/pmda/60.17**
                **2 0 2147483647**
                **0 1712727825 ens33**
                **1 1712727825 virbr0**
                **2 1712727825 lo**
    
           The first line is a magic header, do not change it.  Following
           that is one line per instance with the instance identifier (an
           integer) in the first field, some magic in the second field (do
           not change this) and the external instance name in the third
           field.
    


* * *