View previous topic :: View next topic |
Author |
Message |
argis
Joined: 06 May 2019 Posts: 31
|
Posted: Wed Jun 12, 2019 8:55 pm Post subject: HMScript problems |
|
|
I'm trying to change some test parameters using HMScript but I'm having trouble with some of them.
Is it possible to change SNMP profiles and status processing parameters using test groups? I'm trying to use the following but I'm having no success.
I don't get any error messages and the userlog shows it executed without errors.
Code: | SetCurrentFolder Root\Servers\Server1
ReplaceTestParam _AllFreeSpace Profile "public v2" Custom_v2
SetCurrentFolder Root\Servers
IncludeSubFolders yes
SetTestParam _AllPerfCounter UnknownIsBad no
SetTestParam _AllPerfCounter WarningIsBad no
SetTestParam _AllPerfCounter UseWarning yes
SetTestParam _AllPerfCounter WarningExpr "'%SuggestedReply_Integer%' < 86400" |
|
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Jun 13, 2019 5:25 am Post subject: |
|
|
I think there are no such parameters.
Where did you find parameters like UnknownIsBad, UseWarning, WarningExpr?
May be there is mistake somewhere in the manual?
As I see manual lists the following parameters
- timeout
- retries
- username
- password
- comment
- commentlineNN
- testinterval
- AlertProfile
- AlertProfile2
- Schedule
- TestBy
- Threshold
- ThresholdUp
- Threshold2
- ThresholdDown
- usecommonlog
- reversealert
- unknownasbad
- warningasbad
- syncmastercounters
- syncmasterstatus
Regards
Alex |
|
Back to top |
|
|
argis
Joined: 06 May 2019 Posts: 31
|
Posted: Thu Jun 13, 2019 2:12 pm Post subject: |
|
|
I exported a device that was working the way I wanted it, and assumed everything was a valid parameter name. Looks like I assumed a bit too much.
What's the quickest way to edit a large number of devices in a case like this? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Jun 13, 2019 2:25 pm Post subject: |
|
|
May be just change SNMP profile settings without changing test settings?
Also you may export test settings into text file (menu File->Export..), open this file in any text editor, Find&Replace parameter you need, add ImportMode = Modify line on top, then import test settings (menu File->Import..)
Regards
Alex |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Jun 13, 2019 2:28 pm Post subject: |
|
|
Regarding UnknownAsBad, WarningAsBad options and expressions - you may use HMScript or GUI (select set of tests, click Edit button, modify settings, click Ok)
Regards
Alex |
|
Back to top |
|
|
argis
Joined: 06 May 2019 Posts: 31
|
Posted: Thu Jun 13, 2019 2:44 pm Post subject: |
|
|
Quote: | Also you may export test settings into text file (menu File->Export..), open this file in any text editor, Find&Replace parameter you need, add ImportMode = Modify line on top, then import test settings (menu File->Import..) |
Thanks Alex, I'd missed that option but it looks like exactly what I need. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Jun 13, 2019 3:34 pm Post subject: |
|
|
You are welcome
Regards
Alex |
|
Back to top |
|
|
|