CN1731737A - Realization method for operating notify.log - Google Patents

Realization method for operating notify.log Download PDF

Info

Publication number
CN1731737A
CN1731737A CN 200410080197 CN200410080197A CN1731737A CN 1731737 A CN1731737 A CN 1731737A CN 200410080197 CN200410080197 CN 200410080197 CN 200410080197 A CN200410080197 A CN 200410080197A CN 1731737 A CN1731737 A CN 1731737A
Authority
CN
China
Prior art keywords
notice
daily record
record
log
notice daily
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.)
Granted
Application number
CN 200410080197
Other languages
Chinese (zh)
Other versions
CN100550762C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100801970A priority Critical patent/CN100550762C/en
Priority to PCT/CN2005/001212 priority patent/WO2006015536A1/en
Publication of CN1731737A publication Critical patent/CN1731737A/en
Application granted granted Critical
Publication of CN100550762C publication Critical patent/CN100550762C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention discloses a method for actualizing the operation to order log, used in communication net and the management of managing system to managed net order log. 1 The method is characterized in: recording and storing the order log of managed net in the storage, and using quoting device specially matched to this storage, individually with its quoting conditions to correspondingly representing different logs, the managed net mapping the operation to order logs into the operation to corresponding quoting device of storage. Adopting the method can meet the need of operation of managing system to managed net order logs.

Description

