Dear All,

I want to modify my release.js and Rec2Evt.map, After i finished
the work, how to import into SCC? Thanks!


release.js
================================================== ======================================
Record.prototype.parse = function(e){
if (this.s_RXBufferString == "" || this.s_RXBufferString.length == 0
) {
return false;
}

this.msg = this.msg.replace(/ /g,'');
this.msg = this.msg.replace(/\r\n/g,'');
this.msg = this.msg.replace(/\n/g,'');
this.msg = this.msg.replace(/\t/g,'');
if
(/^Index.*New-TransportRule.*From=\{(\S+)@(\S+)\}.*CopyTo=\{(\S+ )@(\S+)\}}.*Category.*$/.test(this.msg))
{
this.evt = "New-TransportRule";
this.sun = RegExp.$1;
this.dun = RegExp.$3;
this.iemail = RegExp.$1 + "@" + RegExp.$2;
this.temail = RegExp.$2 + "@" + RegExp.$4;
return true;
} else {
return false;
}

}
================================================== ============================================

================================================== ================================================
Record.prototype.parse = function(e){
if (this.s_RXBufferString == "" || this.s_RXBufferString.length == 0
) {
return false;
}

this.msg = this.msg.replace(/ /g,'');
this.msg = this.msg.replace(/\r\n/g,'');
this.msg = this.msg.replace(/\n/g,'');
this.msg = this.msg.replace(/\t/g,'');
if
(/^Index.*New-TransportRule.*Name=(.*),.*From=\{(\S+)@(\S+)\}.*C opyTo=\{(\S+)@(\S+)\}}.*Category.*$/.test(this.msg))
{
this.evt = "New-TransportRule";
this.cv25 = RegExp.$1;
this.sun = RegExp.$2;
this.dun = RegExp.$4;
this.iemail = RegExp.$2 + "@" + RegExp.$3;
this.temail = RegExp.$4 + "@" + RegExp.$5;
return true;
}
else if
(/^Index.*Set-TransportRule.*Name=(.*),.*CopyTo=\{(\S+)@(\S+)\}} ,.*/.*/(.*),.*CmdletLogs.*$/.test(this.msg))
{
this.evt = "Set-TransportRule";
this.cv25 = RegExp.$1;
this.dun = RegExp.$2;
this.sun = RegExp.$3;
return true;
}
else {
return false;
}

}

================================================== =================================================

Rec2Evt.map
================================================== =============================

~~Sentinel Event Field~~,~~Input Record Field~~
~~Do not modify the first column~~
CustomerVar010,cv25
================================================== ============================



BR


--
steve_zeng
------------------------------------------------------------------------
steve_zeng's Profile: https://forums.netiq.com/member.php?userid=3875
View this thread: https://forums.netiq.com/showthread.php?t=47863