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

Editing test by .HMS script

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Other
View previous topic :: View next topic  
Author Message
Mallhoc
Guest





PostPosted: Wed Jun 08, 2005 2:36 am    Post subject: Editing test by .HMS script Reply with quote

hi,
i'm a french student and use this soft for a professional training course.

in this work i had to add test by an other soft. so i use .HMS script to import a file which contains all the test.

but, once that they are added, I would like to edit them by a script file.
I saw that we could modify certain parameter :

timeout
username
password
comment
commentlineNN

but is there a method for another ? (like title or all the Test specific properties)

thank you in advance
Nicoulaïe
Back to top
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Jun 08, 2005 6:34 am    Post subject: Reply with quote

Sorry, this is impossible
I think you may edit import file and then reimport new settings

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






PostPosted: Wed Jun 08, 2005 8:03 am    Post subject: Reply with quote

ok thanks you

and by the way we can't reimport settings . Because when the soft recognizes a known test title, it doesn't try to read the specifique parameters and goes to the next test

Nikoo
Back to top
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Jun 08, 2005 8:39 am    Post subject: Reply with quote

You may use "ImportMode = Modify" option:
Quote:

; -- Special commands (added in version 4.40) --

; ImportMode
; this parameter may be set to one of the following values:

; ImportMode = Add
; - in this mode HostMonitor adds new tests to the
; list; prompts for confirmation when the test with specified name already
; exists within the list (in any folder). This mode is used by default as it
; conforms with the behavior of previous versions of HostMonitor (version
; 4.30 or earlier);

; ImportMode = Modify
; - in this mode application adds new test if
; the test with specified name doesn't exist in the folder. Otherwise,
; HostMonitor replaces the test settings by those provided in the imported
; file. Statistical information (dead ratio, alive ratio, etc) is kept intact;

; ImportMode = Replace
; - adds new test if the test with provided name
; doesn't exist in the specified folder. Otherwise, HostMonitor replaces
; the test settings with the settings that are specified in the imported
; file and resets all statistical information (similar to the effect of
; complete removing of an old test and then creating the new one instead.


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






PostPosted: Wed Jun 08, 2005 9:34 am    Post subject: Reply with quote

oh ok thank you very much !!


see you
Back to top
mallhoc
Guest





PostPosted: Thu Jun 09, 2005 12:51 am    Post subject: Reply with quote

hey me again !!

just a last question.
Can we delete a test by a script ? or we can just disable it.

thanks
Nikoo
Back to top
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Jun 09, 2005 9:10 am    Post subject: Reply with quote

There is "DeleteTest <testname>" command. But this is undocumented command, so I cannot guarantee it will be supported in future versions

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Other All times are GMT - 6 Hours
Page 1 of 1

 
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