Object Storage

 Can we get replication pair details using CM REST API

  • HV Object Storage
  • Hitachi Content Platform HCP
Kayala Raghavendra's profile image
Kayala Raghavendra posted 04-02-2018 17:14

Hi

We are using HCS 8.5.3-02. We use CM REST API to automate some reports like Capacity Report, also we wanted to do same for different replications (local & remote) reports. But when I went through CM REST API reference guide, for Shadow Image we can only pull details if we create the SI by copy-groups.

When we go to HCS -> Resources -> Storage System (right-click) -> Local Replication, here it gives all SI pairs by LDEV irrespective of how we create SI (horcm, GUI etc..). I am looking for these pair details for SI using CM REST API.

Similarly for TC & GAD. Snapshot Group details we can fetch using CM REST API, that helps for Snapshot.

Let me know if anybody knows how to do it for SI, TC & GAD.

Thanks


#HitachiContentPlatformHCP
Craig Chan's profile image
Craig Chan

CM REST API was developed as a lightweight API tool that can work separately from HCS.  HCS implements a HORCM import mechanism that can read your existing HORCM files and manage them for you.  This took a lot of work and there were many issues with various HORCM file formats so this has not been implemented in CM REST API yet.  If you need the HORCM import mechanism, please use the HiCommand CLI to get the information you are looking for.

Jaijeet Kakkar's profile image
Jaijeet Kakkar

Hi Kayla,

As Craig mentioned, there is not a way to do this on CM REST API at this time. However, I too wanted to find a way to automate, report, & get details of my SI, HUR, TC, JRNL  etc and did it another away.

I wrote a quick python script that parsed my HORCM file and had my script execute all the needed "pair display" commands on a host that had privileges. From there I was able to pull out all the volume copy status and create a HTML table website to show the copy status of all the HUR LUNS. And depending on the environment, I wrote some code that would notify the storage admins in the company if a volume was not in pair mode. Hence, if a pair was in copy or PSUS, or any state besides pair, the admins would be alerted. My script would run every 5 minutes and send a daily email at midnight giving a report of all the volume pairs.

If this interests you, I can share my script and assist. (I Need to do some cleaning up before I post the script here).

Regards,

Jai