Summary of the invention
Fundamental purpose of the present invention is method and the device of the site information providing a kind of internet information query to serve, the problem of complicated operation during to solve the site information of the Internet Information Service of querying server.
To achieve these goals, according to an aspect of the present invention, the method for the site information of a kind of internet information query service is provided.
The method of the site information that internet information query according to the present invention is served comprises: obtain and preset script file, wherein, default script file comprises first and presets scripted code and the second default scripted code, first default scripted code is the scripted code for generating the first interface, second presets the scripted code that scripted code is generation second contact surface, first interface is for obtaining the IP address of server to be checked, second contact surface is for obtaining website attribute to be checked, and website attribute to be checked is attribute corresponding to the site information of Internet Information Service to be checked; The first interface and second contact surface is determined according to default script file; The IP address of server to be checked is obtained by the first interface; Website attribute to be checked is obtained by second contact surface; Internet Information Service Object Manager is connected to server to be checked by the IP address according to server to be checked; The site information of Internet Information Service corresponding to the website attribute to be checked that comprises in server to be checked is obtained by Internet Information Service Object Manager.
Further, obtain second by the following method and preset scripted code: the multiple attributes obtaining Internet Information Service website; Generate second according to multiple attributes of Internet Information Service website and preset scripted code, wherein, in the second contact surface determined according to the second default scripted code, multiple attributes of Internet Information Service website are shown with tabular form.
Further, the IP address being obtained server to be checked by the first interface is comprised: receive the instruction of IP address configuration by the first interface, and wherein, the input instruction of IP address is used to indicate the IP address configuring server to be checked; The IP address of server to be checked is configured according to the instruction of IP address configuration.
Further, obtain website attribute to be checked comprise by second contact surface: by the instruction of second contact surface receiving station attribute configuration, wherein, the instruction of website attribute configuration is used to indicate configuration website attribute to be checked; Website attribute to be checked is configured according to the instruction of website attribute configuration.
Further, obtain website attribute to be checked comprise by second contact surface: by the instruction of second contact surface receiving station Attributions selection, wherein, the instruction of website Attributions selection is used to indicate selects website attribute to be checked in multiple attributes of Internet Information Service website; In multiple attributes of Internet Information Service website, website attribute to be checked is selected according to the instruction of website Attributions selection.
Further, the first interface and second contact surface are same interface.
To achieve these goals, according to a further aspect in the invention, the device of the site information of a kind of internet information query service is provided.
The device of the site information that internet information query according to the present invention is served comprises: the first acquiring unit, for obtaining default script file, wherein, default script file comprises first and presets scripted code and the second default scripted code, first default scripted code is the scripted code for generating the first interface, second presets the scripted code that scripted code is generation second contact surface, first interface is for adding the IP address of server to be checked, second contact surface is for selecting website attribute to be checked, website attribute to be checked is attribute corresponding to the site information of Internet Information Service to be checked, determining unit, for determining the first interface and second contact surface according to presetting script file, second acquisition unit, for obtaining the IP address of server to be checked by the first interface, 3rd acquiring unit, for obtaining website attribute to be checked by second contact surface, linkage unit, is connected to server to be checked for the IP address according to server to be checked by Internet Information Service Object Manager, 4th acquiring unit, for obtaining the site information of Internet Information Service corresponding to the website attribute to be checked that comprises in server to be checked by Internet Information Service Object Manager.
Further, scripted code is preset by obtaining second with lower module: acquisition module, for obtaining multiple attributes of Internet Information Service website; Generation module, presets scripted code for generating second according to multiple attributes of Internet Information Service website, and wherein, in the second contact surface determined according to the second default scripted code, multiple attributes of Internet Information Service website are shown with tabular form.
Further, second acquisition unit comprises: the first receiver module, and for receiving the instruction of IP address configuration by the first interface, wherein, the input instruction of IP address is used to indicate the IP address configuring server to be checked; First configuration module, for configuring the IP address of server to be checked according to the instruction of IP address configuration.
Further, the 3rd acquiring unit comprises: the second receiver module, and for passing through the instruction of second contact surface receiving station attribute configuration, wherein, the instruction of website attribute configuration is used to indicate configuration website attribute to be checked; Second configuration module, for configuring website attribute to be checked according to the instruction of website attribute configuration.
Pass through the present invention, adopt the method comprised the following steps: obtain and preset script file, wherein, default script file comprises first and presets scripted code and the second default scripted code, first default scripted code is the scripted code for generating the first interface, second presets the scripted code that scripted code is generation second contact surface, first interface is for obtaining the IP address of server to be checked, second contact surface is for obtaining website attribute to be checked, and website attribute to be checked is attribute corresponding to the site information of Internet Information Service to be checked; The first interface and second contact surface is determined according to default script file; The IP address of server to be checked is obtained by the first interface; Website attribute to be checked is obtained by second contact surface; Internet Information Service Object Manager is connected to server to be checked by the IP address according to server to be checked; The site information of Internet Information Service corresponding to the website attribute to be checked that comprises in server to be checked is obtained by Internet Information Service Object Manager, solve the problem of complicated operation during the site information of the Internet Information Service of querying server, and then by utilizing script, reach quick traversal server, obtain the effect of the site information of Internet Information Service.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
The application's scheme is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the embodiment of the application's part, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all should belong to the scope of the application's protection.
It should be noted that, term " first ", " second " etc. in the instructions of the application and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged, in the appropriate case so that the embodiment of the application described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
According to embodiments of the invention, provide the method for the site information of a kind of internet information query service.
Fig. 1 is the process flow diagram of the embodiment of the method for the site information that internet information query according to the present invention is served.As shown in Figure 1, the method comprising the steps of S102 is to step S112:
Step S102, obtain and preset script file, wherein, default script file comprises first and presets scripted code and the second default scripted code, first default scripted code is the scripted code for generating the first interface, and second presets the scripted code that scripted code is generation second contact surface, and the first interface is for obtaining the IP address of server to be checked, second contact surface is for obtaining website attribute to be checked, and website attribute to be checked is attribute corresponding to the site information of Internet Information Service to be checked.
The present invention utilizes script to achieve and the information interaction of server internet information service website and measuring ability.Namely this script presets script file, and wherein comprise first presets scripted code for generating the user interface of the IP address obtaining server to be checked, and comprise second presets scripted code for generating the user interface obtaining website attribute to be checked.Afterwards, can obtain relevant Query Information by above-mentioned two interfaces, the acquisition of this Query Information is inputted by user or selects corresponding information to be achieved.It should be noted that, the language writing this default script file can be but be not limited only to VBScript script.
Alternatively, second can be obtained by the following method and preset scripted code: the multiple attributes obtaining Internet Information Service website; Generate second according to multiple attributes of Internet Information Service website and preset scripted code, wherein, in the second contact surface determined according to the second default scripted code, multiple attributes of Internet Information Service website are shown with tabular form.
Because second presets scripted code for generating the user interface obtaining website attribute to be checked, therefore, first can obtain the multiple general attribute (these general-purpose attributes can ensure the query demand of satisfied most user) of Internet Information Service website, and then generate the second default scripted code according to these general-purpose attributes.Perform this scripted code, the general-purpose attribute of website is presented to user in the mode of list.User, can by selecting the corresponding respective attributes of site information to be checked when inquiring about site information to be checked.Such as, the optional attribute comprised in second contact surface is 1, site name, 2, binding IP, 3, binding domain name 4, physical directory ... when user carries out Attributions selection, only need the numeral choosing attribute to be checked corresponding.
Step S104, determines the first interface and second contact surface according to default script file.
Preset in script file the second default scripted code comprising first of generation first interface and preset scripted code and generate second contact surface.The first interface and second contact surface can be presented to user by performing default script file.First interface and second contact surface can be two different interfaces, also can be positioned at same interface.When first interface and second contact surface are same interface, user can complete the input of the IP address of server to be checked in an interface, and the selection of website attribute to be checked or interpolation, more intuitively, is easy to operation.
Step S106, obtains the IP address of server to be checked by the first interface.
The IP address being obtained server to be checked by the first interface can be realized as follows: receive the instruction of IP address configuration by the first interface, and wherein, the input instruction of IP address is used to indicate the IP address configuring server to be checked; The IP address of server to be checked is configured according to the instruction of IP address configuration.
User directly can input the IP address of server to be checked in the first interface, or also can adopt the form of drop-down menu, and user directly selects the IP address of the server needing inquiry.Certainly, any one obtains the method for the IP address of server to be checked all within protection scope of the present invention by script.
It should be noted that, user can input the IP address of multiple server to be checked on the first interface, realizes disposable Internet Information Service site information of simultaneously inquiring about on multiple server to be checked.By the method, when obtaining the Internet Information Service site information on multiple server, only need once to connect multiple server to be checked, operation and easy, save the time of user, user experience is higher.
Step S108, obtains website attribute to be checked by second contact surface.
Obtain website attribute to be checked by second contact surface can realize as follows: by the instruction of second contact surface receiving station attribute configuration, wherein, the instruction of website attribute configuration is used to indicate configuration website attribute to be checked; Website attribute to be checked is configured according to the instruction of website attribute configuration.
Obtain website attribute to be checked by second contact surface can also realize as follows: by the instruction of second contact surface receiving station Attributions selection, wherein, the instruction of website Attributions selection is used to indicate and selects website attribute to be checked in multiple attribute of Internet Information Service website; In multiple attributes of Internet Information Service website, website attribute to be checked is selected according to the instruction of website Attributions selection.
Website attribute to be checked comprises site name, binding domain name, binding IP, physical directory etc., and different users needs the website attribute difference to be checked obtained, and such as, certain user only needs the binding IP obtaining website to be checked.In second contact surface, user directly can input website attribute to be checked, or directly can select the website attribute to be checked of needs in general-purpose attribute list.Certainly, any one obtains the method for website attribute to be checked all within protection scope of the present invention by script.
It should be noted that, user can select multiple website attribute to be checked on second contact surface simultaneously, realizes the much information of the disposable Internet Information Service website simultaneously inquired about on server to be checked.By the method, when obtaining the much information of the Internet Information Service website on server, only once need select multiple website attribute to be checked, operation and easy, save the time of user, user experience is higher.
Step S110, Internet Information Service Object Manager is connected to server to be checked by the IP address according to server to be checked.
Management architecture (Windows Management Instrumentation, referred to as WMI) be one powerful based on the technology providing program, for managing the different systems and object that form Windows environment.Program is provided to be object for management individual feature (as Internet Information Service or print service) and the program developed.WMI provides Internet Information Service Object Manager, can be obtained the Internet Information Service site information that service to be checked comprises by this Internet Information Service Object Manager.After the IP address that user inputs server to be checked and website attribute to be checked, the Internet Information Service Object Manager that WMI provides will be connected to server to be checked corresponding to above-mentioned IP address.The Internet Information Service site information that user's needs are known is comprised in the server to be checked that this IP address is corresponding.
Step S112, obtains the site information of Internet Information Service corresponding to the website attribute to be checked that comprises in server to be checked by Internet Information Service Object Manager.
After Internet Information Service Object Manager is connected to server to be checked, can automatically, the site information of Internet Information Service that quick obtaining website to be checked attribute is corresponding.After the site information getting Internet Information Service, can take the modes such as printing reports that the site information of Internet Information Service is supplied to user.
This embodiment is owing to have employed following steps: obtain and preset script file, wherein, default script file comprises first and presets scripted code and the second default scripted code, first default scripted code is the scripted code for generating the first interface, second presets the scripted code that scripted code is generation second contact surface, first interface is for adding the IP address of server to be checked, second contact surface is for selecting website attribute to be checked, and website attribute to be checked is attribute corresponding to the site information of Internet Information Service to be checked; The first interface and second contact surface is determined according to default script file; The IP address of server to be checked is obtained by the first interface; Website attribute to be checked is obtained by second contact surface; Internet Information Service Object Manager is connected to server to be checked by the IP address according to server to be checked; The site information of Internet Information Service corresponding to the website attribute to be checked that comprises in server to be checked is obtained by Internet Information Service Object Manager, solve the problem of complicated operation during the site information of the Internet Information Service of querying server, and then by utilizing script, reach quick traversal server, obtain the effect of the site information of Internet Information Service.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
According to embodiments of the invention, provide the device of the site information of a kind of internet information query service.It should be noted that, the device of the site information of the internet information query service of the embodiment of the present invention may be used for the method for the site information performing the internet information query service that the embodiment of the present invention provides, and the device of the site information of the internet information query service that the method for the site information of the internet information query service of the embodiment of the present invention also can be provided by the embodiment of the present invention performs.
Fig. 2 is the schematic diagram of the embodiment of cold grouped controls according to fixed frequency air conditioner unit of the present invention.As shown in Figure 2, this device comprises: the first acquiring unit 10, determining unit 20, second acquisition unit 30, the 3rd acquiring unit 40, linkage unit 50 and the 4th acquiring unit 60.
First acquiring unit 10, for obtaining default script file, wherein, default script file comprises first and presets scripted code and the second default scripted code, first default scripted code is the scripted code for generating the first interface, second presets the scripted code that scripted code is generation second contact surface, first interface is for obtaining the IP address of server to be checked, second contact surface is for obtaining website attribute to be checked, and website attribute to be checked is attribute corresponding to the site information of Internet Information Service to be checked.
Alternatively, scripted code can be preset by obtaining second with lower module: acquisition module, for obtaining multiple attributes of Internet Information Service website; Generation module, presets scripted code for generating second according to multiple attributes of Internet Information Service website, and wherein, in the second contact surface determined according to the second default scripted code, multiple attributes of Internet Information Service website are shown with tabular form.
Determining unit 20, for determining the first interface and second contact surface according to presetting script file.
Second acquisition unit 30, for obtaining the IP address of server to be checked by the first interface.
Alternatively, second acquisition unit 30 can comprise with lower module: the first receiver module, and for receiving the instruction of IP address configuration by the first interface, wherein, the input instruction of IP address is used to indicate the IP address configuring server to be checked; First configuration module, for configuring the IP address of server to be checked according to the instruction of IP address configuration.
3rd acquiring unit 40, for obtaining website attribute to be checked by second contact surface.
Alternatively, the 3rd acquiring unit 40 can comprise with lower module: the second receiver module, and for passing through the instruction of second contact surface receiving station attribute configuration, wherein, the instruction of website attribute configuration is used to indicate configuration website attribute to be checked; Second configuration module, for configuring website attribute to be checked according to the instruction of website attribute configuration.
Linkage unit 50, is connected to server to be checked for the IP address according to server to be checked by Internet Information Service Object Manager.
4th acquiring unit 60, for obtaining the site information of Internet Information Service corresponding to the website attribute to be checked that comprises in server to be checked by Internet Information Service Object Manager.
The device of the site information of the internet information query service that the present embodiment provides comprises: the first acquiring unit 10, determining unit 20, second acquisition unit 30, the 3rd acquiring unit 40, linkage unit 50 and the 4th acquiring unit 60.By this device, solve the problem of complicated operation during the site information of the Internet Information Service of querying server, and then by utilizing script, reach quick traversal server, obtain the effect of the site information of Internet Information Service.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.