ONTAP Discussions
ONTAP Discussions
Ops Manager 4.0.1 with Protection Manager.
I would like to run a report on command line to output a list of OSSV primary hosts and paths. I thought this would be easy since you can get the same report from the web interface and you can even schedule it to run and email you the results.
However, I cannot find a command that will run the report and display the results. I'm either looking in the wrong place or doing something else wrong.
I can list the available reports, thus (my emphasis):
# dfm report list -A backupReport Report Type Report Application---------------------------------------- ------------ --------------------summary:summary built_in Backupsummary:summary-completed built_in Backupsummary:summary-inprogress built_in Backupsummary:summary-failed built_in Backupsummary:summary-no-status built_in Backupbackup:backups-by-primary built_in Backupbackup:backups-by-secondary built_in Backuprestore:primary-dirs built_in Backupprimary-directories:primary-dirs built_in Backuppridir-nb:primary-dirs-discovered built_in Backuppridir-qtrees-nb:primary-dirs-qtrees-discovered built_in Backupsecondary-volumes:secondary-volumes built_in Backupndmp-ping:unavailable-agents built_in Backupndmp-unauth:unauthenticated-systems built_in Backupprimary-hosts:primary-hosts built_in Backupprimary-hosts:primary-hosts-storage-systems built_in Backupprimary-hosts:primary-hosts-open-system built_in Backupsecondary-hosts:secondary-hosts built_in Backupschedules built_in Backupjobs:jobs-1d built_in Backupjobs:jobs-7d built_in Backupjobs:jobs-30d built_in Backupjobs:jobs built_in Backupjobs:jobs-completed built_in Backupjobs:jobs-running built_in Backupjobs:jobs-failed built_in Backupjobs:jobs-aborting built_in Backupjobs:jobs-aborted built_in Backupevents:events built_in Backupevents:events-warning built_in Backupevents:events-error built_in Backupevents:events-unack built_in Backup
but:
# dfm report view primary-hosts:primary-hosts-open-system
There is no primary-hosts:primary-hosts-open-system report.
# dfm report view -A backup primary-hosts:primary-hosts-open-systemThere is no primary-hosts:primary-hosts-open-system report.
I could use a combination of "dfm report schedule run" and "dfm report output list" and "dfm report output view" but that seems like a lot of work for something that should be easy.
Anyone?
Thanks,
Richard
Solved! See The Solution
Use the dfbm cli, as below.And run the report as shown.
[root@lnx~]# dfbm report
Available reports are
  backups-by-primary        backup relationships keyed by primary directory
  backups-by-secondary      backup relationships keyed by secondary volume
  events                    all current backup events
  events-error              current backup error or worse events
  events-unack              unacknowledged events
  events-warning            current backup warning or worse events
  jobs                      all backup jobs
  jobs-1d                   backup jobs started today
  jobs-30d                  backup jobs started this month
  jobs-7d                   backup jobs started this week
  jobs-aborted              aborted backup jobs
  jobs-aborting             backup jobs being aborted
  jobs-completed            completed backup jobs
  jobs-failed               failed backup jobs
  jobs-running              Displays a list of all in progress backup jobs.
  primary-dirs              all backup primary directories
  primary-dirs-discovered   all backup primary directories discovered
  primary-dirs-qtrees-discovered Displays a list of all unprotected qtrees.
  primary-hosts             all primary storage systems
  primary-hosts-filers      Primary storage systems running Data ONTAP
  primary-hosts-open-system OSSV primary storage systems
  schedules                 all backup schedules
  secondary-hosts           all secondary storage systems
  secondary-volumes         all backup secondary volumes
  summary-completed         all completed backups
  summary-failed            all failed backup jobs
  summary-inprogress        all in progress backup jobs
  summary-no-status         backups with no status
  unauthenticated-systems   storage systems with no NDMP credentials
  unavailable-agents        storage systems with NDMP unavailable
[root@lnx ~]# dfbm report primary-hosts-open-system
There are no backup primary storage systems.
[root@lnx ~]#
Regards
adai
Use the dfbm cli, as below.And run the report as shown.
[root@lnx~]# dfbm report
Available reports are
  backups-by-primary        backup relationships keyed by primary directory
  backups-by-secondary      backup relationships keyed by secondary volume
  events                    all current backup events
  events-error              current backup error or worse events
  events-unack              unacknowledged events
  events-warning            current backup warning or worse events
  jobs                      all backup jobs
  jobs-1d                   backup jobs started today
  jobs-30d                  backup jobs started this month
  jobs-7d                   backup jobs started this week
  jobs-aborted              aborted backup jobs
  jobs-aborting             backup jobs being aborted
  jobs-completed            completed backup jobs
  jobs-failed               failed backup jobs
  jobs-running              Displays a list of all in progress backup jobs.
  primary-dirs              all backup primary directories
  primary-dirs-discovered   all backup primary directories discovered
  primary-dirs-qtrees-discovered Displays a list of all unprotected qtrees.
  primary-hosts             all primary storage systems
  primary-hosts-filers      Primary storage systems running Data ONTAP
  primary-hosts-open-system OSSV primary storage systems
  schedules                 all backup schedules
  secondary-hosts           all secondary storage systems
  secondary-volumes         all backup secondary volumes
  summary-completed         all completed backups
  summary-failed            all failed backup jobs
  summary-inprogress        all in progress backup jobs
  summary-no-status         backups with no status
  unauthenticated-systems   storage systems with no NDMP credentials
  unavailable-agents        storage systems with NDMP unavailable
[root@lnx ~]# dfbm report primary-hosts-open-system
There are no backup primary storage systems.
[root@lnx ~]#
Regards
adai
Thanks! I knew about the "dfm" and "dfpm" but not the "dfbm" commands. I'm not too pleased that the report is in list form rather than tabulated but I can work with that.
Cheers,
Richard
Most of the cli in Ops-Mgr, like
dfm--data fabric manager
dfpm--datafabric prot/prov manager
dfbm-- datafabric backup manager
dfdrm--datafabric disaster recovery manager
Use the below cli to get it in table form.
dfbm report -F text primary-hosts-open-system
some most of these output formats.
OUTPUT FORMATS
       The list and report commands generate output in one of several formats based on the -F option:
       text
           For display on a terminal screen in a tabulated format.  For example,
             Primary Directory        Secondary Volume     Lag      Status
             ------------------------ -------------------- -------- ------
             filer1:/vol1/qt3         bigdog:/vol1         1.2 h    Idle
             vfiler1:/vol1/qt4        bigdog:/vol1         10 h     Idle
If -q is specified, the column headings are omitted.
       paragraph
           For display on a terminal screen in a paragraph style.  For example,
             Secondary Volume:   bigdog:/vol1
             Schedule:           4 times a day
             Retention:          Legal data
             Primary Directory:  filer1:/vol1/qt3
             Primary Directory:  filer2:/vol1/qt4
             Primary Directory:  filer4:/vol1/qt2
             Primary Directory:  vfiler1:/vol1/qt6
             Secondary Volume:   bigdog:/backups
             Schedule:           6 times a day
             Retention:          Sensitive data
             Primary Directory:  filer2:/vol2/qt3
       html
           For display in a web page.
       perl
           For processing with a perl script.
xml For processing with XML-capatable software.
xls For viewing in a spreadsheet, such as Microsoft Excel.
Regards
adai
Hi,
I am not getting tabler form. How to make the report in tabler form.
Thanks,
