Read KNLDIAGERR with dbmcli

Hello,
I want to read the KNLDIAGERR with command line tool dbmcli from remote with option "DATE".
Command:
"file_getfirst KNLDIAGERR DATE=20080101000000"
The Result of this command is:
"ERR
-24996,ERR_PARAM: wrong parameters"
In the documentation this a supported option:
file_getfirst <file_ID> [<file_spec>]
<file_spec> :: = DATE=<timestamp> | LINE=<nnn>
SAPDB-Version 7.6.0
Bug or feature ?
Somebody experiences or ideas ?
Greetings, Andreas

Hi Andreas,
so basically you're re-building the CCMS monitoring with the BMC agents...
You're right, if there is no SAP system running - you've no CCMS. I was just pointing out the opportunities, since most MaxDB customers do have a SAP instance running and don't know about the option to use the CCMS even for NON-SAP- MaxDB-instances.
Anyhow: for your monitoring tool
dbm_filegetfirst line=<n>
will deliver the newest <n> lines.
That way you can at least implement a sorting/matching in your BMC agent based on the timestamp.
Good luck with the implentation!
KR Lars

Similar Messages

  • Recover a specific backup from backup history with dbmcli

    hello friends,
    how can i recover a specific backup from backup history with dbmcli with inizialization. in dbmcli i can only find methods for medium recovery. with dbmgui i try "instance" in menu, then "Recovery with Initialization", then i try i choose  admin_state, then i choose the radiobutton recover from backup history. I get my choice with specific date.
    How can I build a script in dbmcli for this scenario. when i am try the command backup_history_open and backup_history_list i cant see the specific backup, what i see in dbmgui.
    the backup history item, that i need has a specific system key "492FB68F0002". with which dbmcli  command i get this system key for recover.
    which command i take for this scenarion db_activate RECOVER?
    many thanks for suggestions,
    christoph

    > how can i record the staments for my script?
    Do you know the "show console" feature in DBMGUI/DB Studio?
    With that you can display all commands used by DBMGUI and the Recovery Wizard.
    > I am looking for an automatism to recover an instance from a specific item from backup history, because we test ower deliverys with import in stms - see return codes.
    Ok, but why do you need a recovery for that?
    Use SNAPSHOTS instead (read the docu [here|http://maxdb.sap.com/doc/7_7/44/c4afa67ca22e17e10000000a114a6b/content.htm]!).
    Create your base instance.
    Create a SNAPSHOT.
    Now run your tests.
    When you finished your tests, simply restore the SNAPSHOT.
    This takes seconds.
    Bring the database online again and run some new tests.
    When you want your initial instance again - just restore the SNAPSHOT once again.
    Really, SNAPSHOTs are made for such a scenario.
    > content for script:
    >
    > 1. stopsap r3 in sidadm context
    > 2. db_admin of instance in dbmcli context
    > 3. recover a specific item from backup history from nfs mount in dbmcli context
    > 4. restartable check in dbcmcli context
    > 5. restart instance in dbmcli context
    > 6. logmode to overwrite in dbmcli context
    > 7. db_offline in dbmcli context
    > 8. startsap all in sidadm context
    Ok. if you still would like to do it  this way... how about this:
    dbmcli -U c -i refresh_db.txt
    refresh_db.txt:
    ==============
    db_admin
    db_activate RECOVER <medium_name> DATA AUTOIGNORE
    db_online
    db_execute SET LOG AUTO OVERWRITE ON
    db_offline
    I leave the stopsap/startsap and the rest of the script to you, but I guess you got the idea.
    BTW: there's no need to check for restart ability of the database after the recovery since by definition all full data restores are restartable with MaxDB!
    So have fun (and go for the SNAPSHOTS instead!).
    regards,
    Lars

  • Automatic creation of meter reading order with RR 01 after move in

    Hi Experts,
    I am working with DM module of SAP ISU. Currently I am facing a problem that after move-in a periodic order with RR 01 is created automatically by the system.
    Ex: Move in date is 01.01.2010. Monthly Portion is used with Schedule record 01.01.2010, 01.02.2010, 01.03.2010, 01.04.2010 and so on.
    If current system date is 20.07.2010 then Meter reading order is created automatically by the system for sch MRD 01.08.2010.
    Please let me know how to overcome this problem
    Thanks in advance.

    Thanks for your reply but I have cheked SPRO setting the suggested check box is already uncheked.
    I beleive the setting you have suggested is meant for default meter reading during move in but my problem is automatic creation of meter reading order with reason 01 during move in

  • How to open Adobe Reader DC with Tools Closed

    I do NOT like Adobe Reader opening with the right column expanded.
    Also in all previous versions I could save my login for protected pdf files and when I open them back up they require a login again.  This is NOT how I want to work with Adobe Reader.
    Adobe Reader XI was so much better.

    Before the DC version we were able to save our passwords from University of Phoenix and when opening the document saved to our computer it would unlock automatically.  This new version DC will not allow this even when you say Yes.
    The Right Column in previous versions would allow to disable until requested to appear this version it opens regardless.
    Just my opinion here  Adobe Failed at customer satisfaction on this UPGRADE.
    Regards a unhappy Adobe user.

  • I have Adobe Reader XI with the package that allows me to send pdfs and convert pdfs to Word. When I open a pdf and try to search the search shows no matches even though the word I am searching for is in the document. Any suggestions how to search?

    I have Adobe Reader XI with the package that allows me to send pdfs and convert pdfs to Word. When I open a pdf and try to search the search shows no matches even though the word I am searching for is in the document. Any suggestions how to search?

    Once again, my thanks for your assistance. If I may impose on your generosity one more time, if I understand you correctly if I create a document on Word or WordPerfect, print it and scan it to create a pdf, the search function will not work. But, if I create the pdf document in Word the search function will work. Unfortunately, I am not sure how I create a pdf document in Word other than by printing it and scanning it. Could you please explain.
    William B. Kohn, Esq.
    General Counsel
    Paul V. Profeta & Associates, Inc.
    769 Northfield Avenue
    Suite 250
    West Orange, New Jersey 07052
    (973) 325 - 1300
    (973) 325 - 0376 (Facsimile)
    [email protected]<mailto:[email protected]>

  • Can I hide the Adobe Reader panel with "Export, Create and Edit PDF and Send and Store Files"? I don't use it and it takes up space

    Can I hide the Adobe Reader panel with "Export, Create and Edit PDF and Send and Store Files"? I don't use it and it takes up space

    If you just mean, can I close it, sure. In Reader XI click the Tools button to close or reopen it.

  • How to Write BUFFER & Read TEXT with Encrypt file ?

    I'm using Windows Phone 8.1 RT.
    I have a issue :
    - I write a BUFFER encrypted to file. After, I read file with TEXT. It's throw exception : No mapping for the Unicode character exists in the target multi-byte code page. (//ERROR 2)
    - I write a TEXT encrypted to file. After, I read file with BUFFER. It's throw exception : The supplied user buffer is not valid for the requested operation. (//ERROR 1)
    Code Write Buffer & Read Text.
    //Write Textstring msg = EncryptText.Text;
    //ERROR 1 - Use 1 or 2
    await WriteTextAsync(this.file, msg);
    //ERROR 1
    //Read Buffer
    string msg;
    //ERROR 1 - Use 1 or 2
    IBuffer buffer = await ReadBufferAsync(this.file);
    StreamReader stream = new StreamReader(buffer.AsStream());
    msg = stream.ReadToEnd();
    //ERROR 1
    Code Encrypt-Decypt.
    public static string EncryptString(string msg)
                var bufferMsg = CryptographicBuffer.ConvertStringToBinary(msg, BinaryStringEncoding.Utf8);
                var bufferMsgEncrypted = Encrypt(bufferMsg);
                var msgEncrypted = CryptographicBuffer.EncodeToBase64String(bufferMsgEncrypted);
                return msgEncrypted;
            }public static IAsyncAction WriteTextAsync(IStorageFile file, string msg)
                return FileIO.WriteTextAsync(file, EncryptString(msg));
    public static IBuffer Decrypt(IBuffer bufferMsg)
                var key = CreateKey(KEY);
                var aes = SymmetricKeyAlgorithmProvider.OpenAlgorithm(SymmetricAlgorithmNames.AesCbcPkcs7);
                var symetricKey = aes.CreateSymmetricKey(key);
                var bufferMsgDecrypted = CryptographicEngine.Decrypt(symetricKey, bufferMsg, null);
                return bufferMsgDecrypted;
            }public static IAsyncOperation<IBuffer> ReadBufferAsync(IStorageFile file)
                var buffer = FileIO.ReadBufferAsync(file);
                Task<IBuffer> result = Task.Run<IBuffer>(async () =>
                    var Buffer = await buffer;
                    return Decrypt(Buffer);
                return result.AsAsyncOperation();
    Link demo code :
    https://drive.google.com/file/d/0B_cS3IYO936_akE0cmI4bExJMjh0RU9qR3RvWDBWWElZWC1z/view?usp=sharing

    Please provide a working app so this can be tested. You can upload to OneDrive and share a link here.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Acrobat Reader 9 with an Acrobat 5-8 Created Form?

    Hello,
    I am new to my job working with a ASP application that provides a PDF form (created in Acrobat 5) to users with free form fields the user can fill out. Users have been complaining that when the users upgrade to Acrobat Reader 9 the begin to see a message that "Some features are no longer supported..." and the ability to save a local copy of the file is no longer available. I have 2 questions.
    Was the ability to save a local copy of a form with user-entered data ever a feature of Acrobat Reader?
    Is that an issue that can be corrected by creating the form with the Acrobat 9 Life-Cycle engine or is that a feature that has forever been removed from Acrobat Reader for security or other reasons?
    Thanks in advance!
    - Yohancef

    No I was referring to filled in forms.
    So to be clear, the ability to save user filled in information in a form to your local machine as a PDF through Acrobat Reader IS possible, but has to be enabled by opening the form in Acrobat (9 for example) and enabling some feature to allows Reader users to save the information to the PDF file. This feature is limited though and has a 500 use limit per form.
    Does that sound correct? Do you know the name of the feature?
    Thanks!
    Yohancef Chin
    Date: Mon, 2 Nov 2009 16:49:54 -0700
    From: [email protected]
    To: [email protected]
    Subject: Acrobat Reader 9 with an Acrobat 5-8 Created Form?
    There may be some features that are not supported any more but you may not be using them. That message is just a general warning.
    As far as saving the filled in form, Reader on it's own has never been able to do it. You would need the newer version of Acrobat to open and enable these forms so that Reader users can save them. Be warned that this feature is meant for small-time use and has a usage limit of 500 submissions per form. You'll want to read and undestand the EULA before planning on using it.
    Or do you mean that they cannot save the unfilled form either?
    >

  • Opening pdf within app using Reader X with Acrobat 5.0 installed

    I have Acrobat 5.0 (full version) installed and also Reader X.  Acrobat 5 was installed 1st and has been my default.  But, I loaded Reader X because Acrobat 5 can't open many newer PDF's.  I have gone into Explorer and set Reader X as the "open with" application and double-clicking a PDF in Explorer results in Reader X opening the file.  The problem is within various applications which have menu links to PDF's.  Many of these still attempt to open the PDF with Acrobat 5.  I believe this may be more a Windows XP problem, but thought maybe someone might know what registry item I should look for to correct this problem since it is related to Acrobat.

    Adobe doesn't recommend the use of Reader X with anything but Acrobat X. Earlier versions of Acrobat and Reader (any version) will cause problems. Remove Acrobat, re-install Reader X and if needed upgrade to Acrobat X or Remove Reader X and re-install ACrobat 5.

  • Play sound in specified duration and desired file when reading data with VISA functions ?

    Hi.
    I read data with VISA read function and then I use functions like multiple for showing data on Chart. every thing is OK.
    now I want play a specified sound (like a 3s song in my desired folder) when signal amplitude cross over from specified value. then after desired time, it will be wait for new cross over from specified value and this procedure repeat again until I stop the program. 
    Data comes from MCU and it doesn't stop when system play sound and when system play sound, incoming data for this part (play sound) will be ignore them until specified expired.
    I use this VI for reading data and mentioned part which is sound part is empty and I don't know what I must done ?
    altougth I use another while loop for sound apart because I want save CPU time.
    Thanks.
    Solved!
    Go to Solution.

    I would recommend making the data type of the notifier a cluster that contains a path and a numeric (double).  The path tells the player which file to play.  The numeric is the duration.
    Now for a slightly complicated, but really neat, way to stop your second loop.  Do not use a second notifier.  Instead, send the normal notification but use Not A Path for the path in the cluster.  Your second loop can do a check for the Not A Path and stop when that is recieved.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Writing/reading HTTP with plain sockets

    Hello,
    I�m trying to send an HTTP request and read response with a plain socket, not URLConnection.
    My code below is not working - bufferedReader.readLine() returns null.
    If I change to URLConnection everything works as expected.
    What is wrong in my code?
    Thanks in advance.
    public static void main(String[] args) throws IOException {
            /* -- THIS CODE WORKS --
            URL url = new URL("http://localhost:8080");
            URLConnection urlConnection = url.openConnection();
            OutputStream outputStream = urlConnection.getOutputStream();
            InputStream inputStream = urlConnection.getInputStream();
            // Tomcat is running on localhost port 8080
            Socket socket = SocketFactory.getDefault().createSocket("localhost", 8080);
            OutputStream outputStream = socket.getOutputStream();
            InputStream inputStream = socket.getInputStream();
            // send request
            OutputStreamWriter writer = new OutputStreamWriter(outputStream);
            writer.write("GET /");
            writer.flush();
            // read response
            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
            StringBuilder strBuilder = new StringBuilder();
            String str;
            while ((str = bufferedReader.readLine()) != null) {
                strBuilder.append(str);
            // print response
            System.out.println(strBuilder);
            socket.close();
        }

    Your HTTP request-line(s) syntax is quite wrong.
    Learn them at w3.org site.

  • Reader compatability with x64 bit browsers?

    I'm hoping to find out how I can use Adobe reader plugin with x64 bit IE7 & IE8 so I can read and search PDF files from within the browser. I use Vista X64 which actually installed both 32 & 64 bit versions of IE7 and when I use the 32 bit version of IE7 pdf's open in the browser just fine but when I try to open a pdf using the 64 bit version of the browser it insists on opening an external program instead of just opening the file in a tab of the browser. Is this even possible with a 64 bit browser? Is the solution something simple like I simply need to reinstall Adobe Reader 9.1 via the 64 bit browser to enable the feature or is it a hopeless idea?
    I'm mainly wondering because I'm considering installing IE8 and don't want to have any problems

    If you really have to have an older version, try these places
    Old or Used Software http://www.emsps.com/oldtools/ Or http://www.retrosoftware.com/
    http://forums.adobe.com/message/1636890 warns about buying from eBay

  • How can I read pdf with ebook reader on JounE touch

    How can I read pdf with ebook reader and where could I put the pdf in Journe

    Hi there
    You said that you want to read pdf with ebook reader .
    For me ,i usually read the pdf files using another pdf reader which supports to read the pdf files directly.
    And i am now just using their free trial.
    You can also have a try.
    +Message was edited: Advert has been removed+

  • READ statement with binary search

    Hi friends,
    I know that while using the READ statement that we have to sort data and use BINARY SEARCH  for faster search.
    I have a situation
    following are internal table contents
    belnr          agent    action
    9000001   name1    BRW
    9000001   name1    API
    when i use READ statement with where condition (  ( belnr - 9000001 ) and  ( action = 'BRW' ) )  with binary search then the SY_SUBRC value is 4.
    if i remove the binary search then its giving SY-SUBRC value 0.
    Can anybody explain why BINARY SEARCH fails.
    Points will be rewarded for correct answers.
    Thanks and regards,
    Murthy

    try this i am not getting sy-subrc 4
    TYPES:BEGIN OF TY_ITAB,
    BELNR TYPE BELNR,
    AGENT(30),
    ACTION(5),
    END OF TY_ITAB.
    DATA:IT_TAB TYPE TABLE OF TY_ITAB,
         WA_TAB TYPE TY_ITAB.
    WA_TAB-BELNR = 9000001.
    WA_TAB-AGENT = 'name1'.
    WA_TAB-ACTION = 'BRW'.
    APPEND WA_TAB TO IT_TAB.
    CLEAR WA_TAB.
    WA_TAB-BELNR = 9000002.
    WA_TAB-AGENT = 'name 2'.
    WA_TAB-ACTION = 'API'.
    APPEND WA_TAB TO IT_TAB.
    loop at it_tab into wa_tab.
    read table it_tab into wa_tab with key belnr = wa_tab-belnr  binary search .
    write: sy-subrc, wa_tab-agent.
    endloop.

  • Connect. test with "dbmcli db_state"  --    Unsuccessful

    hello All,
    After a system copy, when I try to schedule de backups in DB13 i got the following error:
    DBM_GETF database instance not found
    If I test the connection with DB in the DB59 transaction the following is displayed:
    Connect. test with "dbmcli db_state"                         Unsuccessful
    How can I fix this issue?
    Thanks,
    Hernando
    Edited by: Hernando Polanía C on Oct 18, 2011 6:33 PM

    Hello Natalia,
    I run the connection test in Tx db59 and the result was:
    General Connection Data
       Connection Name....: PTC
       Database Name......: cobogsap01
       Database Server....: cobogsap01
       tp Profiles........: no_longer_used
       DBM User...........: CONTROL
       Test Scope
       1. Execute an external operating system command (DBMCLI)
       2. Determine status using TCP/IP connection SAPDB_DBM (DBMRFC command mode)
       3. Determine status using TCP/IP connection SAPDB_DBM_DAEMON (DBMRFC session mode)
       4. Test the SQL connection (Native SQL at CON_NAME)
    Application Server:  COBOGSAP01_PTC_00                        ( Windows NT )
       1. Connect. test with "dbmcli db_state"                         Unsuccessful
          dbmcli_command_execute_error
          Error! Connection failed to node cobogsap01 for database cobogsap01:
          database instance not found
          External program terminated with exit code 2
       2. Connect. test with command mode "dbmrfc db_state"            Unsuccessful
          dbm_system_error
          Name and Server     : cobogsap01 - cobogsap01
          DBMRFC Function     : DBM_EXECUTE
          Command             : db_state
          Error               : DBM Error
          Return Code         :         -4
          Error Message       : database instance not found
       3. Connect. test with session mode "dbmrfc db_state"            Unsuccessful
          dbm_system_error
          Name and Server     : cobogsap01 - cobogsap01
          DBMRFC Function     : DBM_CONNECT
          Error               : DBM Error
       Return Code         :         -4
       Error Message       : database instance not found
    4. Connect. test with "native SQL"  ( PTC )                     Unsuccessful
       For detailed information, see the developer trace for work process:           2
    the MaxDB version is 7.6.06.019
    Thanks for your help.
    Reagards,
    Hernando

Maybe you are looking for