A kind of implementation method that daily record operates to notice
Technical field
The present invention relates to the log management technology, relate in particular to NMS in a kind of third generation (3G) mobile communications network and unify between the managed network by northbound interface (Itf-N) implementation method that daily record is operated to notice.
Background technology
Current, polytype core net and Access Network and deposit in the 3-G (Generation Three mobile communication system), equipment in network is many, and agreement is many, interface is many.Along with technology improves constantly, equipment will be brought in constant renewal in the replacement simultaneously, and network configuration can constantly change.Therefore, how supervising the network seems particularly important thereby maximally utilise Internet resources.
Current, third generation collaborative project tissue (3GPP) the 5th system architecture group (SA5) has proposed a kind of network management architecture, and referring to Figure 1A and Figure 1B, this system comprises network management system 11 and managed network 12.Wherein, network management system mainly comprises integrated reference point (IRP, Integration Reference Point) manager 13, and managed networks has two kinds of forms, can mainly comprise IRP Agent device (Agent) 14 and managed element 15, referring to Figure 1A; Also IRP Agent device 14 can be placed managed element 15 inside as the part of managed element, referring to Figure 1B.Interface between IRP manager 13 and the IRP Agent device 14 is northbound interface (Itf-N).Described IRP Agent device 14 is used for directly managing managed element 15, therefore also can be called NE Explorer.IRP manager 13 be used for to IRP Agent device 14 send administration orders and receive that IRP Agent device 14 sends about the network internal event report, i.e. notice; IRP Agent device 14 is used for direct managed network element, receives administration order that IRP manager 13 sends and to the response of IRP manager 13 returns, also can initiatively give notice to IRP manager 13 when needed.
Managed network 12 can initiatively generate the notice about the managed network internal event, and preserves the log recording of these notices.The log record of these notices abbreviates the notice log record as, and each notice log record comprises the information content of this notice, the time that is credited to of this notice log record and the unique identification (ID) of this notice log record.But the information content of this notice further comprises the time of origin of network internal event, the type of this event, filtered field and other territories of this notice.But described filtered field is in the notice, the set in the territory that can be filtered, and for example, but filtered field can comprise the sender of notice or alarm level etc., this filtered field also can comprise time of origin and the event type of event; Described other territories are can not be to its information of filtering.
Because the notice difference that different IRP managers 13 is paid close attention to, therefore, different IRP managers 13 may require IRP Agent device 14 to keep specific notice log record for it, same IRP manager 13 also may require to keep for it log record of a plurality of specific notification, for example, require to keep to generate the log record of notifying in a certain period, the perhaps log record of the notice of a certain event type, the set of the log record of these specific notification is called the notice daily record.Because the demand of IRP manager 13, IRP Agent device 14 needs to keep a plurality of notice daily records, and the content of announcement that comprises in each notice daily record may have nothing in common with each other.In the process of IRP manager 13 supervising the networks, especially when notice can't be in real time when IRP Agent device 14 is delivered to IRP manager 13, IRP Agent device 14 need report the notice daily record for IRP manager 13.And IRP Agent device 14 may be realized a plurality of notice daily records, to satisfy the demand of the different notice of different I RP manager 13 needs daily record.The operational notification daily record for how, current 3GPP SA5 is discussing the bookkeeping of 13 pairs of managed networks notices of IRP manager daily record, comprises that order managed network 12 carries out: create, deletion, inquiry, hang up, recover the notice journalizing; And the operation of inquiring about, deleting notice log recording in the notice daily record, also propose the IRP Agent device and sent capacity thresholding alarm operation to the IRP manager.But, also do not have a kind of method in managed network 12, to realize aforesaid operations at present.
Summary of the invention
Main purpose of the present invention provides a kind of implementation method of notifying journalizing, to satisfy the operational requirements of management system for the daily record of managed network notice.
To achieve these goals, concrete technical scheme of the present invention is:
A kind of implementation method that daily record operates to notice, be applicable to the communication system that comprises management system and managed network, this method is stored in the notice log recording of managed network in the memory, and use for the device correspondence of quoting this memory and that have respectively each self reference condition and represent different notice daily records, managed network will be the corresponding operation of quoting device to described memory for the operation map of notice daily record.
Being operating as of described notice daily record creates the notice journalizing, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Managed network is preserved notice daily record attribute according to creating parameter in this managed network, comprising creating set of notice log category and the filter that requires in the parameter, device is quoted in memory establishment at described storage notice log record, and it is corresponding with described notice daily record attribute that this quotes device.
The condition of quoting of described memory reference device comprises at least: the maximum space that the notice daily record sign in the notice daily record attribute, notice daily record can take, notice log recording life cycle, and the notice log category that requires in establishment condition set and filter.
Journalizing is notified in the deletion that is operating as of described notice daily record, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Sign according to the notice daily record that will delete finds corresponding memory reference device, deletes this memory reference device, and deletes the notice daily record attribute of this memory reference device correspondence.
The notice journalizing is hung up in being operating as of described notice daily record, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Add the sign that comprises notice daily record to be hung, the hang-up record of hanging up the time started and hanging up the concluding time, the hang-up time started wherein is the current operation time, and the hang-up concluding time is endless; And find corresponding memory reference device according to notice daily record to be hung sign, add quoting in the condition of this memory reference device and to comprise the filtercondition of hanging up the time started and hanging up the concluding time, according to this filtercondition make hang up the time started after, hang up the notice daily record of charging to described memory before the concluding time and be recorded in this memory reference device invisible.
Being operating as of described notice daily record recovers the notice journalizing, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Sign according to the notice daily record that will recover finds corresponding notice daily record to hang up record, and the hang-up concluding time wherein is revised as the current time; Find corresponding memory reference device according to the notice daily record that will recover sign, revise the condition of quoting of this memory reference device, as seen the notice daily record that counts described memory after hanging up the concluding time is recorded in this memory reference device.
The log recording operation is notified in being operating as in the daily record of inquiry notice of described notice daily record, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Find corresponding memory reference device according to the notice daily record sign that will inquire about, quote the notice log recording of condition as Query Result with meeting this memory reference device in the described memory.
Comprise querying condition in the request of notice log recording operation in the daily record of described inquiry notice, then quote the notice log recording of condition from described this memory reference device that meets, obtain the notice log recording that meets querying condition, with the result that obtains as Query Result.
Described querying condition comprises a kind of in the following condition at least: the sign of notice log record, charge to the time, the event time of announcement information content, event type, but the perhaps filtered field of announcement information content.
The log recording operation is notified in being operating as in the daily record of deletion notice of described notice daily record, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Find corresponding memory reference device according to the notice daily record sign that will delete the notice log recording, in the stack deletion condition in the condition of quoting of this memory reference device, the log recording that will meet the deletion condition filters out from this memory reference device.
Described deletion condition comprises a kind of in the following condition at least: the sign of notice log record, charge to the time, the event time of announcement information content, event type, but the perhaps filtered field of announcement information content.
Described memory adopts database table storage notice log recording, and described memory reference device is the data base view of this database table.
Described memory adopts expandable mark language XML file storage notice log record, and described memory reference device is quoted for this XML file.
The reference stores of described XML file is in the XML file, and the property store of described notice daily record is in the XML file.
Journalizing is notified in the inquiry that is operating as of described notice daily record, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Find corresponding notice daily record attribute according to the notice daily record that will inquire about sign, the memory reference device by correspondence upgrades this notice daily record attribute, and the notice daily record attribute after will upgrading again is as Query Result.
Described memory adopts database table storage notice log record, and described memory reference device is the data base view of this database table, and the detailed process that described updated stored device is quoted the notice daily record attribute of device correspondence is:
A1, in described data base view inquiry current notice log recording number and current notice daily record record space; Hang up the controlled state that this notice daily record judged in record according to the last notice daily record in the memory; Take up room whether reach the availability that maximum occupying space in the described notice daily record attribute is judged this notice daily record according to current notice log recording;
A2, judge the running status of this notice daily record according to the judged result of controlled state and availability;
A3, the inquiry that utilizes above-mentioned steps a1 and a2 and judged result are upgraded the current notice log recording number in the described notice daily record attribute, current notice daily record record space, controlled state, availability and running status.
Described memory adopts expandable mark language XML file storage notice log record, and described memory reference device is quoted for this XML file, and the detailed process that described updated stored device is quoted the notice daily record attribute of device correspondence is:
A1, from quoting, the XML file that finds obtains the condition of quoting; According to the condition of obtaining of quoting in the XML file of described storage notice log record inquiry character should quote the current notice log record number of condition; With these on current notice days will record number multiply by on average taking up room of every notice log record, obtain current notice log record and take up room;
Hang up the controlled state that this notice daily record judged in record according to the last notice daily record in the memory; Take up room whether reach the availability that maximum occupying space in the described notice daily record attribute is judged this notice daily record according to current notice log recording;
A2, judge the running status of this notice daily record according to the judged result of controlled state and availability;
A3, the inquiry that utilizes above-mentioned steps A1 and A2 and judged result are upgraded the current notice log recording number in the described notice daily record attribute, current notice daily record record space, controlled state, availability and running status.
The capacity alarm operation counted in the record that is operating as the notice daily record of described notice daily record, and managed network with this operation map for the detailed process to the operation of memory reference device is:
A, obtain notice log recording quantity current in the described memory and take up room, and with taking up room divided by record quantity, obtain on average taking up room of average every notice log recording;
B, find the memory reference device corresponding with this notice daily record, upgrade notice daily record attribute corresponding to this memory reference device, find the predefine maximum space of described notice daily record in the notice daily record attribute after this renewal, utilize this predefine maximum space on average to take up room divided by the log recording that step a obtains, obtain the max log record number that this notice daily record can be preserved;
The current log recording number of this notice daily record of inquiry in c, the notice daily record attribute after described renewal, and the max log that obtains to obtain among current log recording number and the step b records the ratio of number, in described notice daily record attribute, inquire about again the record number field value of this notice daily record, if the ratio that obtains then sends capacity alarm notification or alarm level notice of change to network manager greater than this record number field value; If the ratio that obtains, then sends cleared alarm notice or alarm level notice of change less than predefined alarm thresholding.
The record space capacity alarm operation that is operating as the notice daily record of described notice daily record, managed network with this operation map for the detailed process to the operation of memory reference device is:
Find memory reference device corresponding to this notice daily record, upgrade notice daily record attribute corresponding to this memory reference device, current the taking up room and maximum occupying space of inquiry in the notice daily record attribute after this renewal, obtain this current taking up room and the ratio of maximum occupying space, inquire about again the record space thresholding of this notice daily record, if described ratio greater than this record space thresholding, then sends capacity alarm notification or alarm level notice of change to network manager; If the ratio that obtains, then sends cleared alarm notice or alarm level notice of change less than predefined alarm thresholding.
Described memory adopts database table storage notice log record, and described memory reference device is the data base view of this database table, and the concrete steps of the pairing notice daily record of described renewal data base view attribute are:
A, in the data base view corresponding with notice daily record sign, inquire about current notice log recording number, calculate current notice log recording and take up room;
B, according to the Query Result of steps A upgrade described data base view current notice log recording number and the current notice log recording in the corresponding notice daily record attribute take up room.
Described memory adopts expandable mark language XML file storage notice log record, and described memory reference device is quoted for this XML file, and the concrete steps that described renewal XML file is quoted pairing notice daily record attribute are:
A ', from quoting, the XML file that finds obtains the condition of quoting;
B ', according to the condition of quoting obtained in the XML file of described storage notice log recording inquiry character should quote the current notice log recording number of condition; With these on current notice days will record number multiply by on average taking up room of every notice log recording, obtain current notice log recording and take up room; Take up room with the current notice log recording number that obtains and current notice log recording and to upgrade described XML file and quote that institute is corresponding to notify current notice log recording number and current notice log recording in the daily record attribute to take up room.
Because the present invention can realize the operation to the notice daily record in managed network, therefore solved the demand about the notice journalizing that 3GPP SA5 is being discussed; Simultaneously, because the present invention utilizes the technology of quoting of memory, with different notice daily records be mapped as memory different quote device, the way of realization of quoting device can be that data base view or XML file are quoted, and the log recording of involved notice is stored in the memory in all notice daily records, obtain notice log recording in the memory by the memory reference device according to the condition of quoting, therefore can avoid the log recording of the identical notice of a plurality of notice daily record repeated storage, reduce the IRP Agent device for the requirement of memory space, reduced cost; In addition, daily record operates to notice because the present invention is by the memory reference device, therefore can utilize data base view or XML file to quote fast and effectively processing feature, thereby improve the operating efficiency of IRP manager and IRP Agent device, and reduce development difficulty.
Description of drawings
A kind of network management architecture figure that Fig. 1 proposes for 3GPP SA5;
Fig. 2 is the block diagram that the embodiment of the invention one described data base view is realized the notice journalizing;
Fig. 3 is the embodiment of the invention one realizes the notice journalizing in the IRP Agent device flow chart;
Fig. 4 quotes the block diagram of realizing the notice journalizing for the embodiment of the invention two described employing XML files;
Fig. 5 is the embodiment of the invention two realizes the notice journalizing in the IRP Agent device flow chart.
Embodiment
Further specify implementation method of the present invention below in conjunction with the drawings and specific embodiments.
Core concept of the present invention is: the log recording of all notices is stored in the memory of IRP Agent device, daily record is notified in the device representative of quoting with this memory, this is quoted device and is used for the notice log recording that selection memory meets certain condition, and with set of they compositions, this set is exactly the desired notice daily record of IRP manager.This memory reference device can be the data base view at database table, perhaps is quoting at extend markup language (XML) file.This memory reference utensil is quoted condition, the IRP manager is by this memory reference device, do not filter out meeting its log record of quoting the notice of condition, therefore see the notice daily record recorded content that meets the condition of quoting in the described memory only, the set of the notice log record of being seen promptly is the notice daily record, and the operation about the notice daily record that the IRP manager sends to the IRP Agent device then is mapped as operation to this memory reference device.
Based on above-mentioned core concept, introduce respectively below the preferred embodiments of the present invention one and embodiment two.
Embodiment one:
In the present embodiment one, described memory adopts database table storage notice log recording, described memory reference device is the data base view of this database table, the log recording of all notices is stored in this database table, with the daily record of the representative of the view in this database table notice, and utilize this data base view to reflect that to the IRP manager operation about the notice daily record of notifying daily record, IRP manager to send to the IRP Agent device then is mapped as the operation to this data base view.
Above-mentioned data base view is the view for the database table that is used for the storing daily record record, the IRP manager is by this view, can see the part or all of content of notice log recording table 22, the set of the log recording of seeing namely is the notice daily record, therefore in the present embodiment one, this data base view also can be described as the notice Log Views.
Present embodiment one utilizes the notice Log Views to realize in the IRP Agent device for the operation of notifying daily record.Referring to Fig. 2, in the IRP Agent device, create notice daily record operational processes process 21, notice log recording table 22, notice log manager table 23, notify daily record View Manager 24, notice daily record to hang up record sheet 25.Wherein:
The notice daily record operation requests that notice daily record operational processes process 21 is used to receive from the IRP manager is judged the legitimacy of this operation requests parameter, and is carried out the corresponding operating of notice daily record is handled, and returns result to the IRP manager.Generally speaking, comprise from the notice daily record operation requests of IRP manager: create, deletion, inquiry, hang up, recover the notice journalizing, and the operation of log recording in the inquiry, the daily record of deletion notice; Notice daily record operational processes process 21 also can initiatively be initiated capacity thresholding alarm operation, and sends the alarm of capacity thresholding to the IRP manager.
Notifying log recording table 22 is database table, is used for the log recording of storage notice, and the log recording of notice is carried out operations such as interpolation and deletion.The log record of these notices is called the notice log record, and the notice log record comprises the unique identification (ID) of this log record, the time of charging to of this notice log record and the information field of this notice.But the information field of this notice further comprises the time of origin of network internal event, the type of this event, filtered field and other territories of this notice.When the IRP Agent device is given notice, need in this log recording table 22, add the notice log recording, add the current time of log recording for notifying the time of charging to of log recording.The IRP Agent device can periodically check the time that counts of each bar log recording and the time gap of current time, when a certain notice log recording charge to the time gap current time during greater than the life cycle of the notice log recording of any one notice daily record regulation, then can delete this log recording.
Notice log manager table 23 is used to write down the also notice daily record of managing I RP manager requirement, and the attribute of the notice daily record of being write down comprises: 1, the sign of notice daily record; 2, the creation-time of notice daily record, i.e. generalized time coordinate time (UTC, Universal Time Coordinated); 3, the set of the notification type of log record is promptly notified in the set of notice classification; 4, filter, promptly notify the filtercondition of daily record to notice, this filtercondition is except notice other conditions the classification, for example with the event time of notice and event type as filtercondition, have only the log record that satisfies this filtercondition just to be recorded in this notice daily record; 5, daily record is completely moved, i.e. the action of notice daily record when the daily record record takes this notice log space can be backrush (wrap) action that will notify the daily record record deletion always, or the no longer hang-up of reception notification log record (halt) action; 6, maximum occupying space, the maximum memory space of promptly notifying daily record to take; 7, current taking up room promptly notifies daily record current shared memory space; 8, current log record number, the number of promptly notifying the current institute of daily record storing daily record to write down; 9, log record life cycle is promptly notified the log record of stipulating in daily record life cycle, and the log record that surpasses this life cycle will be deleted from this notice daily record; 10, capacity alarm thresholding, this capacity alarm thresholding can have two kinds, be respectively: capacity alarm thresholding counted in the record of expression current record number and the hundreds of proportions by subtraction of dominant record, and represent current taking up room and the record space capacity of maximum occupying space percentage alarm thresholding, in actual applications, only select wherein a kind of capacity that carries out of these two kinds of capacity alarm thresholdings to alarm judgement, when the current capacity exceed capacity of notice daily record is alarmed thresholding, then can produce alarm; In addition, described capacity alarm thresholding can have a plurality of, the corresponding a kind of alarm level of each capacity alarm thresholding; 11, controlled state, i.e. whether expression notice daily record is suspended; Whether 12, availability, the daily record of expression notice operate as normal, i.e. whether daily record record is filled with, or not in dispatching cycle; 13, running status, whether the expression daily record is just in operate as normal.In addition, notice log manager table 23 also can carry out operational administrative to the notice daily record, for example adds notice daily record, the daily record of deletion notice, inquiry notice daily record attribute, calculates the record number of daily record maximum, send the alarm of record space thresholding, send operations such as record number field value alarm.
Notice daily record View Manager 24 is used for record and the pairing notice Log Views of management notice daily record, for example can create, deletes, revises and inquire about the operation of notice Log Views.
In the present embodiment one, for convenience management, with notifying log manager table 23 and notice daily record View Manager 24 jointly to notifying daily record to record, manage and operate, present embodiment one also can merge notice log manager table 23 and notice daily record View Manager 24, only record, manage and operate with the daily record of 24 pairs of notices of notice daily record View Manager, comprise: attribute, the interpolation of recording the notice daily record notify daily record, deletion to notify daily record, inquiry to notify the daily record property operations, and the operation of Log Views is notified in establishment, deletion, modification and inquiry.
The notice daily record is hung up record sheet 25 and is used for to notice daily record and hangs up and recovery operation, and the hang-up situation of notice daily record is carried out record.Its content that records comprises: notice daily record sign, hang-up time started and hang-up concluding time, this hang-up concluding time is the recovery time of notice daily record.
Above-mentioned notice daily record View Manager 24 and notice daily record are hung up record sheet 25 and can be established in advance, also can receive when creating notice daily record command request and hanging up notice daily record command request at the IRP Agent device and set up again, can be according to the storage capacity of database, access performance selects to set up one or more notice daily record View Managers 24 and record sheet 25 is hung up in the notice daily record.Described notice log recording table 22 is what establish in advance, can be according to the storage capacity of database, and access performance selects to set up one or more log recording tables 22.
Fig. 3 is present embodiment one is realized the notice journalizing in the IRP Agent device flow chart.Referring to Fig. 3, this flow process mainly comprises:
Step 31, IRP Agent device receive the operation requests about the notice daily record from the IRP manager; Described operation requests can be to create, deletion, inquiry, hang up and recover the notice journalizing, and inquiry, the operation of deletion notice log recording.The treatment progress 21 that described different operation requests is directly called in the IRP Agent device is processed respectively.
The establishment parameter that comprises the desired notice daily record of IRP manager in the described establishment notice daily record operation requests, that is: the attribute of specified notification daily record, comprise: the set of notice classification, completely action of filter, daily record, maximum occupying space, log record life cycle and capacity alarm thresholding.
When the IRP Agent device is received when creating notice daily record operation requests, then execution in step 321 and step 322;
The treatment progress 21 of step 321, IRP Agent device adds the daily record of a notice according to the establishment parameter of this notice daily record in notice log manager table 23, set up the attribute of the new notice daily record of adding, identical with described in the establishment parameter of the set of notice classification in the attribute, completely action of filter, daily record, maximum occupying space, log recording life cycle and capacity alarm thresholding; Simultaneously, IRP Agent device call notification Log Views manager 24 is corresponding notice Log Views of this notice log creation according to the filter that creates in the parameter.The condition of quoting of this notice Log Views can be the combination of following condition: the notice daily record sign in the notice daily record attribute, the sign of notice log recording, charge to the time, and the filter of announcement information content is hung up the time started and is hung up the concluding time; Wherein the filter condition of announcement information content can be: only require to be recorded in the sometime log recording of section, the log recording of some event type, but the perhaps restrictive condition of other filtered field, by this notice Log Views, the IRP manager can view the log recording that satisfies its specified requirements; Do not hang up the time started in the notice Log Views that has just created and hang up the concluding time.
Whether successful step 322, IRP Agent device are returned to the IRP manager and are created the response of notice journalizing, comprising creating status indicator, if create successfully, then also comprise the sign of the notice daily record that is successfully created.
The sign that also comprises the notice daily record that to delete in the described deletion notice daily record operation requests.When the IRP Agent device is received deletion notice daily record operation requests, then execution in step 331 and step 332;
The treatment progress 21 call notification Log Views managers 24 of step 331, IRP Agent device and notice log manager table 23 carry out deletion action, notice log manager table 23 is according to notice daily record attribute corresponding to sign deletion that will delete the notice daily record that comprises in the operation requests, and notice daily record View Manager 24 is according to the notice Log Views corresponding to sign deletion of this notice daily record.
Step 332, IRP Agent device are returned the response of deletion notice journalizing to the IRP manager, comprise whether successful status indicator of deletion in this response, if delete successfully, then also comprise the sign of the notice daily record that this is successfully deleted.
The sign that also comprises the notice daily record that to hang up in the described hang-up notice daily record operation requests.When the IRP Agent device is received when hanging up notice daily record operation requests, then execution in step 341 and step 342;
The hang-up notice journalizing of record sheet 25 and the modification view operation of notice daily record View Manager 24 are hung up in the treatment progress 21 call notification daily records of step 341, IRP Agent device, that is: hang up record sheet 25 in the notice daily record and add a notice daily record hang-up record, notice daily record wherein is designated the notice daily record sign in the operation requests, hanging up the time started is the current time of this operation, and hanging up the concluding time is " forever "; Notice daily record View Manager 24 is revised the condition of quoting of respective view according to the sign of the notice daily record in the operation requests, promptly increase a filtercondition, content is: after hanging up the time started, hung up before the concluding time, the notice daily record of newly charging in the notice log recording table 22 is recorded in this notice Log Views invisible.
If when carrying out this operation, the notice daily record is hung up, the condition of quoting of then notifying daily record View Manager 24 not revise view, and notice daily record hang-up record sheet 25 is not revised corresponding notice daily record yet and is hung up record.
Step 342, IRP Agent device are returned to the IRP manager and are hung up the response of notice journalizing, comprise whether successful status indicator of hang-up in this response, if successfully hang-up then also comprises the sign of the notice daily record of successfully being hung up.
The sign that also comprises the notice daily record that will recover in the described recovery notice daily record operation requests.When the IRP Agent device is received when recovering notice daily record operation requests, then execution in step 351 and step 352;
The recovery notice journalizing of record sheet 25 and the modification view operation of notice daily record View Manager 24 are hung up in the treatment progress 21 call notification daily records of step 351, IRP Agent device, that is: daily record is hung up record sheet 25 and is found corresponding notice daily record hang-up record according to the sign of the notice daily record in the operation requests, and the hang-up concluding time wherein is revised as the current time; Notice daily record View Manager 24 makes after this according to the condition of quoting of the sign of the notice daily record in operation requests modification respective view, and the log recording of charging in the notice log recording table 22 can appear in this view.
If when carrying out this operation, the notice daily record is not suspended, the condition of quoting of then notifying daily record View Manager 24 not revise view, and notice daily record hang-up record sheet 25 is not revised corresponding notice daily record yet and is hung up record.
Step 352, IRP Agent device are returned to the IRP manager and are recovered notice daily record response, comprise whether successful status indicator of recovery in this response, if successfully, then also comprise the sign of the notice daily record that is successfully recovered.
The sign that comprises the notice daily record that to inquire about in the described inquiry notice daily record operation requests.When the IRP Agent device is received inquiry notice daily record operation requests, then execution in step 361 and step 362;
Step 361, the treatment progress 21 call notification log manager tables 23 of IRP Agent device carry out query manipulation, notice log manager table 23 obtains corresponding notice Log Views according to the sign of the notice daily record in the operation requests, by notice daily record attribute corresponding to this notice daily record view update: at first in the data base view corresponding with notice daily record sign, inquire about current notice log recording number and calculate current notice log recording taking up room, its computational process is: taking up room and the total number of records of log recording table notified in inquiry, both are divided by and calculate average every record and take up room, again according to the current record number of notifying daily record, multiply by average every record and take up room, calculate the space that the notice daily record takies; Hang up the controlled state that this notice daily record judged in record according to the last time notice daily record again, for example: if the daily record of the last notice was hung up the hang-up time started of record before the current time, and the hang-up concluding time is endless, and then controlled state is suspended state; Then take up room whether reach the availability that maximum occupying space is judged this notice daily record according to current notice log recording, if reach maximum occupying space then unavailable, do not reach then available; Judge the running status of this notice daily record according to controlled state and availability then, if notify daily record to be in suspended state or unavailable, then running status is unusual (Disabled), otherwise running status is normal (Enabled); At last, according to the current log recording number in above-mentioned inquiry and the judged result update notification daily record attribute, currently take up room, controlled state, availability and running status.
The attribute of this notice daily record after step 362, IRP Agent device will upgrade is as Query Result, return the query manipulation response to the IRP manager, comprise whether successful status indicator of inquiry in this response, if successful inquiring also comprises the attribute of the notice daily record of successfully being inquired about.
When if the present invention only records, manages and operate with the daily record of 24 pairs of notices of notice daily record View Manager, then in this step, the treatment progress 21 call notification Log Views managers 24 of IRP Agent device obtain the view of corresponding notice daily record according to the sign of the notice daily record in the operation requests, by notice daily record attribute corresponding to this notice daily record view update, return at last the notice daily record attribute of inquiry again.
Comprise the notice daily record sign that to inquire about in the daily record of described inquiry notice in the operation requests of notice log recording.In addition, this operation requests can also comprise querying condition, this querying condition can see as be superimposed upon the notice daily record quote another quote condition, for example this querying condition can be the combination of following condition: the sign of notice log record, charge to the time, the event time of announcement information content, event type, but perhaps other filtered field of announcement information content; In addition, can comprise also in this operation requests that the desired Query Result of IRP manager returns form, this returns form is the XML file format.
When the IRP Agent device is received the operation requests of log recording in the daily record of inquiry notice, then execution in step 371 and step 372;
The treatment progress 21 call notification Log Views managers 24 of step 371, IRP Agent device are carried out inquiry notice daily record recording operation, that is: notice daily record View Manager 24 finds corresponding notice Log Views according to the sign of the notice daily record in the operation requests, and inquiry meets the notice log record of given query condition in this notice Log Views; If the IRP manager requires to return Query Result in the XML document mode, then the notice daily record set of records ends that is inquired is formed an XML document, be stored in the IRP Agent device.
For example: the IRP manager request: the event time that inquiry is designated in 1 the notice daily record is the log record of 02:00, and its querying condition is that event time is the log record of 02:00.After the IRP Agent device is received request, find and be designated 1 notice Log Views corresponding to notice daily record, in this notice Log Views, find again the log recording that all event times are 02:00.
Step 372, IRP Agent device are returned the response of recording in the daily record of inquiry notice to the IRP manager, comprise whether successful status indicator of inquiry in this response, if successfully, then also comprise the notice daily record sign and the Query Result that are queried.If the IRP manager requires to return Query Result in the XML document mode, then the memory location of XML document in the IRP Agent device that the notice daily record set of records ends that is inquired is formed returns to the IRP manager, if the IRP manager does not require to return Query Result in the XML document mode, then return the notice daily record set of records ends that inquires to the IRP manager.
The operation requests of notice log record comprises notice daily record sign and deletion condition in the daily record of described deletion notice, this deletion condition can be the combination of following condition: the sign of notice log record, charge to the time, the event time of announcement information content, event type, but perhaps other filtered field of announcement information content.
When the IRP Agent device is received the operation requests of log recording in the daily record of deletion notice, then execution in step 381 and step 382;
The treatment progress 21 call notification Log Views managers 24 of step 381, IRP Agent device are deleted the log recording in the notice daily record, that is: notice daily record View Manager 24 is searched corresponding notice Log Views according to the sign of the notice daily record in the operation requests, and revise the condition of quoting of this notice Log Views, i.e. stack and the corresponding filtercondition of deletion condition, make the IRP manager from this notice Log Views, can't see meet the log recording of deletion condition, reach the effect of deletion log recording from this notice daily record.But the log recording that filters out still exists in notice log recording table 22, so other notice Log Views still can utilize this log recording.
Step 382, IRP Agent device be to the response of IRP manager return, comprises whether successful status indicator of deletion record in this response, if success then also comprises successfully having been deleted and notifies the notice daily record of log recording to identify.
For example, IRP manager request: the event time that will be designated in 1 the notice daily record is the notice daily record record deletion of 02:00.After the IRP Agent device is received request, find and be designated 1 notice Log Views corresponding to notice daily record, revise the filter in this notice Log Views, a filtercondition namely superposes: will notify all event times in the Log Views is that the notice daily record record filtering of 02:00 falls.Through aforesaid operations, all event times are that the notice daily record of 02:00 is recorded in this notice Log Views all invisible in the notice log recording table 22.Therefore in the notice daily record that the IRP manager is seen by this notice Log Views, no longer include it and require the notice log recording deleted.
But, also there is a kind of situation: if certain bar notice daily record is recorded in all notice daily records all deleted, then the IRP Agent device can will should be notified log record permanent delet from log recording table 22, after this, all can't see this notice log record from any one notice Log Views.
More than be that the IRP Agent device is according to the operation requests that the receives flow process that daily record operates to notice.In addition, the IRP Agent device also can initiatively carry out the capacity alarm operation to some notice daily records, and this capacity alarm operation can have two kinds: record number capacity alarm operation and record space capacity alarm operation.In the implementation procedure of reality, only select a kind of operation wherein.Wherein: if write down number capacity alarm operation then execution in step 391; If carry out record space capacity alarm operation, then execution in step 394.
The treatment progress 21 call notification log recording tables 22 of step 391, IRP Agent device are searched the log record quantity in this log recording table 22 and are taken up room, and, obtain on average taking up room of average every log record with taking up room divided by log record quantity;
The treatment progress 21 call notification log manager tables 23 of step 392, IRP Agent device find corresponding notice Log Views according to the notice daily record sign that comprises in the operation requests, by this notice notice daily record attribute corresponding to daily record view update, wherein mainly comprise upgrade current log recording number, currently take up room, availability and running status; Inquire about again the predefine maximum space in this notice daily record attribute, utilize this predefine maximum space on average to take up room divided by the log recording that obtains in the step 391, obtain the max log record number that this notice daily record can be preserved;
When if the present invention only records, manages and operate with the daily record of 24 pairs of notices of notice daily record View Manager, then this step search with operation requests in the notice daily record that comprises identify corresponding notice daily record attribute method can for: the treatment progress 21 first call notification Log Views managers 24 of IRP Agent device find corresponding notice Log Views, find corresponding notice daily record attribute again.
The current log recording number of step 393, this notice daily record of notice log manager table 23 inquiry, and obtain the ratio of the daily record dominant record number that current log recording number and step 392 obtain, capacity alarm thresholding counted in the record of this notice daily record of again request notice log manager table 23 inquiry, if the ratio that obtains is crossed described record and counted capacity alarm thresholding, then send the capacity alarm notification to the IRP manager.
Thresholding has a plurality of if the capacity alarm counted in described record, and the branch that grade is arranged, then in step 393, with the ratio of acquisition and the thresholding contrast of each grade, if this ratio is crossed the record of certain alarm level and is counted capacity alarm thresholding, then send the capacity alarm notification of corresponding level,, then send the notice that alarm level is revised if originally sent the different alarm notification of rank to the IRP manager.If this ratio drops under other record number capacity alarm thresholding of lowermost level, then send cleared alarm.
Above-mentioned capacity alarm operation can periodically be carried out, and also can be added by N of notice logger manager record operation triggering and carry out, and described N is natural number.
The treatment progress 21 call notification log manager tables 23 of step 394, IRP Agent device carry out following operation: inquire about corresponding notice Log Views according to the notice daily record sign that operation requests comprises, notice daily record attribute by this notice daily record view update correspondence, wherein mainly comprise upgrade current log record number, calculating and upgrade currently take up room, availability and running status, it is identical with method described in the step 361 to calculate the current method that takes up room, herein no longer narration; Inquire about current the taking up room and maximum occupying space in this notice daily record attribute again, obtain this current taking up room and the ratio of maximum occupying space, then inquire about the record space capacity alarm thresholding of this notice daily record, if described ratio is crossed described record space capacity alarm thresholding, then send the capacity alarm notification to the IRP manager.
When if the present invention only records, manages and operate with the daily record of 24 pairs of notices of notice daily record View Manager, then this step search with operation requests in the notice daily record that comprises identify corresponding notice daily record attribute method can for: the treatment progress 21 first call notification Log Views managers 24 of IRP Agent device find corresponding notice Log Views, find corresponding notice daily record attribute again.
If described record space capacity alarm thresholding has a plurality of, and the branch that grade is arranged, then in step 394, with the ratio of acquisition and the thresholding contrast of each grade, if this ratio is crossed the record space capacity alarm thresholding of certain alarm level, then send the capacity alarm notification of corresponding level,, then send the notice that alarm level is revised if originally sent the different alarm notification of rank to the IRP manager.If this ratio drops under other record space capacity alarm thresholding of lowermost level, then send cleared alarm.
Above-mentioned capacity alarm operation can periodically be carried out, and also can be added by N of notice logger manager record operation triggering and carry out, and described N is natural number.
Embodiment two:
In the present embodiment two, described memory adopts extend markup language (XML) file storage notice log record, described memory reference device is quoted for this XML file, log record with all notices in the IRP Agent device is stored in the described XML file, daily record is notified in the representative of quoting with this XML file, and the IRP Agent device is to the operation of operation map for this XML file is quoted of notice daily record.
The condition of quoting that the XML file is quoted comprises the desired notice daily record of IRP manager " set of notice classification " and " filter " attribute, the IRP manager will not meet this log record of quoting the notice of condition and will filter out, therefore see the log record content that meets the condition of quoting in the described XML file only, the set of the log record of being seen promptly is the notice daily record, therefore among the present invention, this XML file is quoted also to can be described as and is notified daily record to quote.The condition of quoting that described XML file is quoted is stored in another XML file, and each XML file is cited as the element that condition XML file is quoted in storage.
In the present embodiment two, four class XML files are set in the IRP Agent device, are respectively:
One, notice log record XML file is used to store the log record of notice, and in this XML file, the log record of each notice is expressed as a notice log record element.When the IRP Agent device is given notice, need to notify at this and add the notice log recording in log recording XML file, the current time of adding the notice log recording is the time of charging to of notice log recording.The IRP Agent device can periodically check the time of charging to of each bar log recording and the time gap of current time, when a certain notice log recording charge to the time gap current time during greater than the life cycle of the notice log recording of any one notice daily record regulation, then can notify this log recording of deletion the log recording XML file from this.
Two, notice daily record attribute XML file is used for storage notice daily record attribute, and in this XML file, the attribute representation of each notice daily record is a notice daily record property element.
Three, the XML file is quoted in the notice daily record, be used to store the condition of quoting that described notice daily record is quoted, promptly notify the XML file of daily record correspondence to quote, quote in the XML file in this notice daily record, the condition of quoting of a corresponding notice of each component identification daily record is quoted condition by this and can be seen the record that the daily record of corresponding notice comprises in notice log record XML file.The notice daily record that present embodiment utilizes this notice daily record to quote in the XML file quotes to realize in the IRP Agent device for the operation of notifying daily record.
Four, the notice daily record is hung up and write down the XML file, is used to store the hang-up record of notifying daily record, and the content of this hang-up record comprises: notice daily record sign, hang-up time started and hang-up concluding time, the described hang-up concluding time is the recovery time of notice daily record.In this XML file, each notice daily record is hung up record sheet and is shown a notice daily record hang-up record element.
Referring to Fig. 4, present embodiment has been created notice daily record operational processes process 41, notice logger manager 42, notice log manager 43, notice daily record reference manager 44, has been notified daily record to hang up manager 45 in order to realize the operation to the notice daily record in the IRP Agent device.Wherein:
The notice daily record operation requests that notice daily record operational processes process 41 is used to receive from the IRP manager is judged the legitimacy of this operation requests parameter, and is carried out the corresponding operating of notice daily record is handled, and returns result to the IRP manager.Generally speaking, comprise from the notice daily record operation requests of IRP manager: create, deletion, inquiry, hang up, recover the notice journalizing, and the operation of notice log recording in the inquiry, the daily record of deletion notice; In addition, notice daily record operational processes process 41 also can send the alarm of capacity thresholding to the IRP manager.
Notice logger manager 42 is used for described notice log recording XML file is managed, can in this notice log recording XML file, add as required, delete or read the notice log recording, and can notify the current record number of log recording XML file and current taking up room to calculate average every operation that log recording takes up room according to this.
Notify log manager 43 for managing described notice daily record attribute XML file, can in this notice daily record attribute XML file, add the notice daily record as required, delete and notify daily record, inquiry notice daily record attribute, the record number that calculates the daily record maximum, the alarm of transmission record space thresholding, the alarm of transmission record number field value, update notification daily record current record number and update notification daily record current record spatial operation.
Notice daily record reference manager 44 is used for managing described notice daily record and quotes the XML file, can quote in the XML file in this notice daily record as required to create, delete and notify daily record to quote, and can revise or inquire about the condition of quoting that the notice daily record is quoted.
In the present embodiment, for convenience management, with notice log manager 43 and notice daily record reference manager 44, the XML file is quoted in respectively management notice daily record attribute XML file and notice daily record, record is carried out in daily record to notice jointly, management and operation, the present invention also can quote the XML Piece file mergence with notice daily record XML property file and notice daily record, and will notify log manager 43 and notice daily record reference manager 44 to merge, only notify the daily record attribute and quote the XML file with 44 pairs of notice daily record reference managers and operate, and to notifying daily record to carry out record, management and operation, comprise: the attribute of record notice daily record, add notice daily record attribute, deletion notice daily record attribute, inquiry notice daily record attribute, calculate the record number of daily record maximum, send the alarm of record space thresholding, send the alarm of record number field value, update notification daily record current record number and update notification daily record current record spatial operation, and the daily record of establishment notice is quoted, the daily record of deletion notice is quoted, the condition of quoting that the amendment advice daily record is quoted and obtain the notice daily record operations such as the condition of quoting of quoting.
The notice daily record is hung up manager 45 and is used for to notice daily record and hangs up and recovery operation, and hangs up in the record XML file in described notice daily record the hang-up situation of notice daily record is carried out record.Its content that records comprises: notice daily record sign, hang-up time started and hang-up concluding time, this hang-up concluding time is the recovery time of notice daily record.
Above-mentioned notice daily record reference manager 44 and notice daily record are hung up manager 45 and can be established in advance, also can receive when creating notice daily record command request and hanging up notice daily record command request at the IRP Agent device and set up.The present invention can also be according to the storage capacity of XML file, and access performance selects to set up one or more notice log recording XML files, and the XML file is quoted in the notice daily record and record XML file is hung up in the notice daily record.
Fig. 5 is present embodiment is realized the notice journalizing in the IRP Agent device flow chart.Referring to Fig. 5, this flow process mainly comprises:
Step 51, IRP Agent device receive the operation requests about the notice daily record from the IRP manager, and handle respectively according to the classification of operation requests;
Described operation requests can be to create, delete, inquire about, hang up and recovery notice journalizing, and inquires about, deletes the notice daily record recording operation in the notice daily record.
When the IRP Agent device is received when creating notice daily record operation requests, then execution in step 521 and step 522;
The treatment progress 41 of step 521, IRP Agent device operates in a notice of interpolation daily record property element in the notice daily record attribute XML file according to the interpolation notice daily record of the establishment parameter call notice log manager 43 of this notice daily record, identical with described in the establishment parameter of notice classification set in this notice daily record attribute, completely action of filter, daily record, maximum occupying space, log recording life cycle and capacity alarm thresholding; Simultaneously, IRP Agent device call notification daily record reference manager 44 is quoted in the XML file in the notice daily record with filter according to the notice classification set in the establishment parameter and is quoted for corresponding notice daily record of this notice log creation.This notice daily record is quoted and is comprised the notice daily record sign in the notice daily record attribute and quote condition, this quotes condition can be the combination of following condition: the notice log recording sign, charge to the time, the filter of announcement information content is hung up the time started and is hung up the concluding time.Wherein the filter condition of announcement information content can be: only require to be recorded in the log record of section sometime, the log record of some event type, but the perhaps restrictive condition of other filtered field, quote by this notice daily record, the IRP manager can view the log record that satisfies the appointment of described establishment parameter; Do not comprise during just the notice daily record of creating has been quoted and hang up the time started and hang up the concluding time.
Whether successful step 522, IRP Agent device are returned to the IRP manager and are created the response of notice journalizing, comprising creating status indicator, if create successfully, then also comprise the sign of the notice daily record that is successfully created.
When the IRP Agent device is received deletion notice daily record operation requests, then execution in step 531 and step 532;
The treatment progress 41 call notification daily record reference managers 44 of step 531, IRP Agent device and notice log manager 43 are carried out deletion action, notice log manager 43 notifies being identified in the notice daily record attribute XML file of daily record to delete corresponding notice daily record attribute according to will deleting of comprising in the operation requests, and the notice daily record that notice daily record reference manager 44 notifies daily record to quote deletion correspondence in the XML file according to being identified at of this notice daily record is quoted.
Step 532, IRP Agent device are returned the response of deletion notice journalizing to the IRP manager, comprise whether successful status indicator of deletion in this response, if delete successfully, then also comprise the sign of the notice daily record that this is successfully deleted.
When the IRP Agent device is received when hanging up notice daily record operation requests, then execution in step 541 and step 542;
The hang-up notice journalizing of manager 45 and the modification referencing operation of notice daily record reference manager 44 are hung up in the treatment progress 41 call notification daily records of step 541, IRP Agent device, that is: notify daily record to hang up manager 45 notice of interpolation daily record in notice daily record hang-up record XML file and hang up record, notice daily record wherein is designated the notice daily record sign in the operation requests, hanging up the time started is the current time of this operation, and hanging up the concluding time is " forever "; Notice daily record reference manager 44 is identified at the notice daily record according to the notice daily record in the operation requests and quotes and find corresponding notice daily record in the XML file and quote, revise the condition of quoting that this notice daily record is quoted, namely increase a filtercondition, content is: after hanging up the time started, hung up before the concluding time, newly charging to notice daily record in the notice log recording XML file, to be recorded in this notice daily record invisible in quoting.
If carry out this when operation, the notice daily record is hung up, the condition of quoting of then notifying daily record reference manager 44 not revise to quote, and the notice daily record is hung up the manager 45 notice daily record that also the correspondence in the XML file is hung up in daily record to notice and is hung up record and make amendment.
Step 542, IRP Agent device are returned to the IRP manager and are hung up the response of notice journalizing, comprise whether successful status indicator of hang-up in this response, if successfully hang-up then also comprises the sign of the notice daily record of successfully being hung up.
When the IRP Agent device is received when recovering notice daily record operation requests, then execution in step 551 and step 552;
The recovery notice journalizing of manager 45 is hung up in the treatment progress 41 call notification daily records of step 551, IRP Agent device and conditional operation is quoted in the modification of notice daily record reference manager 44, that is: daily record hang-up manager 45 is hung up the record XML file from the notice daily record according to the sign of the notice daily record in the operation requests and is found the notice daily record of correspondence to hang up record, and the hang-up concluding time wherein is revised as the current time; Notice daily record reference manager 44 is quoted the notice daily record that finds correspondence the XML file according to the sign of the notice daily record in the operation requests from the notice daily record and is quoted, and revise the condition of quoting that this notice daily record is quoted, make after this operation, the log recording of charging in the notice log recording XML file can appear in this notice daily record.
If when carrying out this operation, the notice daily record is not suspended, and then notifies daily record reference manager 44 not revise the condition of quoting that the daily record of correspondence notice is quoted, and the notice daily record is hung up record sheet 45 and also do not revised corresponding notice daily record hang-up record.
Step 552, IRP Agent device are returned to the IRP manager and are recovered notice daily record response, comprise whether successful status indicator of recovery in this response, if successfully, then also comprise the sign of the notice daily record that is successfully recovered.
When the IRP Agent device was received inquiry notice daily record operation requests, then execution in step 561 was to step 567;
The treatment progress 41 call notification log manager 43 of step 561, IRP Agent device are operated, that is: notify log manager 43 at first to ask notice daily record reference manager 44 to quote the notice daily record of searching correspondence the XML file from the notice daily record and quote, obtain the condition of quoting of this notice daily record according to the sign of the notice daily record in the operation requests;
Step 562, according to the condition of quoting obtained in notice log recording XML file inquiry character should quote the current notice log recording number of condition, namely read in the notice log recording XML file and meet the notice daily record that this quotes condition, and regulation Output rusults form be " number is recorded in output ";
Logger manager 42 inquiries of step 563, notice are notified the log recording quantity in the log recording XML files and are taken up room, and with taking up room divided by log recording quantity, obtain on average taking up room of average every log recording;
Step 564, the current notice log record number that is obtained be multiply by on average taking up room of every log record, obtain notifying daily record current taking up room;
Step 565, hang up the controlled state that this notice daily record judged in record according to the daily record of the last time notice again, for example: if the daily record of the last notice was hung up the hang-up time started of record before the current time, and the hang-up concluding time is endless, and then controlled state is suspended state; Then take up room whether reach the availability that maximum occupying space is judged this notice daily record according to current notice log recording, if reach maximum occupying space then unavailable, do not reach then available; Judge the running status of this notice daily record according to controlled state and availability then, if notify daily record to be in suspended state or unavailable, then running status is unusual, otherwise running status is normal;
Step 566, from notice daily record attribute XML file, search corresponding notice daily record attribute according to the notice daily record in operation requests sign, according to the current log recording number in above-mentioned query count and the judged result update notification daily record attribute, currently take up room, controlled state, availability and running status.
The attribute of step 567, this notice daily record after will upgrading returns the query manipulation response as Query Result to the IRP manager, comprises whether successful status indicator of inquiry in this response, if successful inquiring also comprises Query Result.
If the present invention is only with notifying the daily record attribute and quoting the XML file, and the daily record of 44 pairs of notices of notice daily record reference manager is when writing down, managing and operating, then in this step, 41 call notification daily records of treatment progress reference manager 44 of IRP Agent device carries out query manipulation, that is: at first quote the condition of quoting that finds corresponding notice daily record in the XML file according to being identified at of the notice daily record in the operation requests, quote current record number and the current space of occupying that condition is upgraded corresponding notice daily record attribute according to this again, obtain the attribute of this notice daily record then.
When the IRP Agent device is received the operation requests of log recording in the daily record of inquiry notice, then execution in step 571 and step 572;
Step 571, the treatment progress 41 call notification daily record reference managers 44 of IRP Agent device are carried out inquiry notice daily record recording operation, that is: notifying daily record reference manager 44 to quote the notice daily record that finds correspondence the XML file according to the sign of the notice daily record in the operation requests from the notice daily record quotes, and obtain the condition of quoting that this notice daily record is quoted, this is quoted condition send notice logger manager 42 to, notice logger manager 42 is quoted condition according to this and is found from notice log record XML file and meet the notice log record that this quotes condition, and the notice daily record set of records ends that will find becomes the XML file, is stored in the IRP Agent device.
If also comprise querying condition in the operation requests of notice log recording in the daily record of inquiry notice, then obtain that described notice daily record quotes quote condition after, from notice log recording XML file, read and meet the notice log recording that this quotes condition and described querying condition, and the notice daily record set of records ends that will find becomes the XML file, is stored in the IRP Agent device.
For example: the IRP manager request: the event time that inquiry is designated in 1 the notice daily record is the log record of 02:00, and its querying condition is that event time is the log record of 02:00.After the IRP Agent device is received request, find the notice daily record that is designated 1 notice daily record correspondence and quote, obtain the condition of quoting, in notice log record XML file, find all again and meet the condition of quoting and event time is the notice log record of 02:00.
Step 572, IRP Agent device return inquiry response to the IRP manager, comprise whether successful status indicator of inquiry in this response, if success then also comprises the notice daily record sign and the described memory location that records the XML file of Query Result that are queried.The IRP manager can find this XML file according to the memory location.
When the IRP Agent device is received the operation requests of log recording in the daily record of deletion notice, then execution in step 581 and step 582;
The treatment progress 41 call notification daily record reference managers 44 of step 581, IRP Agent device are deleted notice daily record recording operation in the notice daily record, that is: notice daily record reference manager 44 is identified at the notice daily record according to the notice daily record in the operation requests and quotes and search corresponding notice daily record in the XML file and quote, and revise the condition of quoting that this notice daily record is quoted, the deletion condition promptly superposes in quoting condition, make the IRP manager from this notice daily record is quoted, can't see the notice log record that meets the deletion condition, reach the effect of deletion log record from this notice daily record.But the log recording that filters out still exists in notice log recording XML file, so other notice daily records are quoted and still can be obtained this notice log recording.
Step 582, IRP Agent device be to the response of IRP manager return, comprises whether successful status indicator of deletion record in this response, if success then also comprises successfully having been deleted and notifies the notice daily record of log recording to identify.
For example, IRP manager request: the event time that will be designated in 1 the notice daily record is the log record deletion of 02:00.After the IRP Agent device is received request, find and be designated 1 notice daily record corresponding to notice daily record and quote, revise the quote condition of this notice daily record in quoting, namely increase a filtercondition: will notify daily record quote in all event times be that the notice daily record record filtering of 02:00 falls.Through aforesaid operations, to be that the notice daily record of 02:00 is recorded in this notice daily record all invisible in quoting for all event times in the notice log recording XML file.Therefore the IRP manager is quoted in the notice daily record of seeing by this notice daily record, no longer includes it and requires the notice log recording deleted.
But, also there is a kind of situation: if certain bar notice daily record is recorded in all notice daily records all deleted, then the IRP Agent device can will should be notified log record permanent delet from notice log record XML file, after this, from quoting, any one notice daily record all can't see this notice log record.
In addition, the IRP Agent device also can send record number capacity alarm notification or the alarm notification of record space capacity to some notice daily records: if write down number capacity alarm operation then execution in step 591; If carry out record space capacity alarm operation, then execution in step 594.
Treatment progress 41 call notification logger manager 42 inquiries of step 591, IRP Agent device are notified the log record quantity in the log record XML files and are taken up room, and, obtain on average taking up room of average every log record with taking up room divided by log record quantity;
The treatment progress 41 call notification log manager 43 of step 592, IRP Agent device are upgraded the attribute that the notice daily record that comprises in this operation requests identifies pairing notice daily record, its detailed process is described identical to step 566 with step 561, inquire about the predefine maximum space in this notice daily record attribute again, utilize this predefine maximum space on average to take up room, obtain the max log record number that this notice daily record can be preserved divided by the log record that obtains in the step 591;
If the present invention is only with notifying the daily record attribute and quoting the XML file, and the daily record of 44 pairs of notices of notice daily record reference manager is when recording, managing and operating, then this step search with operation requests in the notice daily record that comprises identify corresponding notice daily record attribute method can for: the treatment progress 41 first call notification daily record reference managers 44 of IRP Agent device at notice daily record attribute with quote and find corresponding notice daily record in the XML file and quote, find again the notice daily record attribute that correspondence is quoted in this notice daily record.
Step 593, the notice log manager 43 current log recording number in this notice daily record attribute after the inquiry renewal in notice daily record attribute XML file, and obtain the ratio of the daily record dominant record number that current log recording number and step 592 obtain, capacity alarm thresholding counted in record in this notice daily record attribute of again request notice log manager 43 inquiries, if the ratio that obtains is crossed described record and counted capacity alarm thresholding, then send the capacity alarm notification to the IRP manager.
Capacity alarm thresholding counted in described record can have a plurality of, and the branch that grade is arranged, in step 593, with the ratio of acquisition and the thresholding contrast of each grade, if this ratio is crossed the record of certain alarm level and is counted capacity alarm thresholding, then send the capacity alarm notification of corresponding level to the IRP manager, if originally sent the different alarm notification of rank, then send the notice that alarm level is revised.This ratio drops under other record number capacity alarm thresholding of lowermost level, then sends cleared alarm.
Above-mentioned capacity alarm operation can periodically be carried out, and also can be added by N of notice logger manager to record to operate initiatively to trigger and carry out, and described N is natural number.
Step 594, the treatment progress 41 call notification log manager 43 of IRP Agent device are carried out following operation: upgrade the attribute that the notice daily record that comprises in this operation requests identifies pairing notice daily record, its detailed process is described identical to step 566 with step 561, current taking up room and maximum occupying space in this notice daily record attribute after inquiry is upgraded again, obtain this current taking up room and the ratio of maximum occupying space, inquire about the record space capacity alarm thresholding of this notice daily record again, if described ratio is crossed described record space capacity alarm thresholding, then send the capacity alarm notification to the IRP manager.
If the present invention is only with notifying the daily record attribute and quoting the XML file, and the daily record of 44 pairs of notices of notice daily record reference manager is when recording, managing and operating, then this step search notice daily record attribute corresponding to the notice daily record sign that comprises with operation requests method can for: the treatment progress 41 first call notification daily record reference managers 44 of IRP Agent device at notice daily record attribute with quote and find corresponding notice daily record in the XML file and quote, find again the notice daily record attribute that correspondence is quoted in this notice daily record.
Described record space capacity alarm thresholding can have a plurality of, and the branch that grade is arranged, in step 594, with the ratio of acquisition and the thresholding contrast of each grade, if this ratio is crossed the record space capacity alarm thresholding of certain alarm level, then send the capacity alarm notification of corresponding level,, then send the notice that alarm level is revised if originally sent the different alarm notification of rank to the IRP manager.If this ratio drops under other record space capacity alarm thresholding of lowermost level, then send cleared alarm.
Above-mentioned capacity alarm operation can periodically be carried out, and also can be added by N of notice logger manager record operation triggering and carry out, and described N is natural number.
Above embodiment one and embodiment two have adopted the daily record of memory reference device representative notice, and the operation for the notice daily record all is mapped as the operation to the memory reference device.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.

