CN107832195B - Host environment management method, device and system - Google Patents

Host environment management method, device and system Download PDF

Info

Publication number
CN107832195B
CN107832195B CN201711181339.6A CN201711181339A CN107832195B CN 107832195 B CN107832195 B CN 107832195B CN 201711181339 A CN201711181339 A CN 201711181339A CN 107832195 B CN107832195 B CN 107832195B
Authority
CN
China
Prior art keywords
host environment
host
environment
instruction
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711181339.6A
Other languages
Chinese (zh)
Other versions
CN107832195A (en
Inventor
宋海曦
安冬
汤东波
孔莹
赖少光
齐玉伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201711181339.6A priority Critical patent/CN107832195B/en
Publication of CN107832195A publication Critical patent/CN107832195A/en
Application granted granted Critical
Publication of CN107832195B publication Critical patent/CN107832195B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0605Improving or facilitating administration, e.g. storage management by facilitating the interaction with a user or administrator
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0653Monitoring storage devices or systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a host environment management method, a device and a system, wherein the host environment management method comprises the following steps: receiving a host environment information query instruction input by a Web front end; judging whether the first time is the same as the data generation time stored in the database or not, and searching corresponding host environment information from the database according to the host environment information query instruction when the first time is the same as the data generation time; when the first time is different from the data generation time, judging whether the first time is the current time, and if so, sending a host environment information query instruction to the host; receiving corresponding host environment information acquired by a host according to the host environment information query instruction; returning the host environment information to the Web front end for displaying; the database stores a plurality of host environment information. By adopting the scheme, the use condition of the storage space of a plurality of host environments can be managed at one time, and the management efficiency is improved; the space use condition can be automatically fed back to the manager.

Description

Host environment management method, device and system
Technical Field
The present invention relates to the field of host environment management technologies, and in particular, to a host environment management method, device, and system.
Background
Currently, IBM mainframe mainly uses an ISMF (Interactive Storage Management Facility) in terms of Management of Storage space. The tool can display space use conditions such as storage group, volume and the like of a specific environment in detail. However, when there are many host environments that need to be maintained, especially when the host environments are distributed on different LPARs (logical partitions, that is, a single server is divided into multiple logical servers, and independent applications are run), the use of the ISMF tool has the following disadvantages: (1) only one host environment or the use condition of the storage space under one LPAR can be managed at a time, and managers need to log in each LPAR and manually search the use condition of the storage space of each environment, so that the time and the labor are consumed, and the management efficiency is insufficient; (2) the space service condition can not be automatically fed back to the manager, and the problem can only be passively waited for.
Disclosure of Invention
The embodiment of the invention provides a host environment management method, a device and a system, which can receive an instruction for inquiring a plurality of host environments at one time through a Web front end, thereby managing the use conditions of storage spaces of the plurality of host environments at one time and improving the management efficiency; and setting an alarm threshold value, so that the space use condition can be automatically fed back to a manager.
The host environment management method provided by the embodiment of the invention comprises the following steps:
receiving a host environment information query instruction input by a Web front end; the host environment information query instruction comprises a host environment identifier and a first time, and further comprises a Storage group identifier corresponding to the host environment and/or a VOLUME identifier corresponding to the Storage group;
judging whether the first time is the same as the data generation time stored in a database or not, and searching corresponding host environment information from the database according to the host environment information query instruction when the first time is the same as the data generation time; when the first time is different from the data generation time, judging whether the first time is the current time, if so, sending the host environment information query instruction to a host;
receiving corresponding host environment information acquired by the host according to the host environment information query instruction;
returning the host environment information to a Web front end for displaying;
wherein, a plurality of host computer environment information are stored in the database, and the host computer environment information comprises: and the Storage group usage data corresponding to the host environment and/or the VOLUME usage data corresponding to the Storage group.
The host environment management device provided by the embodiment of the invention comprises:
the first receiving and sending module is used for receiving a host environment information query instruction input by a Web front end; the host environment information query instruction comprises a host environment identifier and a first time, and further comprises a Storage group identifier corresponding to the host environment and/or a VOLUME identifier corresponding to the Storage group;
the processing module is used for judging whether the first time is the same as the data generation time stored in the database or not, and searching corresponding host environment information from the database according to the host environment information query instruction when the first time is the same as the data generation time; when the first time is different from the data generation time, judging whether the first time is the current time;
the second receiving and sending module is used for sending the host environment information query instruction to the host when the first time is the current time; receiving corresponding host environment information acquired by the host according to the host environment information query instruction;
the first receiving and sending module is further configured to: returning the host environment information to a Web front end for displaying;
wherein, a plurality of host computer environment information are stored in the database, and the host computer environment information comprises: and the Storage group usage data corresponding to the host environment and/or the VOLUME usage data corresponding to the Storage group.
The host environment management system provided by the embodiment of the invention comprises: a Web front end, a host environment management device and a host as described above.
In the embodiment of the invention, the Web front end can receive the instruction of inquiring a plurality of host environments at one time and acquire the environment information of the plurality of hosts from the database or the host according to the environment information inquiry instruction of the host, so that the use conditions of the storage space of the plurality of host environments can be managed at one time and the management efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a block diagram of a host environment management apparatus according to an embodiment of the present invention;
FIG. 2 is a flow chart of data query provided by an embodiment of the present invention;
FIG. 3 is a flow chart of mail sending provided by an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an automatic file cleaning method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a communication between a Web front end and a host according to an embodiment of the present invention;
FIG. 6 is a flowchart of a method for managing a host environment according to an embodiment of the present invention;
FIG. 7 is a block diagram of a host environment management system according to an embodiment of the present invention;
fig. 8 is a diagram of an actual host environment management system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In specific implementation, in an embodiment of the present invention, a host environment management apparatus is provided, as shown in fig. 1, the apparatus includes:
the first receiving and sending module 101 is configured to receive a host environment information query instruction input by a Web front end; the host environment information query instruction comprises a host environment identifier, a first time (which is the time of the host information to be queried on which day input), and a Storage group identifier corresponding to the host environment and/or a VOLUME identifier corresponding to the Storage group;
the processing module 102 is configured to determine whether the first time is the same as data generation time stored in a database, and search, when the first time is the same as the data generation time, corresponding host environment information from the database according to the host environment information query instruction; when the first time is different from the data generation time, judging whether the first time is the current time;
a second receiving and sending module 103, configured to send the host environment information query instruction to the host when the first time is the current time; receiving corresponding host environment information acquired by the host according to the host environment information query instruction;
the first receiving and sending module 101 is further configured to: returning the host environment information to a Web front end for displaying; when the first time is not the current time, returning null data to the Web front end;
wherein, a plurality of host environment information are stored in the database, and the host environment information includes: and the Storage group usage data corresponding to the host environment and/or the VOLUME usage data corresponding to the Storage group.
In specific implementation, the host environment management device comprises a database, wherein various data tables shown in table 1 are stored in the database, and the data storage time unit is minimum day.
TABLE 1
Figure BDA0001479229640000041
As can be seen from the flow shown in fig. 2, in the embodiment of the present invention, after the first receiving and sending module 101 of the host environment management apparatus receives the query request input through the Web front end (front end page), the processing module 102 first determines whether the first time is the data generation time of the database (that is, whether the first time is the query latest data), and when the first time is the data generation time of the database (that is, the first time is not the query latest data but the query request for the existing data), searches for the existing data in the database, and if the first time is the data generation time of the database (that is, the query latest data is not the query latest data), the existing data is extracted and encapsulated into the JSON format and is sent to the Web front end through the. If the database does not exist, the processing module 102 will determine whether the first time is the current day, if not, return no data (null data) to the Web front end through the first receiving and sending module 101, and if so (i.e., the latest data query request), initiate a query request to the host through the second receiving and sending module 103. After receiving the request, the host automatically performs the query and returns the result (the latest query data) to the host environment management device. The host environment management device takes the latest data and then stores the latest data into the database, and then transmits the latest data to the Web front end through the first receiving and transmitting module 101.
The interaction between the host environment management device and the host is not real-time communication, and data can not be returned immediately when the query of the day is carried out. Therefore, in the host environment management device, a long hanging program automatically initiates a query request to the host at a certain time point every day and stores the data in the database. The time point is selected before the working point, and can be checked in normal working time.
In specific implementation, the processing module 102 is specifically configured to:
searching corresponding host environment information from a database according to the host environment information query instruction in the following way:
according to the host environment information query instruction, acquiring corresponding Storage group use data and/or VOLUME use data corresponding to the Storage group from a host environment and Storage group corresponding table, a Storage group and VOLUME corresponding table, a Storage group space use condition table and a VOLUME space use condition table in a database;
as can be seen from table 1, the table of correspondence between the host environment and the Storage group includes a plurality of host environment identifiers and a plurality of Storage group identifiers corresponding to each host environment; the Storage group and VOLUME corresponding table comprises a plurality of Storage group identifications and a plurality of VOLUME identifications corresponding to each Storage group; the Storage group space usage table comprises a Storage group identifier, a first total space size, a first used size, a first space usage rate and a first space unit; the VOLUME space usage table includes a VOLUME identifier, a second total space size, a second used size, a second space usage rate, and a second space unit.
In specific implementation, as can be seen from table 1, the Storage group space usage table further includes an alarm usage rate;
therefore, the host environment management apparatus further includes: and the alarm sending module 104 is used for comparing the Storage group usage data corresponding to the host environment with a first alarm usage rate, and when the Storage group usage data corresponding to the host environment exceeds the alarm usage rate, generating alarm information and sending the alarm information to an environment manager. In addition, the VOLUME use data corresponding to the Storage group can be compared with the corresponding alarm utilization rate to generate alarm information.
The alarm sending module 104 is specifically configured to:
sending alarm information to an environment administrator as follows:
determining the contact information of a corresponding host environment manager from a host environment information table and a host environment manager information table of a database according to Storage group use data corresponding to the host environment;
sending the alarm information to a corresponding environment manager according to the corresponding contact information;
the host environment information table comprises a plurality of host environment identifications and a host environment administrator identification corresponding to each host environment identification; the host environment manager information table comprises a plurality of host environment manager identifications and corresponding contact information.
The corresponding contact information comprises an email address or a contact telephone;
the alarm sending module 104 is specifically configured to:
sending the alarm information to a corresponding environment manager as follows:
and sending the alarm information to a corresponding environment manager in an email form according to the email address.
Or sending the alarm information to a corresponding environment manager in a short message form according to the contact telephone.
Specifically, as shown in fig. 3, the host environment management apparatus may have a long-pending program to fully check the usage of the environment information, the Storage group, and the VOLUME in the database at intervals, when the usage rate exceeds the alarm threshold, the host environment management apparatus searches the detailed information of the Storage group or the VOLUME and the environment administrator information thereof first, and the alarm sending module 104 receives the environment information, the alarm information, and the environment administrator information, splices the information and the preset content to form a standard mail format, and calls the Notes client to send the mail to the administrator through the third-party JAR package domino.
Of course, before sending mail, it is necessary to configure the IBM Lotus Notes server and install the Notes client.
And alarm information can be sent by a short message of a mobile phone.
In specific implementation, before the first receiving and sending module 101 sends the host environment information to the Web front end for display, the processing module 102 is further configured to: converting the host environment information into a JSON format;
the first receiving and sending module 101 is specifically configured to: and returning the host environment information in the JSON format to the Web front end for displaying.
The processing module 102 is further configured to: performing charting processing on the host environment information in the JSON format to obtain host environment information in a chart form;
the first receiving and sending module 101 is specifically configured to: and returning the host environment information in the form of the chart to the Web front end for displaying.
Specifically, two javascript graph libraries which are now popular are used: echarts and jQWidgets, processing JSON data into a required chart for displaying.
In specific implementation, when the Storage space is managed by using the ismf (interactive Storage Management facility), the following disadvantages are included: when in use, only the current environment or the use condition of the storage space under the LPAR can be displayed, and the files cannot be automatically compressed (free) or the specific files cannot be deleted, so that the function is insufficient.
Based on this, the first receiving and sending module 101 in the host environment management apparatus is further configured to:
receiving a host environment cleaning instruction input by a Web front end;
the processing module 102 is further configured to: judging whether the host environment cleaning instruction meets a preset requirement or not;
the first receiving and sending module 101 is further configured to: when the host environment cleaning instruction does not meet the preset requirement, returning prompt information to the Web front end;
the second receiving and sending module 103 is further configured to: when the host environment cleaning instruction meets a preset requirement, sending the host environment cleaning instruction to a host; and receiving a result which is returned by the host and correspondingly processes the file according to the host environment cleaning instruction, and storing the result in a database.
Specifically, the host environment cleaning instruction comprises a file deleting instruction and/or a file compressing instruction, wherein the file compressing instruction comprises a full environment file compressing instruction and/or a non-full environment file compressing instruction;
the processing module 102 is specifically configured to:
judging whether the host environment cleaning instruction meets the preset requirement or not according to the following modes:
judging whether a file deleting instruction identifier and a file compressing instruction identifier exist in the host environment cleaning instruction, wherein when the file deleting instruction identifier and the file compressing instruction identifier do not exist in the host environment cleaning instruction, the host environment cleaning instruction does not meet a preset requirement, and when the file deleting instruction identifier and/or the file compressing instruction identifier exist in the host environment cleaning instruction, the host environment cleaning instruction meets the preset requirement;
the second receiving and sending module 103 is specifically configured to:
receiving a result of deleting and/or compressing the file according to the host environment cleaning instruction and a preset file cleaning table returned by the host, wherein the result comprises a deleted file table and/or a compressed file table,
the deleted file table comprises a deleted file identifier, a host environment identifier, the execution time of deletion operation and a deletion result; the compressed file table includes the identifier of the compressed file, the identifier of the environment of the host to which the compressed file belongs, the execution time of the compression operation, and the compression result (shown in table 1).
Specifically, firstly, the administrator logs in to the host, and a "deletable file list" is configured on each Lpar. This list must be a VSAM file and must be consistent in name across Lpar.
In addition, in order to implement the incremental file deletion and space compression functions, a processing flag bit needs to be added to the configuration file, as follows:
D DEVCCBS.AUDF.LOG(A0971425)
D DEVCCBS.DUMP.BANCS.*
D DEVCCBS.BBCQ.ERRFILE.ATMCM001
F DEVCCBS.BTCH.LOAD
F DEVCCBS.ONL.LOAD
note: the 'D' and 'F' in the first column are the process flag bits. 'D' represents deletion, 'F' represents space release; file filenames in the second column can be replaced with's fuzzy, but only one asterisk can be used; the file name in the space release must be written to all, otherwise, the file name cannot be identified.
Then, the host end completes the file deletion or file compression operation. The specific steps are shown in fig. 4:
when a host receives a host environment cleaning instruction, firstly judging whether a file is to be compressed or cleaned (namely, whether the instruction comprises D or F), when the file is to be cleaned, cleaning related contents of a configuration file according to a deletable file list, when the file is to be compressed, judging whether the file is to be compressed in a full environment, if so, compressing the full environment file, and if not, compressing the related file in the configuration file.
In specific implementation, from the executive program, the host environment management device logs in the host through an ftp command, generates a query JCL and acquires result information after submission; and the host environment management device processes and stores the result information to the mysql server. Calling a host TSO command DELETE to DELETE files preset in a 'deletable file list'; and calling a host TSO (remote site object) to command FREE (FREE space object) to release the space of the file with the lower space utilization rate.
Specifically, the host environment management device performs data interaction with the host in the following manner, as shown in fig. 5:
1. the user clicks and executes the JCL job (the output result is bound to an output1 file) (the JCL job is input by a browser, and the browser is a Web front end);
2. inserting JCL operation information into a WEB database by a WEB server (namely a host environment management device) and setting the state as being executed;
3. the WEB server calls JCL operation on the host through the FTP;
4. after the JCL is executed, the host sends the result FTP to an output1 file of a WEB server through a reporting program;
5. a file monitoring program of the WEB server finds that an output1 file is changed, and updates JCL operation states and results corresponding to the WEB database after analyzing an output 1;
6. and polling by the browser to acquire the JCL job execution result from the WEB database.
The web background sends an execution job path and parameter ftp to the host, the host end is provided with a main calling program, and the main calling program is responsible for calling the job according to the sent job path and parameter and then returning information according to the execution result of the job. The called operation can be uniformly managed through the main calling program, the front end only needs to call the main calling program, and the specific operation information is transmitted through the parameters, so that the transmission program is changed into the transmission parameters, and the flow is saved; and the common FTP function is separated, so that the program structure is optimized, and the ABEND problem in the execution process is solved.
Based on the same inventive concept, the embodiment of the present invention further provides a host environment management method, as described in the following embodiments. Because the principle of the host environment management method for solving the problem is similar to that of the host environment management device, the implementation of the host environment management method can be referred to the implementation of the host environment management device, and repeated details are not repeated.
Fig. 6 is a flowchart of a host environment management method according to an embodiment of the present invention, as shown in fig. 6, including:
step 601: receiving a host environment information query instruction input by a Web front end; the host environment information query instruction comprises a host environment identifier and a first time, and further comprises a Storage group identifier corresponding to the host environment and/or a VOLUME identifier corresponding to the Storage group;
step 602: judging whether the first time is the same as the data generation time stored in a database or not, and searching corresponding host environment information from the database according to the host environment information query instruction when the first time is the same as the data generation time; when the first time is different from the data generation time, judging whether the first time is the current time, if so, sending the host environment information query instruction to a host;
step 603: receiving corresponding host environment information acquired by the host according to the host environment information query instruction;
step 604: returning the host environment information to a Web front end for displaying;
wherein, a plurality of host computer environment information are stored in the database, and the host computer environment information comprises: and the Storage group usage data corresponding to the host environment and/or the VOLUME usage data corresponding to the Storage group.
In specific implementation, the method searches for corresponding host environment information from a database according to the host environment information query instruction (step 602), which includes:
according to the host environment information query instruction, acquiring corresponding Storage group use data and/or VOLUME use data corresponding to the Storage group from a host environment and Storage group corresponding table, a Storage group and VOLUME corresponding table, a Storage group space use condition table and a VOLUME space use condition table in a database;
the host environment and Storage group corresponding table comprises a plurality of host environment identifications and a plurality of Storage group identifications corresponding to each host environment; the Storage group and VOLUME corresponding table comprises a plurality of Storage group identifications and a plurality of VOLUME identifications corresponding to each Storage group; the Storage group space usage table comprises a Storage group identifier, a first total space size, a first used size, a first space usage rate and a first space unit; the VOLUME space usage table includes a VOLUME identifier, a second total space size, a second used size, a second space usage rate, and a second space unit.
In specific implementation, the Storage group space usage table further comprises an alarm usage rate;
further comprising: comparing the Storage group using data corresponding to the host environment with a first alarm utilization rate, generating alarm information when the Storage group using data corresponding to the host environment exceeds the alarm utilization rate, and sending the alarm information to an environment manager.
During specific implementation, alarm information is sent to an administrator, and the method comprises the following steps:
determining the contact information of a corresponding host environment manager from a host environment information table and a host environment manager information table of a database according to Storage group use data corresponding to the host environment;
sending the alarm information to a corresponding environment manager according to the corresponding contact information;
the host environment information table comprises a plurality of host environment identifications and a host environment manager identification corresponding to each host environment identification; the host environment manager information table comprises a plurality of host environment manager identifications and corresponding contact information.
In specific implementation, the corresponding contact information comprises an email address or a contact telephone;
according to the corresponding contact information, the alarm information is sent to a corresponding environment manager, and the method comprises the following steps:
and sending the alarm information to a corresponding environment manager in an email form according to the email address.
Or sending the alarm information to a corresponding environment manager in a short message form according to the contact telephone.
In specific implementation, returning the host environment information to the Web front end for display includes:
and converting the host environment information into a JSON format, and returning the host environment information in the JSON format to the Web front end for displaying.
In specific implementation, returning the host environment information to the Web front end for display, further comprising:
and performing charting processing on the host environment information in the JSON format to obtain the host environment information in the chart form, and returning the host environment information in the chart form to the Web front end for displaying.
When the concrete implementation, still include:
receiving a host environment cleaning instruction input by a Web front end;
judging whether the host environment cleaning instruction meets a preset requirement or not, returning a prompt message to a Web front end when the host environment cleaning instruction does not meet the preset requirement, and sending the host environment cleaning instruction to a host when the host environment cleaning instruction meets the preset requirement;
and receiving a result which is returned by the host and correspondingly processes the file according to the host environment cleaning instruction, and storing the result in a database.
In specific implementation, the host environment cleaning instruction comprises a file deleting instruction and/or a file compressing instruction, wherein the file compressing instruction comprises a full environment file compressing instruction and/or a non-full environment file compressing instruction;
judging whether the host environment cleaning instruction meets the preset requirement or not, including:
judging whether a file deleting instruction identifier and a file compressing instruction identifier exist in the host environment cleaning instruction, wherein when the file deleting instruction identifier and the file compressing instruction identifier do not exist in the host environment cleaning instruction, the host environment cleaning instruction does not meet a preset requirement, and when the file deleting instruction identifier and/or the file compressing instruction identifier exist in the host environment cleaning instruction, the host environment cleaning instruction meets the preset requirement;
receiving a result of the corresponding processing of the file according to the host environment cleaning instruction returned by the host, wherein the result comprises:
receiving a result of deleting and/or compressing the file according to the host environment cleaning instruction and a preset file cleaning table returned by the host, wherein the result comprises a deleted file table and/or a compressed file table,
the deleted file table comprises a deleted file identifier, a host environment identifier, the execution time of deletion operation and a deletion result;
the compressed file table comprises a compressed file identifier, an identifier of a host environment to which the compressed file belongs, execution time of compression operation and a compression result.
Based on the same inventive concept, the embodiment of the present invention further provides a host environment management system, as shown in fig. 7. The hosting environment management system includes a Web front end 701, a hosting environment management apparatus 702 as described above, and a host 703.
Specific system relationship diagram as shown in fig. 8, the host environment management system in fig. 8 is in a core position in the whole system. And performing information interaction with a host system downwards through an ftp command, calling a database and a mail module in parallel, and displaying the environment information upwards in a graphical mode.
In addition, when the Storage space is managed by using the ismf (interactive Storage Management facility), the following disadvantages are included: only the IBM host z/OS system display is provided, and the interface is not friendly and beautiful. The host environment management system provided by the invention can well solve the problem.
In summary, the host environment management method, device and system provided by the invention make the environment maintenance more intuitive and faster by using the interaction mode of the X86web front end and the host background under the multi-LPAR and multi-environment conditions and by realizing the following functions.
(1) The Web front end displays the storage group of each environment, the usage of the VOLUME space of the VOLUME (capacity and VOLUME) and each environment in real time;
(2) setting an alarm threshold value, and automatically sending a mail to a manager when the environmental space is insufficient;
(3) maintaining common cleanable files in the environment into parameters in advance, and setting automatic cleaning options to realize automatic cleaning of the common cleanable files;
(4) the file space is released automatically (free).
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes may be made to the embodiment of the present invention by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (19)

1. A host environment management method, comprising:
receiving a host environment information query instruction input by a Web front end; the host environment information query instruction comprises a host environment identifier and a first time, and further comprises a Storage group identifier corresponding to the host environment and/or a VOLUME identifier corresponding to the Storage group;
judging whether the first time is the same as the data generation time stored in a database or not, and searching corresponding host environment information from the database according to the host environment information query instruction when the first time is the same as the data generation time; when the first time is different from the data generation time, judging whether the first time is the current time, if so, sending the host environment information query instruction to a host;
receiving corresponding host environment information acquired by the host according to the host environment information query instruction;
returning the host environment information to a Web front end for displaying;
wherein, a plurality of host computer environment information are stored in the database, and the host computer environment information comprises: and the Storage group usage data corresponding to the host environment and/or the VOLUME usage data corresponding to the Storage group.
2. The hosting environment management method of claim 1, wherein searching the corresponding hosting environment information from the database according to the hosting environment information query command comprises:
according to the host environment information query instruction, acquiring corresponding Storage group use data and/or VOLUME use data corresponding to the Storage group from a host environment and Storage group corresponding table, a Storage group and VOLUME corresponding table, a Storage group space use condition table and a VOLUME space use condition table in a database;
the host environment and Storage group corresponding table comprises a plurality of host environment identifications and a plurality of Storage group identifications corresponding to each host environment; the Storage group and VOLUME corresponding table comprises a plurality of Storage group identifications and a plurality of VOLUME identifications corresponding to each Storage group; the Storage group space usage table comprises a Storage group identifier, a first total space size, a first used size, a first space usage rate and a first space unit; the VOLUME space usage table includes a VOLUME identifier, a second total space size, a second used size, a second space usage rate, and a second space unit.
3. The host environment management method of claim 2, wherein the Storage group space usage table further comprises alarm usage;
further comprising:
comparing the Storage group using data corresponding to the host environment with a first alarm utilization rate, generating alarm information when the Storage group using data corresponding to the host environment exceeds the alarm utilization rate, and sending the alarm information to an environment manager.
4. The host environment management method of claim 3, wherein sending alarm information to an administrator comprises:
determining the contact information of a corresponding host environment manager from a host environment information table and a host environment manager information table of a database according to Storage group use data corresponding to the host environment;
sending the alarm information to a corresponding environment manager according to the corresponding contact information;
the host environment information table comprises a plurality of host environment identifications and a host environment manager identification corresponding to each host environment identification; the host environment manager information table comprises a plurality of host environment manager identifications and corresponding contact information.
5. The hosting environment management method of claim 4, wherein the corresponding contact information comprises a mail address or a contact phone;
according to the corresponding contact information, the alarm information is sent to a corresponding environment manager, and the method comprises the following steps:
sending the alarm information to a corresponding environment manager in a mail form according to the mail address;
or sending the alarm information to a corresponding environment manager in a short message form according to the contact telephone.
6. The hosting environment management method of claim 1, wherein returning the hosting environment information to a Web front end for presentation comprises:
and converting the host environment information into a JSON format, and returning the host environment information in the JSON format to the Web front end for displaying.
7. The hosting environment management method of claim 6, wherein returning the hosting environment information to a Web front end for presentation further comprises:
and performing charting processing on the host environment information in the JSON format to obtain the host environment information in the chart form, and returning the host environment information in the chart form to the Web front end for displaying.
8. The hosting environment management method of claim 1, further comprising:
receiving a host environment cleaning instruction input by a Web front end;
judging whether the host environment cleaning instruction meets a preset requirement or not, returning a prompt message to a Web front end when the host environment cleaning instruction does not meet the preset requirement, and sending the host environment cleaning instruction to a host when the host environment cleaning instruction meets the preset requirement;
and receiving a result which is returned by the host and correspondingly processes the file according to the host environment cleaning instruction, and storing the result in a database.
9. The host environment management method according to claim 8, wherein the host environment cleanup instruction comprises a file delete instruction and/or a file compression instruction, wherein the file compression instruction comprises a full environment file compression instruction and/or a non-full environment file compression instruction;
judging whether the host environment cleaning instruction meets the preset requirement or not, including:
judging whether a file deleting instruction identifier and a file compressing instruction identifier exist in the host environment cleaning instruction, wherein when the file deleting instruction identifier and the file compressing instruction identifier do not exist in the host environment cleaning instruction, the host environment cleaning instruction does not meet a preset requirement, and when the file deleting instruction identifier and/or the file compressing instruction identifier exist in the host environment cleaning instruction, the host environment cleaning instruction meets the preset requirement;
receiving a result of the corresponding processing of the file according to the host environment cleaning instruction returned by the host, wherein the result comprises:
receiving a result of deleting and/or compressing the file according to the host environment cleaning instruction and a preset file cleaning table returned by the host, wherein the result comprises a deleted file table and/or a compressed file table,
the deleted file table comprises a deleted file identifier, a host environment identifier, the execution time of deletion operation and a deletion result;
the compressed file table comprises a compressed file identifier, an identifier of a host environment to which the compressed file belongs, execution time of compression operation and a compression result.
10. A host environment management apparatus, comprising:
the first receiving and sending module is used for receiving a host environment information query instruction input by a Web front end; the host environment information query instruction comprises a host environment identifier and a first time, and further comprises a Storage group identifier corresponding to the host environment and/or a VOLUME identifier corresponding to the Storage group;
the processing module is used for judging whether the first time is the same as the data generation time stored in the database or not, and searching corresponding host environment information from the database according to the host environment information query instruction when the first time is the same as the data generation time; when the first time is different from the data generation time, judging whether the first time is the current time;
the second receiving and sending module is used for sending the host environment information query instruction to the host when the first time is the current time; receiving corresponding host environment information acquired by the host according to the host environment information query instruction;
the first receiving and sending module is further configured to: returning the host environment information to a Web front end for displaying;
wherein, a plurality of host computer environment information are stored in the database, and the host computer environment information comprises: and the Storage group usage data corresponding to the host environment and/or the VOLUME usage data corresponding to the Storage group.
11. The host environment management apparatus of claim 10, wherein the processing module is specifically configured to:
searching corresponding host environment information from a database according to the host environment information query instruction in the following way:
according to the host environment information query instruction, acquiring corresponding Storage group use data and/or VOLUME use data corresponding to the Storage group from a host environment and Storage group corresponding table, a Storage group and VOLUME corresponding table, a Storage group space use condition table and a VOLUME space use condition table in a database;
the host environment and Storage group corresponding table comprises a plurality of host environment identifications and a plurality of Storage group identifications corresponding to each host environment; the Storage group and VOLUME corresponding table comprises a plurality of Storage group identifications and a plurality of VOLUME identifications corresponding to each Storage group; the Storage group space usage table comprises a Storage group identifier, a first total space size, a first used size, a first space usage rate and a first space unit; the VOLUME space usage table includes a VOLUME identifier, a second total space size, a second used size, a second space usage rate, and a second space unit.
12. The host environment management apparatus of claim 11, wherein the Storage group space usage table further comprises alarm usage;
further comprising: and the alarm sending module is used for comparing the Storage group using data corresponding to the host environment with a first alarm utilization rate, and when the Storage group using data corresponding to the host environment exceeds the alarm utilization rate, generating alarm information and sending the alarm information to an environment manager.
13. The host environment management apparatus of claim 12, wherein the alarm sending module is specifically configured to:
sending alarm information to an environment administrator as follows:
determining the contact information of a corresponding host environment manager from a host environment information table and a host environment manager information table of a database according to Storage group use data corresponding to the host environment;
sending the alarm information to a corresponding environment manager according to the corresponding contact information;
the host environment information table comprises a plurality of host environment identifications and a host environment administrator identification corresponding to each host environment identification; the host environment manager information table comprises a plurality of host environment manager identifications and corresponding contact information.
14. The host environment management apparatus of claim 13, wherein the corresponding contact information comprises a mail address or a contact phone;
the alarm sending module is specifically configured to:
sending the alarm information to a corresponding environment manager as follows:
sending the alarm information to a corresponding environment manager in a mail form according to the mail address;
or sending the alarm information to a corresponding environment manager in a short message form according to the contact telephone.
15. The host environment management apparatus of claim 10, wherein the processing module is further to: converting the host environment information into a JSON format;
the first receiving and sending module is specifically configured to: and returning the host environment information in the JSON format to the Web front end for displaying.
16. The host environment management apparatus of claim 15, wherein the processing module is further to: performing charting processing on the host environment information in the JSON format to obtain host environment information in a chart form;
the first receiving and sending module is specifically configured to: and returning the host environment information in the form of the chart to the Web front end for displaying.
17. The host environment management apparatus of claim 10, wherein the first receive-and-send module is further to:
receiving a host environment cleaning instruction input by a Web front end;
the processing module is further configured to: judging whether the host environment cleaning instruction meets a preset requirement or not;
the first receiving and sending module is further configured to: when the host environment cleaning instruction does not meet the preset requirement, returning prompt information to the Web front end;
the second receiving and sending module is further configured to: when the host environment cleaning instruction meets a preset requirement, sending the host environment cleaning instruction to a host; and receiving a result which is returned by the host and correspondingly processes the file according to the host environment cleaning instruction, and storing the result in a database.
18. The host environment management device according to claim 17, wherein the host environment cleanup instruction comprises a file delete instruction and/or a file compress instruction, wherein the file compress instruction comprises a full environment file compress instruction and/or a non-full environment file compress instruction;
the processing module is specifically configured to:
judging whether the host environment cleaning instruction meets the preset requirement or not according to the following modes:
judging whether a file deleting instruction identifier and a file compressing instruction identifier exist in the host environment cleaning instruction, wherein when the file deleting instruction identifier and the file compressing instruction identifier do not exist in the host environment cleaning instruction, the host environment cleaning instruction does not meet a preset requirement, and when the file deleting instruction identifier and/or the file compressing instruction identifier exist in the host environment cleaning instruction, the host environment cleaning instruction meets the preset requirement;
the second receiving and sending module is specifically configured to:
receiving a result of deleting and/or compressing the file according to the host environment cleaning instruction and a preset file cleaning table returned by the host, wherein the result comprises a deleted file table and/or a compressed file table,
the deleted file table comprises a deleted file identifier, a host environment identifier, the execution time of deletion operation and a deletion result;
the compressed file table comprises a compressed file identifier, an identifier of a host environment to which the compressed file belongs, execution time of compression operation and a compression result.
19. A host environment management system, comprising: web front end, host environment management apparatus, host according to any of claims 10 to 18.
CN201711181339.6A 2017-11-23 2017-11-23 Host environment management method, device and system Active CN107832195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711181339.6A CN107832195B (en) 2017-11-23 2017-11-23 Host environment management method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711181339.6A CN107832195B (en) 2017-11-23 2017-11-23 Host environment management method, device and system

Publications (2)

Publication Number Publication Date
CN107832195A CN107832195A (en) 2018-03-23
CN107832195B true CN107832195B (en) 2021-03-23

Family

ID=61652396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711181339.6A Active CN107832195B (en) 2017-11-23 2017-11-23 Host environment management method, device and system

Country Status (1)

Country Link
CN (1) CN107832195B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486043A (en) * 2021-06-07 2021-10-08 广发银行股份有限公司 Large machine operation and maintenance platform performance index quasi-real-time monitoring method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756257A (en) * 2004-09-30 2006-04-05 北京航空航天大学 Host performance collection proxy in large-scale network
US8230448B2 (en) * 2006-05-09 2012-07-24 Netiq Corporation Methods, systems and computer program products for web service interaction with a resource management system
CN105989048A (en) * 2015-02-05 2016-10-05 浙江大华技术股份有限公司 Data record processing method, equipment and system
CN106776689A (en) * 2016-11-10 2017-05-31 郑州云海信息技术有限公司 A kind of host information querying method, device and main frame
CN106886369A (en) * 2017-01-22 2017-06-23 武汉噢易云计算股份有限公司 A kind of cloud hard disk management method and system based on OpenStack cloud platforms

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756257A (en) * 2004-09-30 2006-04-05 北京航空航天大学 Host performance collection proxy in large-scale network
US8230448B2 (en) * 2006-05-09 2012-07-24 Netiq Corporation Methods, systems and computer program products for web service interaction with a resource management system
CN105989048A (en) * 2015-02-05 2016-10-05 浙江大华技术股份有限公司 Data record processing method, equipment and system
CN106776689A (en) * 2016-11-10 2017-05-31 郑州云海信息技术有限公司 A kind of host information querying method, device and main frame
CN106886369A (en) * 2017-01-22 2017-06-23 武汉噢易云计算股份有限公司 A kind of cloud hard disk management method and system based on OpenStack cloud platforms

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
主动存储系统结构;靳超,郑纬民,张悠慧;《计算机学报》;20050630;第28卷(第6期);第1013页-第1020页 *

Also Published As

Publication number Publication date
CN107832195A (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN103841170B (en) A kind of cloud storage method and server
CN110704872B (en) Data query method and device, electronic equipment and computer readable storage medium
CN110784377A (en) Method for uniformly managing cloud monitoring data in multi-cloud environment
CN112685499A (en) Method, device and equipment for synchronizing process data of work service flow
CN110069406B (en) Automatic triggering TPC-DS test method and system
CN107832195B (en) Host environment management method, device and system
CN110661851A (en) Data exchange method and device
US10191844B2 (en) Automatic garbage collection thrashing monitoring
US9317355B2 (en) Dynamically determining an external systems management application to report system errors
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN112433757A (en) Method and device for determining interface calling relationship
CN109582487B (en) Method and apparatus for transmitting information
CN109324892B (en) Distributed management method, distributed management system and device
CN110888790A (en) Log management method and device, electronic equipment and storage medium
CN114090268B (en) Container management method and container management system
CN110753090A (en) Task execution method and device of server cluster, computer equipment and storage medium
CN111698109A (en) Method and device for monitoring log
CN110688201B (en) Log management method and related equipment
CN110874300A (en) Method and device for monitoring equipment
CN110134547B (en) Middleware-based repeated data deleting method and related device
CN110389966B (en) Information processing method and device
US10949232B2 (en) Managing virtualized computing resources in a cloud computing environment
CN113141236A (en) Message processing method and device
CN109597774B (en) Method, device and equipment for controlling functions of storage equipment
US8214846B1 (en) Method and system for threshold management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant