KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Search and Replace
Goto page 1, 2  Next
 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
V Arun



Joined: 11 Apr 2004
Posts: 52

PostPosted: Fri Nov 30, 2007 9:37 am    Post subject: Search and Replace Reply with quote

Alex,

I would like to search for a particular sting in all comment lines of all tests and replace it with another string where found. How do I do it?

For ex. 'Arun' might be in a commentline in 50 tests. I like to replace it with 'Alex' OR even delete it.

Thanks,
Arun
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Fri Nov 30, 2007 9:59 am    Post subject: Reply with quote

If you know # of the comment line, you may use HM Script and ReplaceTestParam action
www.ks-soft.net/hostmon.eng/mframe.htm#actions.htm#actScript

Also you may export tests using menu "File" -> "Export to text file", then modify test settings using any text editor and import new settings using menu "File" -> "Import from text file"
Note: I would recommend to use "Modify" ImportMode
www.ks-soft.net/hostmon.eng/examples/import1.htm

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
V Arun



Joined: 11 Apr 2004
Posts: 52

PostPosted: Sat Dec 01, 2007 1:21 am    Post subject: Reply with quote

Alex,

This procedure appears cumbersome. My situation is like this. For ex. commentline2 of all tests contain some names like abc, def, xyz etc. 'def' may appear in 100 out of 200 total tests. I just need to replace 'def' with 'klm' wherever it appears but keeping 'abc' & 'xyz' intact.

We enter mobile numbers OR email addresses in this commentline for SMS alerts. We need to do this pretty often due to rotating staff and need a simple procedure.

Highly appreciate.

Regards,
Arun.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Sat Dec 01, 2007 9:23 am    Post subject: Reply with quote

Quote:
We need to do this pretty often due to rotating staff and need a simple procedure.

Then you would recommend to use global macro variables.
http://www.ks-soft.net/hostmon.eng/mframe.htm#actions.htm#udvmacro

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
V Arun



Joined: 11 Apr 2004
Posts: 52

PostPosted: Sat Dec 01, 2007 12:09 pm    Post subject: Reply with quote

Was already thinking on those lines . I have a common mail action profile where i customize the recepients of that particular test in commenline2.
Is the below scenario permitted ?

"To" field in mail action profile = %commentline2%
commentline2= %udv_network%
udv_network= %alex%, %arun%
udv_alex= %12345%
udv_arun= %67890%

Is there any limitation on the number of user defined variables that can be created? Are these stored in an accessible text file? Is it possible to search and replace udv parameters?

Regards,
Arun.
Back to top
View user's profile Send private message
V Arun



Joined: 11 Apr 2004
Posts: 52

PostPosted: Sat Dec 01, 2007 12:11 pm    Post subject: Reply with quote

sorry for the typo earlier..

udv_network= %udv_alex%, %udv_arun%
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Sun Dec 02, 2007 9:50 am    Post subject: Reply with quote

Quote:
Is the below scenario permitted ?
"To" field in mail action profile = %commentline2%
commentline2= %udv_network%
udv_network= %udv_alex%, %udv_arun%
udv_alex= %12345%
udv_arun= %67890%

Yes, this should work

Quote:
Is there any limitation on the number of user defined variables that can be created?

Everything is limited in this word. I think you may create up to 2147483646 variables.

Quote:
Are these stored in an accessible text file?

No

Quote:
Is it possible to search and replace udv parameters?

Search and replace? No. But you may set variables automatically using HM Script

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
V Arun



Joined: 11 Apr 2004
Posts: 52

PostPosted: Thu Dec 06, 2007 11:46 am    Post subject: Reply with quote

Thanks Alex.

I still feel it would be a great feature to have some kind of GUI or a better way to create, mangage and arrange UDVs. It would be really helpful.

Highly appreciate.

Regards,
Arun
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Thu Dec 06, 2007 11:57 am    Post subject: Reply with quote

V Arun wrote:
I still feel it would be a great feature to have some kind of GUI or a better way to create, mangage and arrange UDVs. It would be really helpful.
Actually, GUI has been implemented a while ago. You may manage and arrange UDV variables using menu "Profiles" -> "Global Macro Variables".

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
V Arun



Joined: 11 Apr 2004
Posts: 52

PostPosted: Fri Dec 07, 2007 12:29 am    Post subject: Reply with quote

Hi Max,

This is what we have been using so far.

My request is for a facility to drag and drop different objects into different groups. Before deleting any object, good to have a warning where it is currently being used. Also, these variables to be available while editing test properties. For ex. email OR sms recepients of a particular test is defined in Commentline1 of that test. When I goto Commentline1, it would be nice to call the list of UDV groups there and apply through drag and drop facility.

Something like this would be a great feature.

Regards,
Arun
Back to top
View user's profile Send private message
Stoltze



Joined: 03 Feb 2004
Posts: 174
Location: Denmark

PostPosted: Tue Dec 11, 2007 2:01 pm    Post subject: Reply with quote

V Arun wrote:
When I goto Commentline1, it would be nice to call the list of UDV groups there and apply through drag and drop facility.

I will support this feature request as well.. Especially with global macros, since I have otherwise have to remember these..

With standard macros its different, since these can be seen through Help whereever you are..

But, drag and drop from standard macros would also be nice to have feature...
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Tue Dec 11, 2007 3:27 pm    Post subject: Reply with quote

Probably we can implement some "expression editor"

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
V Arun



Joined: 11 Apr 2004
Posts: 52

PostPosted: Sun Jan 06, 2008 7:29 am    Post subject: Reply with quote

Yes... An expression editor would be great to begin with. Will be eagerly waiting for one..

Thanks Alex,
Arun
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Sun Jan 06, 2008 8:50 am    Post subject: Reply with quote

V Arun wrote:
Yes... An expression editor would be great to begin with. Will be eagerly waiting for one..
This feature has been already implemented in version 7.06
Quote:
http://www.ks-soft.net/hostmon.eng/news.htm
=======================================
HostMonitor and RCC: there are special buttons in Test Properties dialog that allow you to bring up special "Expression editor" window for "Warning", "Normal", and "Tune up Reply" expressions editing. Expression editor shows list of standard and user defined macro variables, also it allows each operator to create his own "favorite" list of variables. There are buttons that allow you to filter standard macro variables by category.
Several menu items help to work with variables (popup menu appears when you click right mouse button on macro variable in the list):

* Insert into expression (equivalent to double click on the variable)
* Add variable to favorites (Ctrl+C)

Favorite variables can be moved up (Ctrl+Up) and down (Ctrl+Down) or sorted alphabetically
=======================================

Version 7.06 is available to download at our site: http://www.ks-soft.net/hostmon.eng/downpage.htm

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
V Arun



Joined: 11 Apr 2004
Posts: 52

PostPosted: Mon Jan 07, 2008 10:57 pm    Post subject: Reply with quote

Can the expression editor be made available at other places. For ex.

1. Inserting expressions into Commentlines
2. Inserting into 'To' or 'Sub' field of mail action profiles. etc.

Also, it would be a great feature if we could create new variables or edit/modify existing ones using the same editor.

Thanks,
Arun
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index