Quantcast
Viewing all articles
Browse latest Browse all 2539

Re: dbmcli does not support external commands anymore

Hello Günter,

use the pyton script  belo with the sapdb.dbm interface and call it with

 

x_python -d <SID> -u CONTROL,CONTROL

 

Kind regards,

Burkhard

 

#!/usr/bin/env python
import sys
import string
import optlib
import sapdb.dbm
import os

def _options ():
    return [
    ('n', 'host'            , ':', 'localhost'         , 'specifies servernode'),
    ('d', 'dbname'           , ':', 'SDB'              , 'specifies the database name'),
    ('u', 'userpwd'          , ':', 'DBM,DBM'          , 'specifies user and password'),
]


def main (options, args):
    session = sapdb.dbm.DBM (options.host, options.dbname, '', options.userpwd)
    result = session.cmd('backup_start NETAPP DATA')
    os.system('ssh sapfiler snap create dbvol $SNAPSHOT')
    result = session.cmd('backup_finish NETAPP ExternalBackupID $SNAPSHOT')

if __name__ == "__main__":
    optlib.optMain2 (main, _options ())


Viewing all articles
Browse latest Browse all 2539

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>