Hi Jim, list,
many thanks for your reply.
Unfortunately the suggested link is the website itself, not the button's
action.
Trying to get the link executed using curl results in th following output:
*****************
~$ curl http://
<user>:<passowrd>@oneclick/spectrum/admin/ecds.jsp?reload=Reload
<!--
# %SCIPTHEADER%
-->
<html:html locale="true">
<head>
<script language='JavaScript' type='text/javascript'>
var dir = location.href.substring(0,
location.href.lastIndexOf('\/spectrum') + 9 );
document.writeln("<base href='"+dir+"/'/>");
</script>
<link rel='stylesheet' type='text/css' href='spectrum_sol.css' />
</head>
<body bgcolor="white">
<meta http-equiv="Pragma" content="no-cache">
<script language="JavaScript" type="text/javascript">
function doReload ( the_form )
{
if( confirm( 'Are you sure you want to reload?'))
{
the_form.submit () ;
}
}
</script>
<table><tr><td>
Click the following button to dynamically reload EvFormat/PCause files.
</td></tr></table>
<form name="reloadForm" method="get">
<input type="submit" value="Reload" name="reload"
onClick="doReload( this.form )"
onMouseOver="window.parent.status='Reloads EvFormat/PCause
files';return true"
onMouseOut="window.parent.status='';return true" />
</form>
</body>
</html:html>
~$
*****************
...that's what the src of the website frame is.
Using wget results in the same but saved to a local file.
So, more precise question now:
Is it possible to call the javascript code directly (and without
confirmation) without using browser and mouse?
Many thanks in advance!
Regards,
Marcel
On Mon, Oct 12, 2009 at 4:47 PM, Pfleger, Jim <[email protected]>wrote:
> Hello Marcel and list-
>
> The reload button is just a simple HTTP GET of
> http://oneclick:8080/spectrum/admin/ecds.jsp?reload=Reload. You should be
> able to create a user that has permissions to run the reload, and then use
> wget (http://www.gnu.org/software/wget/) in your script to call that URL
> as that user.
>
> I’m interested to know how your version control project turns out, because
> I’d like to do something similar myself.
>
> Jim
>
>
> --
> *JIM PFLEGER* | Application Architect | Insight Networking |
> insight.com
>
> o*.* 480.889.9680* f.* 480.889.9599 [email protected]
>
> The information contained in this message and any attachment may contain
> privileged or confidential information protected from disclosure. If you are
> not the intended recipient, or an employee or agent responsible for
> delivering this message to the intended recipient, you are hereby notified
> that any review, dissemination, distribution or copying of this information
> is strictly prohibited. If you have received this transmission in error,
> please notify the sender immediately by replying to this message and
> destroying the original and all copies. Thank you.
>
>
>
> On 10/9/09 9:45 AM, "Marcel Schulte" <[email protected]>
> wrote:
>
> Hi list,
>
> got an answer to my mail to use the Reload button on the admin website of
> the OC server.
>
> Unfortunately this was a miANsunderstanding as I'd like to do just what the
> reload button at admin website does - but automatically in a script
> (shell/perl/whatever).
>
> So, if anybody knows of a solution I'd apreciate any hint.
>
> And, Cliff, again thanks for your reply.
>
> Have a nice weekend,
> Marcel
>
>
> On Fri, Oct 9, 2009 at 7:20 AM, Marcel Schulte <
> [email protected]> wrote:
>
> Hi list,
>
> I figured out using ECEditor (9.1.1) only updates EvFormat/PCause files on
> the OC server I'm currently logged in.
>
> Problems are these:
>
> - SANM/Notifier runs on SS-only server(s) and so new/modified
> EvFormat/PCause files are not recognized: sent email do not contain the
> suggested text(s).
> - We're running two OC servers behind a loadbalancer (supported by CA as
> documented): the second OC server lacks of these modifications, too.
>
> Okay, I'm planning to integrate "<specroot>/custom/Events" in our version
> control system and will get identical folders after that...
>
> I'll modify our vcs-sync-script to apply action 0x000100a2 on vnm model in
> order to reload event configuration if files changed in
> "<specroot>/custom/Events".
>
> But how do I force an update of the OC servers to reload event
> configuration? Of course I could restart tomcat but that's not what I want.
> Does anybody know a way to do same as corresponding admin website does
> (preferably without the confirmation "yes, I really want to reload") from
> CLI/script?
>
> Any help is appreciated. I'll post the solution if I get any.
>
> Regards,
> Marcel
>
>
>
> - --To unsubscribe from spectrum, send email to [email protected] with
> the body: unsubscribe spectrum [email protected]
>
>
>
---
To unsubscribe from spectrum, send email to [email protected] with the body:
unsubscribe spectrum [email protected]