Hello all-

I changed a PCause file and watched the alarm list update when I ran  
the wget command. I also confirmed that the update was not read if I  
didn't use the reload parameter on the URL. I didn't test any other  
changes.

HTH,
Jim


On Oct 15, 2009, at 7:30 PM, "Marcel Schulte" <[email protected] 
 > wrote:

> Hello Jim, list,
>
> many thanks for your confirmation.
>
> How did you check the files are really reloaded? Changed an event  
> text and checked the new text is used after url call? Or can I  
> activate a debug option at OC server? Which one?
>
> Best regards,
> Marcel
>
> On Thu, Oct 15, 2009 at 9:50 PM, Pfleger, Jim  
> <[email protected]> wrote:
> Hello all-
>
> I just confirmed that if I use wget or curl to get the URL below, it  
> will cause OneClick to reload all of its files, just as if the  
> button had been pushed in the web UI. The key here is the parameter  
> ���reload=Reloa����, which indicates that the button was pushed. The  
> ecds.jsp page will always return the HTML for the reload page, but a 
> dding that parameter causes it to also perform the reload. This is s 
> o that, when you push the button on the page, you get the same page  
> back again. You can keep pushing the button over and over again, wit 
> hout having to come back from some other page. If you call that URL  
> from the command line without the parameter, nothing happens.
>
> BTW���� All that JavaScript code does is display the confirmation box. 
>  When you click OK on the confirmation, it then tells the browser to 
>  call the URL below.
>
> I hope this helps your automation project.
>
> 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/14/09 1:40 AM, "Marcel Schulte"  
> <[email protected]> wrote:
>
> 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.
>
> ����m interested to know how your version control project turns out, b 
> ecause�����d like to do something similar myself.
>
> Jim
>
>

---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to