Claims (21)

1, a kind of implementation method that daily record is operated to notice, be applicable to the communication system that comprises management system and managed network, it is characterized in that, this method is stored in the notice log record of managed network in the memory, and use at this memory and the device correspondence of quoting that have each self reference condition respectively and represent different notice daily records, managed network will be the corresponding operation of quoting device to described memory at the operation map of notice daily record.
2, the method for claim 1 is characterized in that, being operating as of described notice daily record creates the notice journalizing, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Managed network is preserved notice daily record attribute according to creating parameter in this managed network, comprising creating set of notice log category and the filter that requires in the parameter, device is quoted in memory establishment at described storage notice log record, and it is corresponding with described notice daily record attribute that this quotes device.
3, method as claimed in claim 2, it is characterized in that, the condition of quoting of described memory reference device comprises at least: the maximum space that the notice daily record sign in the notice daily record attribute, notice daily record can take, notice log record life cycle, and the notice log category that requires in establishment condition set and filter.
4, method as claimed in claim 2 is characterized in that, journalizing is notified in the deletion that is operating as of described notice daily record, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Sign according to the notice daily record that will delete finds corresponding memory reference device, deletes this memory reference device, and deletes the notice daily record attribute of this memory reference device correspondence.
5, the method for claim 1 is characterized in that, the notice journalizing is hung up in being operating as of described notice daily record, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Add the sign that comprises notice daily record to be hung, the hang-up record of hanging up the time started and hanging up the concluding time, the hang-up time started wherein is the current operation time, and the hang-up concluding time is endless; And find corresponding memory reference device according to notice daily record to be hung sign, add quoting in the condition of this memory reference device and to comprise the filtercondition of hanging up the time started and hanging up the concluding time, according to this filtercondition make hang up the time started after, hang up the notice daily record of charging to described memory before the concluding time and be recorded in this memory reference device invisible.
6, method as claimed in claim 5 is characterized in that, being operating as of described notice daily record recovers the notice journalizing, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Sign according to the notice daily record that will recover finds corresponding notice daily record to hang up record, and the hang-up concluding time wherein is revised as the current time; Find corresponding memory reference device according to the notice daily record that will recover sign, revise the condition of quoting of this memory reference device, as seen the notice daily record that counts described memory after hanging up the concluding time is recorded in this memory reference device.
7, the method for claim 1 is characterized in that, the log recording operation is notified in being operating as in the daily record of inquiry notice of described notice daily record, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Find corresponding memory reference device according to the notice daily record sign that will inquire about, quote the notice log recording of condition as Query Result with meeting this memory reference device in the described memory.
8, method as claimed in claim 7, it is characterized in that, comprise querying condition in the request of notice daily record recording operation in the daily record of described inquiry notice, then quote the notice log record of condition from described this memory reference device that meets, obtain the notice log record that meets querying condition, with the result that obtains as Query Result.
9, method as claimed in claim 8, it is characterized in that described querying condition comprises a kind of in the following condition at least: the sign of notice log record, charge to the time, the event time of announcement information content, event type, but the perhaps filtered field of announcement information content.
10, the method for claim 1 is characterized in that, the log recording operation is notified in being operating as in the daily record of deletion notice of described notice daily record, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Find corresponding memory reference device according to the notice daily record sign that will delete the notice log recording, in the stack deletion condition in the condition of quoting of this memory reference device, the log recording that will meet the deletion condition filters out from this memory reference device.
11, method as claimed in claim 10, it is characterized in that described deletion condition comprises a kind of in the following condition at least: the sign of notice log record, charge to the time, the event time of announcement information content, event type, but the perhaps filtered field of announcement information content.
As each described method in the claim 1 to 11, it is characterized in that 12, described memory adopts database table storage notice log record, described memory reference device is the data base view of this database table.
As each described method in the claim 1 to 11, it is characterized in that 13, described memory adopts expandable mark language XML file storage notice log record, described memory reference device is quoted for this XML file.
14, method as claimed in claim 13 is characterized in that, the reference stores of described XML file is in the XML file, and the property store of described notice daily record is in the XML file.
15, the method for claim 1 is characterized in that, journalizing is notified in the inquiry that is operating as of described notice daily record, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Find corresponding notice daily record attribute according to the notice daily record that will inquire about sign, the memory reference device by correspondence upgrades this notice daily record attribute, and the notice daily record attribute after will upgrading again is as Query Result.
16, method as claimed in claim 15, it is characterized in that, described memory adopts database table storage notice log record, and described memory reference device is the data base view of this database table, and the detailed process that described updated stored device is quoted the notice daily record attribute of device correspondence is:
A1, in described data base view inquiry current notice log recording number and current notice daily record record space; Hang up the controlled state that this notice daily record judged in record according to the last notice daily record in the memory; Take up room whether reach the availability that maximum occupying space in the described notice daily record attribute is judged this notice daily record according to current notice log recording;
A2, judge the running status of this notice daily record according to the judged result of controlled state and availability;
A3, the inquiry that utilizes above-mentioned steps a1 and a2 and judged result are upgraded the current notice log recording number in the described notice daily record attribute, current notice daily record record space, controlled state, availability and running status.
17, method as claimed in claim 15, it is characterized in that, described memory adopts expandable mark language XML file storage notice log record, described memory reference device is the quoting of this XML file, and the detailed process that described updated stored device is quoted the notice daily record attribute of device correspondence is:
A1, from quoting, the XML file that finds obtains the condition of quoting; According to the condition of obtaining of quoting in the XML file of described storage notice log record inquiry character should quote the current notice log record number of condition; With these on current notice days will record number multiply by on average taking up room of every notice log record, obtain current notice log record and take up room;
Hang up the controlled state that this notice daily record judged in record according to the last notice daily record in the memory; Take up room whether reach the availability that maximum occupying space in the described notice daily record attribute is judged this notice daily record according to current notice log recording;
A2, judge the running status of this notice daily record according to the judged result of controlled state and availability;
A3, the inquiry that utilizes above-mentioned steps A1 and A2 and judged result are upgraded the current notice log recording number in the described notice daily record attribute, current notice daily record record space, controlled state, availability and running status.
18, the method for claim 1 is characterized in that, the capacity alarm operation counted in the record that is operating as the notice daily record of described notice daily record, and managed network with this operation map for the detailed process to the operation of memory reference device is:
A, obtain notice log recording quantity current in the described memory and take up room, and with taking up room divided by record quantity, obtain on average taking up room of average every notice log recording;
B, find the memory reference device corresponding with this notice daily record, upgrade notice daily record attribute corresponding to this memory reference device, find the predefine maximum space of described notice daily record in the notice daily record attribute after this renewal, utilize this predefine maximum space on average to take up room divided by the log recording that step a obtains, obtain the max log record number that this notice daily record can be preserved;
The current log recording number of this notice daily record of inquiry in c, the notice daily record attribute after described renewal, and the max log that obtains to obtain among current log recording number and the step b records the ratio of number, in described notice daily record attribute, inquire about again the record number field value of this notice daily record, if the ratio that obtains then sends capacity alarm notification or alarm level notice of change to network manager greater than this record number field value; If the ratio that obtains, then sends cleared alarm notice or alarm level notice of change less than predefined alarm thresholding.
19, the method for claim 1 is characterized in that, the record space capacity alarm operation that is operating as the notice daily record of described notice daily record, and managed network with this operation map for the detailed process to the operation of memory reference device is:
Find memory reference device corresponding to this notice daily record, upgrade notice daily record attribute corresponding to this memory reference device, current the taking up room and maximum occupying space of inquiry in the notice daily record attribute after this renewal, obtain this current taking up room and the ratio of maximum occupying space, inquire about again the record space thresholding of this notice daily record, if described ratio greater than this record space thresholding, then sends capacity alarm notification or alarm level notice of change to network manager; If the ratio that obtains, then sends cleared alarm notice or alarm level notice of change less than predefined alarm thresholding.
20, as claim 18 or 19 described methods, it is characterized in that, described memory adopts database table storage notice log record, and described memory reference device is the data base view of this database table, and the concrete steps of the pairing notice daily record of described renewal data base view attribute are:
A, in the data base view corresponding with notice daily record sign, inquire about current notice log recording number, calculate current notice log recording and take up room;
B, according to the Query Result of steps A upgrade described data base view current notice log recording number and the current notice log recording in the corresponding notice daily record attribute take up room.
21, as claim 18 or 19 described methods, it is characterized in that, described memory adopts expandable mark language XML file storage notice log record, described memory reference device is quoted for this XML file, and the concrete steps that described renewal XML file is quoted pairing notice daily record attribute are:
A ', from quoting, the XML file that finds obtains the condition of quoting;
B ', according to the condition of quoting obtained in the XML file of described storage notice log recording inquiry character should quote the current notice log recording number of condition; With these on current notice days will record number multiply by on average taking up room of every notice log recording, obtain current notice log recording and take up room; Take up room with the current notice log recording number that obtains and current notice log recording and to upgrade described XML file and quote that institute is corresponding to notify current notice log recording number and current notice log recording in the daily record attribute to take up room.
CNB2004100801970A 2004-08-08 2004-09-24 A kind of implementation method that daily record operates to notice Expired - Fee Related CN100550762C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB2004100801970A CN100550762C (en) 2004-08-08 2004-09-24 A kind of implementation method that daily record operates to notice
PCT/CN2005/001212 WO2006015536A1 (en) 2004-08-08 2005-08-08 A method for realizing notification log operation

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN200410055485.0 2004-08-08
CN200410055486 2004-08-08
CN200410055486.5 2004-08-08
CNB2004100801970A CN100550762C (en) 2004-08-08 2004-09-24 A kind of implementation method that daily record operates to notice

