#3 MID Server Installation in ServiceNow | ServiceNow Discovery Training | How to install MID Server
[Music] please subscribe to my channel and click on the bell icon to get the regular updates of my channel and do not forget to like comment and share hello everyone welcome back to sas with service now this session is part of servicenow discovery training the topic of this session is how to install and set up mid server in service now and this topic is part of mid server section of this training so let's start with mid server setup and installation and the first step for mid server setup is creating mid server user in servicenow instance this is my personal developer instance now i need to go to user list so i will go to sysuser.list and here i will create a new user so i will click on new button i will get this form and i will provide the name as sas mid and here i will give sas and last name as mid and i will just set the password so that i can provide in mid server configuration and i will save this now as of now i have just created the user however in order to make this user as a mid-server user you need to add a role and that role is mid server role so just go to roles over here and just type mid you will get this mid underscore server role double click you will get it here and save this now you can say that this particular user is a mid server user so that mid server can access directly with this user id and the password which you have given over here the next step is get a windows or linux server you can install amid server on windows server machines or linux server machines in this demo i will show you the installation of mid server on windows machine this is my mac computer and in order to install windows server i have used vmware virtual client software in which you can install multiple operating systems even windows even linux and different operating systems you have now i have installed windows server 2012 which is an evaluation version of microsoft and you can also download it from microsoft website free of cost so here is the windows server now this is the software which i'm talking about that is vmware fusion the name of that client that software is vmware fusion that is specifically for mac machines so if you have mac and if you want to install virtual servers then you would need this vmware fusion otherwise if you have windows computer and if even if you want uh install these virtual machines like windows server in your windows computer in that case you can install vmware workstation that's a different software and both you can download it from vmware website that is also free of cost for a home version because you have some personal version over there which is not for enterprise or any commercial use in that case you can install it and then you can just do whatever you want as per the installation of mid server so you can if you want to try mid server by yourself you can also do that on windows machines and our mac machines as well by installing this vmware software one is vmware workstation another one is vmware fusion on mac system so here is the windows machine you can see i have also installed this ubuntu now this is something i will show you later when exactly i will be running the discovery because i will be showing you how discovery will be able to find these different systems which i will be installing in my this vm machine i will be installing other machines as well and we will see how discovery application will be able to discover these machines automatically which you will see later in this series but as of now we will focus on installation of mid server we have got windows machine over here as i told you i have downloaded this server windows server 2012 this is r2 you will find different versions over there 2012 i think 2016 as well so i have downloaded windows server 2012 r2 standard evaluation you can also see that this the license i have got till 176 days overall if i remember they give you you know just for evaluation so this is not a enterprise version you don't have to pay any money you just can evaluate and you can use it i think you can download it multiple times and i have done as well if this will expire you can redownload some other machines as well maybe the same version but that's what i have done so this one i think i just installed it four days ago and i got this 180 day so as of now i have 170 six days overall the next step is download mid server so as of now you are ready with that mid server user and you are ready also with the machines in what machine you have to install that menu server now before installing you definitely need a file to install it so we will download the mid server directly from servicenow instance so i will go to my machine so this is my windows server machine i will click on here and i will open internet explorer it says uh okay i will just do okay for now and what i will do i will provide the address for my instance and that is dev 84016 dot service hyphen now dot com press enter i will do ok now this will try to open our service now instance same instance which we have now you will you will definitely find a lot of these uh like alerts from internet explorer the reason behind it because of the security setting which we have on your uh browser so what i will do i will just click on add for now add it and close it and i can see the page now login page now here i will log into my instance now with what username and the password you can use admin because you have to download the mid server file so i will just type my password and login to my instance do you want to store it no i don't want to store it so you can see i have logged into my instance i will make it a little bit bigger screen so i have made it full screen i will close this one and what i will do i will directly go to the mid server application because that's what we need to install so i will go to mid server now here's the mid server you just need to click on downloads so in order to download the mid server click on this downloads module you will see this screen in order to download the file what i will do i will download the zip file so i will check this box here i have i have 32-bit i have 64-bit i have installed 64-bit so i will install this one okay that that i think alert is still coming but that's fine i will save it so download is complete you can see here and if i go to the folder downloads over here you can see this zip file has been downloaded now i can extract this file so i will just click right click on here and i will go to extract all and click on extract this will basically extract all the files off mid server from that zip file so you can see we have got this new folder over here with same name but this is extracted file basically so here is the main file we have that is the downloaded file agent on same windows or linux machines you can install multiple mid servers however you just need one single file that means you need to download it once and then you can install with that one file multiple mid servers you definitely have to use it multiple times the same file but i will show you how exactly you can install two mid servers rather than one mid server with the same file which we just downloaded the next step is installation of mid server now i will show you that how you can install a mid server with that particular file which we downloaded directly from our instance so i will go to my server over here here we have windows server and as i mentioned to you that we will install two mid servers not just one so in that case what i will do first i will go to c drive now here i will create a a different folder that should be of mid server name so i will just click right click over here and i will click on here and create a new folder and i will give it a name as mid server that's it and here when i will enter in this particular folder maybe i can just create two other folders so i will just create maybe sas mid one and i can create another one as sas mid to this is first one this is the second one now i will go to my download folders where we have the smith server downloaded what you need to do you you if you will find if you will click over here you will see a lot of files under this but this is your main folder agent folder so what you need to do you just need to copy this go to your c drive where you have this mid server folder and put it in one folder where we have first mid server go back now same file which you have copied go here and now paste it over here that means the same file is basically pasted in first bit server folder as well even in second mid server but as of now we have not installed it we have just placed the files now we will install it so i will go to first one go to agent now if you will go little bit bottom you will find this installer now this is installer is a windows batch file which you need to just click double click on it and now you will see a ui where you can provide the details of your instance and then you will be able to connect with your service now instance that means this mid server will be installed configured with your instance as well and i will show you the service which is basically we as we talked about that mid server is java application service so i will show you that service as well because it creates a service on this windows machine so here i have to provide the instance name so i can provide that instance name that will be one dev84016 uh here we have to provide the username the user id which we created same user which we created in the first step and that is sas dot mid and then i will provide the password and i will just click on test your connection if i click on this it will try to test the connection it will hit our instance and then you should see connection is successful so you can see here connection tested successful and if i click on next here i have to provide the name now as of now i was able to connect to my instance now i have to provide some information that what kind of name i want for my mid server so this mid server name would be the one which you want in your instance to be visible and i will show you so here i will type sas mid server 1. and i will keep these names as it is so we have sas mid server one i will click on next and that's it and if i click on next you can see your mid server has been successfully configured overall it is installed successfully nothing else you are done and if i click on start mid server now that service which i was talking about you have to restart it after installation you have to start it because it will not be automatically started you have to start it so by clicking this button i have started that mid server and i can click on exit page now what i will do i will go back now i will go to my second folder where we have second mid server i will go over here in the same agent folder and i will follow the same steps i will double click on installer it will open this page here i will provide the instance name so i have 84016 and then here i will do sas.med and i will provide the password click on test connection this will test the connection again for second mid server now i have provided all the details uh same basically same user id same password same instance but this is for second mid server but how we will come to know that is a second mid server i will show you so if i click on next now here you have to provide the detail with a different name so that you can recognize it is the second mid server so in that case i will give sas mid server two you can give two so that was sas bit server one this is sas smith server two and i will click on next and click on next and i will click on start mid server it is started and now i will exit it that's it i am done installation of both these servers is done now one thing i want to show you that as of now i i tried to uh configure this mid server with the help of ui but you can also do it with the help of directly in configuration file so where exact exactly these informations are stored they will not they will not be on i would say in air they will definitely be somewhere in the system and that system is this one this config file so right click on this config file so maybe i will tell you the place of this file again go to your agent folder you will see a lot of these folders and then you have this file config and this is xml document so i will just click on it and i will open it with maybe wordpad and i will show you the same details which we mentioned on our ui so if i go little bit bottom you can see we have our instance over here we gave it on ui but it is visible over here now if i come little bit bottom you can see we have the sas.met which is our username the user id which we created in our instance and this is our encrypted password this is not the direct this is not my password this is encrypted password so i can just go back now so i will minimize this maybe i will close this because i don't have to do anything else for this now i will show you the two services which i created for these mid servers so i will just maybe minimize this and even our instance as well and i will just type over here you have to go to services now the services show you all the services which basically which runs for different type of applications and services in your windows server and i think this is available on your normal windows computer as well like a personal windows computer you will definitely find these services as well so if i go over here i will show you those services it should be definitely with servicenow name so yep we have over here so i will make a big screen and you can see same name but if i remember there were three sections of names first one the first field which where we fill the name sas mid server one that will be visible on servicenow not here because this this name will be different this is a service name and you can see both are running these are my two mid server services now if i go to my instance let's go directly from here because i have already logged into my instance so if i show you here you just need to click on this server now we didn't have any racket on this particular instance for mid servers there was there were zero rackets but now you will see two rackets created automatically if i click this you can see we have two rackets created over here and status is also showing up and up because both the services are up and running you can see the name the name which same name which we gave over there let me show in in the bigger screen as well this this is what this is what i'm showing you in my virtual machine but let me show you in my directly in my computer so here's mid server i will type it server i will go to servers and here we have our two mid servers you can also see the version these are the versions basically for these mid servers latest one is paris because my instance is in paris version uh here we have name there are a lot of some details like ip addresses you can see uh one because these are the host ip address where exactly the system where we have installed our mid server so next step is validate mid server now after installing and restarting your mid server you have to validate it so i will go back to my instance i will just open this racket first because i have to validate this one first so this is not validated i will click on this validate button you will see this screen it says allow all applications allow all capabilities allow all ip ranges i will say yes i am okay with that i will save it and you can see it is also trying to validate it i will go next it is still validating and i will just open this one now and i will click on validate again on second mid server it is asking allow all applications allow all capabilities all ip ranges yes and i will just click on save no changes and i will go back you can see both the servers are validated you can see green icon over here and with yes yes now there are some times when you install the mid server even they are up and even if you try to validate them you will keep on seeing the status as validating that means system will not be able to validate them in that case if something would stuck what you will do so what you can do just click on that mid server you need to click on this invalidate and maybe you can also try to restart so invalidate try to restart the mid server and then click on validate again in that case you will definitely see that mid server will be validated without any issues and if i go a little bit bottom now these are some related lists where you can see like uh configuration parameters so you can see the username which we have used we have used this instance and it's url as well as the name of the mid server ssid password as well these are all configured directly shown in this related list then if i go to supported application you can see we have this we are supporting all the application if i click and if you don't want to add all the applications then we have to select those applications like you have cloud you have discovery and if i go to other related list like ip ranges now as of now this is including all the ip ranges then i go to capabilities it is including all the capabilities if you want to just enable one of the mid server for specific capabilities that is also you can just add over here and remove this all option then we have some logs you can also see mid server logs and then you can see the threads as well that what kind of threads you are getting while while doing different transactions in the mid server that is something you can see over here uh then we have i think this is statistics just about input what what things are processed how is the queue that is what it is showing uh showing over here now if i go to my machine let's go to our machine over here and if i go to our mid server one of the mid server let's go to sas one now here you can also see the logs and those logs are basically here you can see this mid server lock agent log and you can see a wrapper log as well so which will be generated over here this will keep on updating as of now this is the latest time as per my server time you can see so just keep on updating it similarly you can for example you might get some issues multiple issues when you perform uh the installation of mid server or maybe you want to use mid server for different functionalities even for integration now for sure for example if i talk about integration so if you are sending any outbound call from servicenow to any third-party system via mid server that means it will definitely be tracked the transaction will definitely be tracked in the mid server logs so in some cases for example sometimes uh you're not able to integrate you're getting some errors in that case you can troubleshoot those issues by by looking into these logs because you might get some some kind of errors so that you can troubleshoot them and you can fix different kind of functionalities or different issues you will get for integrations or or discovery or different features we use wiremit server let me create cluster records for these mid servers if i will go to my instance and in mid server you have this clusters module and if i click here new so what i will do i will maybe make it as primary mid and i will make it as failover and i will click on submit and if i come over here i have to select which server should be primary so i will just click over here edit and i will add both now these two mid servers they should act as failover servers if one will not work then that functionality should be routed to another one automatically like for example if i give an example of ldap if you have ldap in that case if one server is down and if you want to switch it to second server automatically then you can select this failover and you can also select load balancer load balancer is just to share the traffic for example on your one mid server you're getting a lot of traffic lot of transactions in that case you want to share the transactions share the traffic to another that means used to unload some transactions from your first to second in that case there will be balance traffic going to both the servers in that case you can create uh basically a load balancer type of cluster here i have created a cluster type of failover uh load cluster and you can also create load balancer as per your requirement that'll be load balanced basically the name of type of that particular cluster is load balance and this one is failover this is how you can install mid servers in service now in your organization internal machines for discovery application even for other type of features you have in service now but if i talk about specifically discovery then mid server plays an important role it's an important component of discovery process in service now so thanks for watching my video have a great day
https://www.youtube.com/watch?v=TyUwvSdmHIE