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

Text File Import

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    KS-Soft Forum Index -> HostMonitor
View previous topic :: View next topic  
Author Message
Tommy



Joined: 01 Jul 2002
Posts: 22

PostPosted: Mon Sep 23, 2002 8:42 pm    Post subject: Reply with quote

I am working on a series of scripts for importing in order to speed up deployment and eliminate mistakes due to "mis-clicks". I am getting the following error - it does not seem to affect anything though.


Opening input file "C:Program FilesHostMonitor3BackupExecTests template.txt" .. Ok
Reading ..
Test method must be the first test parameter (line #5)
Done
tasks imported: 7
errors: 1
warnings: 0

This is what the text file looks like:

DefaultSchedule = 7 Days, 24 Hours
DefaultAlertProfile =
DefaultInterval = 120
DefaultComment = Comment1^MComment2^MComment3^MComment4^MComment5
UnknownIsBad = yes

;-------------------------------------------------------
; Service Tests
;-------------------------------------------------------

Method = Service
Title = xyzServerName Service Check for Exchange 2000 Imap
Service = imap4svc
Computer = \xyzServerName
UserName = xyzUser
Password = xyzPassword

I'll post the scripts for basic NT services, Compaq Insight Manager Services, Exchange 2000 services, and BackupExec services once this is cleared up.

tia

tommy
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12807
Location: USA

PostPosted: Mon Sep 23, 2002 10:17 pm    Post subject: Reply with quote

Yes, problem is line "UnknownIsBad = yes" located in wrong place. "UnknownIsBad" is parameter of the test, so, it must be located in the test description. In your case

DefaultSchedule = 7 Days, 24 Hours
DefaultAlertProfile =
DefaultInterval = 120
DefaultComment = Comment1^MComment2^MComment3^MComment4^MComment5

;-------------------------------------------------------
; Service Tests
;-------------------------------------------------------

Method = Service
UnknownIsBad = yes
Title = xyzServerName Service Check for Exchange 2000 Imap
Service = imap4svc
Computer = \xyzServerName
UserName = xyzUser
Password = xyzPassword
;-------------------------------------------------------

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



Joined: 01 Jul 2002
Posts: 22

PostPosted: Tue Sep 24, 2002 6:07 am    Post subject: Reply with quote

That was it. Sorry to miss something simple.

The other issue is that the Comment Lines are not taking the ^M to break the line and create multiple comment lines.

Example:

DefaultComment = Comment1^MComment2^MComment3^MComment4^MComment5
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12807
Location: USA

PostPosted: Tue Sep 24, 2002 10:47 am    Post subject: Reply with quote

H'm yes, you can use '^M' in the test's comment and cannot use '^M' in DefaultComment. It will be fixed in next version (I hope new version will be available in next week).

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



Joined: 01 Jul 2002
Posts: 22

PostPosted: Tue Sep 24, 2002 10:52 am    Post subject: Reply with quote

Thanks Alex.

I have just copied the COMMENT line to each test definition.

Is there an appropriate place for me to upload files for other HostMonitor users to have? I can only seem to past the contents of the file into a new post on this Buletin Board.

These files will save other users time and make the program easy to deploy for new servers. Most of them are service tests that are standard items on W2K servers. It took me a couple hours to put together last night. My deployment time has been cut from 30 minutes to 2 for a "typical" server.

If you want to see an example I can email it to you first.

thanks again for this great program.

tommy
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12807
Location: USA

PostPosted: Tue Sep 24, 2002 1:22 pm    Post subject: Reply with quote

Thank you for the help.
You can send zip files to our e-mail address line1@ks-soft.net. I will upload files on our server and send links back to you.
Or if you don't mind, I can create section on HostMonitor's download page (e.g. "3rd party tools") with your scripts and some link to your web site or mail.

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



Joined: 01 Jul 2002
Posts: 22

PostPosted: Tue Sep 24, 2002 1:27 pm    Post subject: Reply with quote

Sounds great. I will pretty up the comment sections of the files to answer basic questions and email them over to you - probably later tonight. I am on Eastern Standard Time.

Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    KS-Soft Forum Index -> HostMonitor 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