DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Can't get scripts to work

    Posted 06/17/26 11:32 AM

    A number of days ago I posted that I was having trouble getting secure backup script to work and now I am trying to get a different script working to automate certificate management and I keep hitting walls. 

    I have tried going through XML management and REST management and I keep getting a 500 error back.

    I think it's a permission issue, but the userid that I am using is privilege, which should have access to everything.  Maybe it doesn't?  Maybe it needs permissions that privilege doesn't?

    I'm really at a loss here.  I think both scripts are failing for the same reason.



    ------------------------------
    John Parker
    ------------------------------


  • 2.  RE: Can't get scripts to work

    Posted 06/17/26 01:50 PM

    Hi John.  In your default domain and troubleshooting settings, then under your Logging settings, have you turned on "Enable Internal Logging" and attempted to capture the logs after the 500 error?



    ------------------------------
    Joseph Morgan
    CEO - Independent
    ------------------------------



  • 3.  RE: Can't get scripts to work

    Posted 06/17/26 02:12 PM

    No, I haven't tried that.

    I turned it on, but when I leave that screen and come back, it's turned off.  I tried staying on that page and ran my script and then looked in view logs and I don't see the error there?

    How do I keep that option enabled, and where do look for the logs?



    ------------------------------
    John Parker
    ------------------------------



  • 4.  RE: Can't get scripts to work

    Posted 06/17/26 03:21 PM
    Edited by Joseph Morgan 06/17/26 03:22 PM

    This is interesting.  So, on a V11 machine, I get that same thing.  I turn it on, submit, and everything looks good, but then coming back, it's off.  On 10.6.4.0 and 10.6.5.0 machines, it works as one expects.

    I forgot what firmware you are on.   But something is up, and I believe it may have to do with the UI itself.  

    On all machines, if I set the internal logging and then do an Object Status, I can see both the "default-log" and "default-log-console" are modified.   But when looking at the UI on the troubleshooting screen itself, only the 10.6.4.0 and 10.6.5.0 machines keep their toggle "on".  The V11 always off. 

    So, what FW are you on again?

    Check the object status after setting it.  The question becomes one of, though, how can you "unset" it on a broken UI?

    At the end of the day, though, internal logging should now be on, and you can go about testing to see if you can find the cause of the 500.



    ------------------------------
    Joseph Morgan
    CEO - Independent
    ------------------------------



  • 5.  RE: Can't get scripts to work

    Posted 06/17/26 03:34 PM

    we are on 10.6.0.9

    How do you like v11? Any issues?  We bought some X4's so we have to upgrade to that soon.  I'm waiting for v11 for virtual Datapowers to be released.



    ------------------------------
    John Parker
    ------------------------------



  • 6.  RE: Can't get scripts to work

    Posted 06/17/26 06:15 PM

    I've got a 10.6.0.9 box (VMWare, Dev machine) that works just fine, but only in the new UI.  I suspect you're using the old UI?  The toggle stays 'on' in the new UI, but NOT in the old UI.

    We're not running V11 in a production sense.   I stood up a V11 Docker just so we can see the differences.   Fair warning:  No more old UI!   You get a 403 when you try.

    We are awaiting V11 for VMWare because that's our DEV/QA.   We're using the Tenant for UAT on X3 physicals with production on the landlords.    To go to production, we'll need to verify everything is functionally stable.



    ------------------------------
    Joseph Morgan
    CEO - Independent
    ------------------------------



  • 7.  RE: Can't get scripts to work

    Posted 06/18/26 11:20 AM

    Yes, I use the old UI.  When I switched to the new UI I was able to set it and it stayed.  Still say's off in the old UI.

    Where do you view this log?

    We are also waiting for V11 for virtual Datapower so we can test.  It's supposed to be released at the end of June.

    I'm going on vacation after today, so I might not respond until after next week when I will be back.  I still want to get this working.  Whatever the issue is, I think it could be preventing my secure backup script and my certificate management scripts from working.  It's probably something stupid that I am not doing.



    ------------------------------
    John Parker
    ------------------------------



  • 8.  RE: Can't get scripts to work

    Posted 06/18/26 06:13 PM

    You view it in the default domain's default log.   It is fleeting in a busy DataPower, so you'll need to search for the service management URI for XMI.  I don't exactly know the RMI URI, but, whatever you're using to send the command, that's the URI you'll search for.



    ------------------------------
    Joseph Morgan
    CEO - Independent
    ------------------------------



  • 9.  RE: Can't get scripts to work

    Posted 06/18/26 12:15 PM

    Unsure whether the Enable Internal Logging is working as expected. I thought what it was supposed to do was set the webgui category to debug for the default-log log target. When I did what I used to do, set Log Level to debug and enable internal logging, I'm getting both all and webgui set to debug (aka intensive logging). Therefore, I suggest to edit the default-log log target to add the webgui category set to debug. I discovered this through trial and error and watching how the configuration changed.

    As an aside, I don't think the the toggles for Set Logging Level (default domain only) are sticky on return as they're states (at least in the new UI).



    ------------------------------
    F Hackerman
    ------------------------------