Editing Profiles and Scripts

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
pspencer008
Posts: 34
Joined: Wed Jul 30, 2014 1:00 am

Editing Profiles and Scripts

Post by pspencer008 »

Morning guys,

Is there a way or are you coming up with a way to export the profiles and scripts to human readable format (text files) so they can be edited in notepad and then reimported?

Thanks

Paul
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Profiles? Yes but not anytime soon.
Scripts? Shell scripts, Active scripts, Log Analyzer scripts, HMScripts - they all in human readable format (text)

Regards
Alex
pspencer008
Posts: 34
Joined: Wed Jul 30, 2014 1:00 am

Post by pspencer008 »

KS-Soft wrote:Profiles? Yes but not anytime soon.
Scripts? Shell scripts, Active scripts, Log Analyzer scripts, HMScripts - they all in human readable format (text)

Regards
Alex
Sorry by scripts I meant shell scripts, where are they in human readable?
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Script Manager shows script when script stored as part of profile.
Also you may store scripts in external files, just modify "Start cmd" string for script profiles - type path to script file instead of %Script% variable

Regards
Alex
pspencer008
Posts: 34
Joined: Wed Jul 30, 2014 1:00 am

Post by pspencer008 »

KS-Soft wrote:Script Manager shows script when script stored as part of profile.
Also you may store scripts in external files, just modify "Start cmd" string for script profiles - type path to script file instead of %Script% variable

Regards
Alex
Thanks for that, We have shell scripts in script manager but when we export them they are in a non readable format, is there any way or tool you offer to read this export file?
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Not sure why do you need this.
Its easy to copy-paste script...

Regards
Alex
pspencer008
Posts: 34
Joined: Wed Jul 30, 2014 1:00 am

Post by pspencer008 »

KS-Soft wrote:Not sure why do you need this.
Its easy to copy-paste script...

Regards
Alex
Yeah I was thinking copy and paste but for 40 odd scripts it's a little time consuming, we are looking for a way to record, track and compare changes and also compare scripts from one host monitor installation to another?
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

we are looking for a way to record, track and compare changes and also compare scripts from one host monitor installation to another?
Then I think its better to store scripts in external files.
but yes, you will need to copy them manually (one time)

Regards
Alex
pspencer008
Posts: 34
Joined: Wed Jul 30, 2014 1:00 am

Post by pspencer008 »

KS-Soft wrote:
we are looking for a way to record, track and compare changes and also compare scripts from one host monitor installation to another?
Then I think its better to store scripts in external files.
but yes, you will need to copy them manually (one time)

Regards
Alex
Alex,

Thanks for that, just to clarify, when the scripts are stored externally they need to be on the remote server don't they, or can they be stored on the Host Monitor monitoring server?

Thanks again

Paul
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Script should be located on system that will run script.
If test performed by HostMonitor, script file should be located on HostMonitor system.
If test performed by RMA, script file should be located on RMA system.

Regards
Alex
pspencer008
Posts: 34
Joined: Wed Jul 30, 2014 1:00 am

Post by pspencer008 »

KS-Soft wrote:Script should be located on system that will run script.
If test performed by HostMonitor, script file should be located on HostMonitor system.
If test performed by RMA, script file should be located on RMA system.

Regards
Alex
Alex,

Thats the problem, we have 40 odd scripts to be performed by 32 odd RMA's.
The Script manager within HostMonitor is awesome at enabling us to edit the one script and have that new script ran on all the RMA's. If we start storing scripts on each RMA, when we come to improve a script we will have to push it out to each RMA that runs it.

This wouldn't be possible due to the risk of human error and effort to deploy one script.

Could you please develop a viewer/editor for script export/import files?

Thanks

Paul
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

How this Viewer can be (should be) different from current Shell Script Manager?

Regards
Alex
pspencer008
Posts: 34
Joined: Wed Jul 30, 2014 1:00 am

Post by pspencer008 »

KS-Soft wrote:How this Viewer can be (should be) different from current Shell Script Manager?

Regards
Alex
I was thinking so people can use the export function within the script manager and then edit the scripts in bulk using a text editor.
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Do you want to load all scripts as single text file? Not sure I understand advantage of such function. I think this will lead to mistakes in code...

Regards
Alex
pspencer008
Posts: 34
Joined: Wed Jul 30, 2014 1:00 am

Post by pspencer008 »

Alex,

We have 2 installations of HostMonitor, one used by the developer's and one used by the support team.

We both make tweaks to the scripts via the script manager, when we come to reconcile the changes it is impossible to use the exported file as notepad++ cant open it to utilize the compare plugin to review the changes.

We do use the version number and the history feature within the script manager but that doesn't highlight and show you the differences between the two scripts.

If you could make HostMonitor export/import the scripts in txt format that would be ideal.

Paul
Post Reply