ECS: How to get ADO status for large number of buckets using CLI

Summary: Due to the high bucket count, it can be hard to get the information what buckets are ADO enabled/disabled. This KB shows how to accomplish this using CLI.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

ADO stands for "Access During Outage".

Due to the high bucket count, it can be difficult to obtain information about which buckets are ADO enabled or disabled.

Follow article 000047497 - ECS: [bkt_info.py (oc_map)] Get Bucket Information (Specific or List of buckets)

  • Connect to ECS using an SSH client such as putty, using the admin user
  • Follow the article above 000047497 to obtain all bucket info.
Note the output file mentioned in the command output

bkt_info.py --new_map --all_buckets

Example:
admin@ecsnode3:~> bkt_info.py --new_map --all_buckets
...
...
 --> DUR:                   0 (Days) 00:00:01.058 (hh:mm:ss.ms)

- Reminder --> Output file: "/opt/emc/xdoctor/tools/ee_scripts/oc_map/suite/oc_cache/03-04-2022/08:37:00_ns_bkt_map.log"

admin@ecsnode3:~>
  • For easier handling set above output file as variable:
LOG="/opt/emc/xdoctor/tools/ee_scripts/oc_map/suite/oc_cache/03-04-2022/08:37:00_ns_bkt_map.log"

Example:
admin@ecsnode3:~> LOG="/opt/emc/xdoctor/tools/ee_scripts/oc_map/suite/oc_cache/03-04-2022/08:37:00_ns_bkt_map.log"
admin@ecsnode3:~>
  • Generate a list of all namespaces and buckets sorted ADO enable = true on top of list:
grep ADO $LOG | head -1 > /tmp/NS+buckets_ADO.log; cat $LOG | egrep 'OB|LS' | grep -v "TOTALS FOR NAMESPACE" | sort -k8 >> /tmp/NS+buckets_ADO.log

Example:
admin@ecsnode3:~> grep ADO $LOG | head -1 > /tmp/NS+buckets_ADO.log; cat $LOG | egrep 'OB|LS' | grep -v "TOTALS FOR NAMESPACE" | sort -k8 >> /tmp/NS+buckets_ADO.log
admin@ecsnode3:~>


  • Generate a list of all buckets with ADO enabled:
cat /tmp/NS+buckets_ADO.log | awk '$7 == "true"' | awk '{ print $1,$2 }' > /tmp/NS+buckets_ADO_enabled.log

Example:
admin@ecsnode3:~> cat /tmp/NS+buckets_ADO.log | awk '$7 == "true"' | awk '{ print $1,$2 }' > /tmp/NS+buckets_ADO_enabled.log
admin@ecsnode3:~>
  • Generate a list of all buckets with ADO disabled:
cat /tmp/NS+buckets_ADO.log | awk '$7 == "false"' | awk '{ print $1,$2 }' > /tmp/NS+buckets_ADO_disabled.log

Example:
admin@ecsnode3:~> cat /tmp/NS+buckets_ADO.log | awk '$7 == "false"' | awk '{ print $1,$2 }' > /tmp/NS+buckets_ADO_disabled.log
admin@ecsnode3:~>

  • Compare total bucket count with bucket lists:
Example:
admin@ecsnode3:~> cat /tmp/NS+buckets_ADO.log | grep -v ADO | wc -l
6286
admin@ecsnode3:~> 
admin@ecsnode3:~> wc -l /tmp/NS+buckets_ADO_*
  198 /tmp/NS+buckets_ADO_disabled.log
 6088 /tmp/NS+buckets_ADO_enabled.log
 6286 total
admin@ecsnode3:~>

The following customer viewable article shows how ADO can be modified using CLI/curl.

It can be used in case the bucket count is too high for managing it over ECS UI:
ECS: The importance of the ADO (Access During Outage) parameter



 

Affected Products

ECS

Products

ECS Appliance, Elastic Cloud Storage
Article Properties
Article Number: 000196980
Article Type: How To
Last Modified: 22 Apr 2025
Version:  7
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.