Publications (2)

Publication Number Publication Date
CN1731737A true CN1731737A (en) 2006-02-08
CN100550762C CN100550762C (en) 2009-10-14

Family

ID=35964045

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100801970A Expired - Fee Related CN100550762C (en) 2004-08-08 2004-09-24 A kind of implementation method that daily record operates to notice

Country Status (1)

Country Link
CN (1) CN100550762C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938373A (en) * 2010-08-16 2011-01-05 北京全路通信信号研究设计院 Analysis and treatment method of RBC (Recording Buffer Controller) log record and RBC record analyzer
CN102209134A (en) * 2010-03-30 2011-10-05 深圳富泰宏精密工业有限公司 System and method for automatically retrieving log
CN103473295A (en) * 2013-09-04 2013-12-25 厦门亿联网络技术股份有限公司 Method for reading set-quantity of chat records in XML (extensive markup language) files
CN109753029A (en) * 2017-11-06 2019-05-14 西门子股份公司 The method and operator's system of identification and display operation person's access process object

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209134A (en) * 2010-03-30 2011-10-05 深圳富泰宏精密工业有限公司 System and method for automatically retrieving log
CN101938373A (en) * 2010-08-16 2011-01-05 北京全路通信信号研究设计院 Analysis and treatment method of RBC (Recording Buffer Controller) log record and RBC record analyzer
CN103473295A (en) * 2013-09-04 2013-12-25 厦门亿联网络技术股份有限公司 Method for reading set-quantity of chat records in XML (extensive markup language) files
CN109753029A (en) * 2017-11-06 2019-05-14 西门子股份公司 The method and operator's system of identification and display operation person's access process object

