NAV 2009 R2 NST management within NAV v6.02

Administrator
Member, Moderator, Administrator Posts: 2,506
NAV 2009 R2 NST management within NAV
This is "remake" of my NST Management, this time directly in NAV 2009 R2 environment!
You can manage your NSTs directly from the client (if you have the permissions).
You can start and stop the services, create new NST or delete them and you can edit their config files. All done in clear DotNet in NAV. Thus you need to use the NAV 2009 R2, which supports the DotNet interoperability.
When creating the new NST, you are selecting the "template" folder, from which will be the target folder created. In this way, you can have different versions of "templates" and create different versions of NST with same tool.
Objects are placed into range 50000, starting point is the Page 50000.
http://www.mibuso.com/dlinfo.asp?FileID=1337
Discuss this download here.
This is "remake" of my NST Management, this time directly in NAV 2009 R2 environment!
You can manage your NSTs directly from the client (if you have the permissions).
You can start and stop the services, create new NST or delete them and you can edit their config files. All done in clear DotNet in NAV. Thus you need to use the NAV 2009 R2, which supports the DotNet interoperability.
When creating the new NST, you are selecting the "template" folder, from which will be the target folder created. In this way, you can have different versions of "templates" and create different versions of NST with same tool.
Objects are placed into range 50000, starting point is the Page 50000.
http://www.mibuso.com/dlinfo.asp?FileID=1337
Discuss this download here.
0
Comments
-
Works like a charm \:D/ \:D/
However; I found a few tiny problems.
Please rename the Array variable in Cod50000 (CopyFolder) - it is a reserved word and prevents import of the txt file. (Actually surprised that is doesn't complain about the Dialog variable. I thought that was why it is normally called Window)
Please add the "PC Name" in the Start and Stop and Refresh functions. Otherwise it tries to start/stop the services on localhost. (just add the "PC Name" parameter)
The ENU caption of the Status field is "Stav", while the CSY caption is "Status" - guess it should be the opposite? 8)Regards
Peter0 -
:thumbsup: Thanks, I will look at it and correct it... it was my night-work... 8)0
-
Ok, update uploaded, will be available after Luc will publish it...0
-
NAV 2009 R2 NST management within NAV v6.02
This is "remake" of my NST Management, this time directly in NAV 2009 R2 environment!
You can manage your NSTs directly from the client (if you have the permissions).
You can start and stop the services, create new NST or delete them and you can edit their config files. All done in clear DotNet in NAV. Thus you need to use the NAV 2009 R2, which supports the DotNet interoperability.
When creating the new NST, you are selecting the "template" folder, from which will be the target folder created. In this way, you can have different versions of "templates" and create different versions of NST with same tool.
Objects are placed into range 50000, starting point is the Page 50000.
Version 6.02.00
- some missing/wrong captions
- start/stop/refresh works with the remote servers
- some variables renamed
Version 6.01.00
- initial version
http://www.mibuso.com/dlinfo.asp?FileID=1337
Discuss this download here.0 -
I have just found one error: when creating remote NST, the image path in the register is created to the admin share instead to local disc. The service cannot be started after that. There is the patch:
Codeunit 5000, function CreateNewService:Window.OPEN(Text000); IF Directory.Exists(TargetPath) THEN BEGIN IF NOT CONFIRM(FolderExists,FALSE,TargetPath) THEN ERROR(''); Directory.Delete(TargetPath,TRUE); END; CopyFolder(TemplatePath,TargetPath); Window.CLOSE(); //--------------Inserted IF STRPOS(TargetPath,'$')>0 THEN BEGIN LocalTargetPath := CONVERTSTR(TargetPath,'$',':'); LocalTargetPath := COPYSTR(LocalTargetPath,STRPOS(LocalTargetPath,':')-1); END; //--------------End of insert IF CreateWS THEN Type :='share' ELSE Type := 'own';
Parameters := STRSUBSTNO(InstallText,ComputerName,ServicePrefix+ServiceName,LocalTargetPath,ServiceName, STRSUBSTNO(Caption,ServiceName), Type,'auto'); //TargetPath replaced with LocalTargetPath
IF CreateWS THEN BEGIN Parameters := STRSUBSTNO(WSInstallText,ComputerName,WSServicePrefix+ServiceName,LocalTargetPath,ServiceName, STRSUBSTNO(WSCaption,ServiceName), Type,'auto',ServiceName); //TargetPath replaced with LocalTargetPath Proc := Proc.Process;
LocalTargetPath is new local variable of type text[1000].0 -
Even after compiling all the objects i am getting below error,
I am getting error as " The Object metadata does not exist. Identification fields and values: Object Type=Page,Object Id=50000"Regards,
Manish0 -
It is interesting. Are you sure that your DB is NST enabled? (I mean the checkbox in the File-Database-Alter-Options-Enable for Microsoft Dynamics NAV Server)0
-
Ok now its working.
When running the page directly from classic it was opening different database & searching page 50000.
Modified the config file with correct database & it started.
I have another query,
I don't see any option to eidt/modify the existing service withing from navision (Page 50000).Regards,
Manish0 -
What you mean with "Edit/modify"? There is action to edit the config file of the service tier.... You cannot rename it, you can just delete/create...0
-
Good job.
I tried to modify this gadget so that I could set the user account for the service and enable TCP/IP-port sharing. Cause I'm not familiar with the .NET System variables, I gave it up. I could though change the code so, that the SC utility would be called from the command line, but that would miss the point...0 -
In CU 50000 you can just modify the code:
Parameters := STRSUBSTNO(InstallText,ComputerName,ServicePrefix+ServiceName,LocalTargetPath,ServiceName, STRSUBSTNO(Caption,ServiceName), Type,'auto');
The Parameters is string containing all the parameters for the sc command. You can modify the obj and add password parameters there if you want... ;-)0 -
kine: Yes, that's the line I was looking at but was a bit uncertain.
So you are saying I could simply add the string "depend= NetTcpPortSharing obj= "NT Authority\NetworkService"" in the end of the line after the STRSUBSTNO function ends?
This would really help me on our development environment where we have over 100 NAV db:s...0 -
The obj= part is already there... it is part of the InstallText text constant...0
-
Oops.
This is embarrassing. I tested the string your app creates with and error message - and both parameters were already there...
TY very much, I'll start implementing this now.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions