# Cta-ops-admin config file examples

**URL:** <https://cta-community.web.cern.ch/t/cta-ops-admin-config-file-examples/305>\
**Category:** General Discussion\
**Created:** [24 May 2024 18:42 UTC](https://cta-community.web.cern.ch/t/cta-ops-admin-config-file-examples/305 "2024-05-24T18:42:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff](https://cta-community.web.cern.ch/user_avatar/cta-community.web.cern.ch/jeff/32/69_2.png) [@jeff](https://cta-community.web.cern.ch/u/jeff)\
**Post date:** [24 May 2024 18:42 UTC](https://cta-community.web.cern.ch/t/cta-ops-admin-config-file-examples/305/1 "2024-05-24T18:42:54Z")

</div>

ctaopsadmin]# cta-ops-admin drive ls  
Could not find config for tool cta-ops-admin in /etc/cta-ops/cta-ops-config.yaml

What goes into the cta ops admin config file? Do you have some examples?

---

<div class="post-metadata">

**Author:** ![rbachman](https://cta-community.web.cern.ch/user_avatar/cta-community.web.cern.ch/rbachman/32/33_2.png) [@rbachman](https://cta-community.web.cern.ch/u/rbachman)\
**Post date:** [26 May 2024 17:50 UTC](https://cta-community.web.cern.ch/t/cta-ops-admin-config-file-examples/305/2 "2024-05-26T17:50:11Z")

</div>

Hi Jeff,  
there is an full example config file at the root of that repo: [cta-ops-config.yaml · master · cta / CTA Operations utilities · GitLab](https://gitlab.cern.ch/cta/cta-operations-utilities/-/blob/master/cta-ops-config.yaml?ref_type=heads)

You should need only the `global` and the `cta-ops-admin` sections to get going with this tool.

Note that one should adapt it to the local environment. Change paths to binaries, configure tape drive to library mappings, etc.

If you’re on AlmaLinux9 already you may also want to have a look at the `alma9` branch. It isn’t merged into master yet, but you can build the pip packages yourself in the mean time.

---

<div class="post-metadata">

**Author:** ![fnal\_jeff](https://cta-community.web.cern.ch/user_avatar/cta-community.web.cern.ch/fnal_jeff/32/114_2.png) [@fnal\_jeff](https://cta-community.web.cern.ch/u/fnal_jeff)\
**Post date:** [26 February 2025 19:22 UTC](https://cta-community.web.cern.ch/t/cta-ops-admin-config-file-examples/305/3 "2025-02-26T19:22:09Z")

</div>

Does this run on a tape drive server or the cta frontend? It looks like it needs both access to the cta-admin and tape server commands cta-smc, etc.

---

<div class="post-metadata">

**Author:** ![rbachman](https://cta-community.web.cern.ch/user_avatar/cta-community.web.cern.ch/rbachman/32/33_2.png) [@rbachman](https://cta-community.web.cern.ch/u/rbachman)\
**Post date:** [27 February 2025 07:35 UTC](https://cta-community.web.cern.ch/t/cta-ops-admin-config-file-examples/305/4 "2025-02-27T07:35:00Z")

</div>

Hi Jeff,  
the `cta-ops-admin` tool is intended to be used on both tape servers and cta-frontends. In both cases one will need to install the dependencies.  
Certain features are only available based on where the tool is run. For instance, `cta-ops-admin drive ls --local` will only work on a tape server.