Also Published As

Publication number Publication date
CN100550762C (en) 2009-10-14

Similar Documents

Publication Publication Date Title
CN1304968C (en) Service processor and service processing method
CN101061688A (en) Network management apparatus and method based on simple network management protocol
CN1260665C (en) Electronic apparatus for managing changeable storage medium, method thereof and storage medium
CN1167020C (en) Data sharing method, terminal and medium on which program is recorded
CN1752977A (en) File access service system, exchange apparatus, quota management method and program
CN101060427A (en) A system and method for realizing the remote software updating
CN1377165A (en) Electronic message systems
CN101051937A (en) User's power managing method and system based on XML
CN1649292A (en) Timer for setting router
CN1859227A (en) Method and system for monitoring service quality according to service level protocol
CN1131859A (en) Subscriber information service system
CN101031886A (en) Network system, management computer, cluster management method, and computer program
CN1292531A (en) Information management system and method
CN1820514A (en) System architecture method and computer program product for managing telecommunication networks
CN101068378A (en) Method, system and equipment for realizing multimedia information service system disaster recovery
CN1866250A (en) Method and system for managing system data
CN101038640A (en) Worksheets priority level administration method and system, and worksheets process method and system
CN1223025A (en) Real-time pricing control system and method regarding same
CN1285229C (en) Method, system for acquiring status information of mobile subscriber and corresponding subscriber identification module
CN101080077A (en) Maintenance method of device management tree and terminal device
CN1855833A (en) Media for storing connecting and switch programs, electronic conference system and connecting and switch method
CN1731737A (en) Realization method for operating notify.log
CN1431785A (en) Local proxy server
CN1643496A (en) Data organization in a smart card
CN1645326A (en) Method and system for updating software function

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091014

Termination date: 20200924

CF01 Termination of patent right due to non-payment of annual fee