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

HMScript problems

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
argis



Joined: 06 May 2019
Posts: 31

PostPosted: Wed Jun 12, 2019 8:55 pm    Post subject: HMScript problems Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Thu Jun 13, 2019 5:25 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
argis



Joined: 06 May 2019
Posts: 31

PostPosted: Thu Jun 13, 2019 2:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Thu Jun 13, 2019 2:25 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Thu Jun 13, 2019 2:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
argis



Joined: 06 May 2019
Posts: 31

PostPosted: Thu Jun 13, 2019 2:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Thu Jun 13, 2019 3:34 pm    Post subject: Reply with quote

You are welcome

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 -> Configuration, Maintenance, Troubleshooting 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