NTP alert in logs
We have a critical NTP alert in the logs. UCCX is configured to pull NTP from CUCM1(primary) and CUCM2(sub). It is failing to pull time from CUCM2.
I haven't done a "utils NTP restart" yet because I wasn't sure if it would affect service.CUCM2 has a good NTP status.
Here is the output of the "Utils NTP Status" command from UCCX.
admin:utils ntp status
ntpd (pid 18134) is running...
remote refid st t when poll reach delay offset jitter
==============================================================================
*CUCM1 192.5.41.40 2 u 971 1024 377 0.341 0.418 0.496
CUCM2 .STEP. 16 u - 1024 0 0.000 0.000 4000.00
synchronised to NTP server (CUCM1) at stratum 3
time correct to within 91 ms
polling server every 1024 s
Current time in UTC is : Thu Jan 10 22:24:35 UTC 2013
Current time in America/Chicago is : Thu Jan 10 16:24:35 CST 2013
Any help would be appreciated. Also if someone know if I can do a "utils ntp restart" during the day, would be great.
thank you
KG
First of all, subscriber call managers always point to primary cucm for time and that can't be changed. So, you are not really gaining much by having cucm2 as a ntp server.
Is ntp synced on the primary cucm to a external ntp server or not?
Yes, you can restart ntp without effecting anything during the day.
Remember if you are running 8.x on VMware, changing the ntp server address will change the license Mac hash.
Sent from Cisco Technical Support iPhone App
Similar Messages
-
After effects alert last log message
What to do when I get this message when opening after effects cs6?
cs6 after effects Alert last log message was: <140735200987488> >GPUManager> <2>Sniffer Result Code: 3. Generating crash log, which may take a few minutes.
I just cannot open after effects anymore.Hi,
Now I here again, my Mac os X version is 10.7.5
Prosessor is 2.66ghz intel core 2 duo
memory 4gt 1067 mhz DDR3
Graphic card: NVIDIA GeForce 9400 256 MB
After effects version is 11.0 if I am checking it right
I have used after effects about three mounths and suddenly it just quiet working. That´s not good for my work. Luckily I got almost everything in premiere pro. Because I can´t even use files from AE in Premiere pro.
I have rebooted machine.
I haven´t reinstall AE yet. I will.
How do I trash preferences and from where? I cannot open AE at all. -
Abrupt increase in alert SID .log file size
alert<SID>.log file is abrubtly increasing in size which is in process filles up a disk space, hence further no DB login.
I shutdown the database, took a bakup of the alert log file, nullified the alert log ( using cat /dev/null > alert.log) and started up the database.
As of now, its okay, but can I nullify this alert log file while the database is up and running..???It is better to write a simple shell script to housekeep the alert.log.
Below is an example
if [ `ls -al $ALERTLOG | awk '{print $5}'` -gt 2500000 ]
then
cp -p $ALERTLOG $ALERTLOG.`date +%d%m%y`
cat /dev/null > "$ALERTLOG
gzip $ALERTLOG.`date +%d%m%y`
find "$ALERTLOGFOLDER "-name *.gz -mtime +10 -print -exec rm {} \;"
fi
Also, you need to housekeep adump, bdump, cdump ... etc folders -
Hi,
When I configured alert monitoring. Alert is creating when I run report SXMSALERT_PROCESS_DATA_GET. But this alert is not reflecting in the alert inbox eventhough all configuration done. Then I have gone to log then I found errors as follows.
warning: Address receiptent of "KPRKS00" (INT) could not be determined. ( I configured this user as single receiptent in tcode alrtcatdef).
ERROR: send Request for INT has no receipients.
Any help in this regard is welcome. Thanks in advance.
Thanks,
Mallikarjun.MHi,
I follwed according to your steps. Finally I checked in alert Monitoring log, In that I noticed error as follows.
warning: Address receiptant of "KPSSO" (INT)could not determined.
ERROR: BCS Exception (DNS_SREQ) occured.
I notice this is bcoz in tcode "ALERTCATDEF" in configuraiton I selected "internal processing".
I hope a favourable reply. Thanks in advance.
Thnaks,
Mallikarjun.M -
Alert & Audit Log Purging sample script
Hi Experts,
Can somebody point to sample scripts for
1. alert & audit log purging?
2. Listener log rotation?
I am sorry if questions look too naive, I am new to DBA activities; pls let me know if more details are required.
As of now the script is required to be independent of versions/platforms
Regards,34MCA2K2 wrote:
Thank a lot for your reply!
If auditing is enabled in Oracle, does it generate Audit log or it inserts into a SYS. table?
Well, what do your "audit" initialization parameters show?
For the listener log "rotation", just rename listener.log to something else (there is an OS command for that), then bounce the listener.
You don't want to purge the alert log, you want to "rotate" it as well. Just rename the existing file to something else. (there is an OS command for that)
So this has to be handled at operating system level instead of having a utility. Also if that is the case, all this has to be done when database is shut down right?
No, the database does not have to be shut down to rotate the listener log. The database doesn't give a flying fig about the listener log.
No, the database does not have to be shut down to rotate the alert log. If the alert log isn't there when it needs to write to it, it will just start a new one. BTW, beginning with 11g, there are two alert logs .. the old familiar one, now located at $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace, and the xml file used by adrci. There are adrci commands and configurations to manage the latter.
Again, I leave the details as an exercise for the student to practice his research skills.
Please confirm my understanding.
Thanks in advance! -
Alert SID .log file size too big ,How to keep it under control
alert<SID>.log file size too big ,How to keep it under control?
-rw-r--r-- 1 oracle dba 182032983 Aug 29 07:14 alert_g54nha.logMetalink Note:296354.1
-
Set alert for log file free space
We need to set an alert in case the log file fills up to a certain level (ST04 - Space usage - Total log size / Free space)
Which parameter should we set in solman for this?
Thanks in advancesetup your CCMS agents to monitor the log files
http://help.sap.com/saphelp_nw04/helpdata/en/65/f3156d443e744abe15dbe14e4e32b5/content.htm -
I am getting the following in my /var/log/errors.log. Does this make sense to anyone?
Feb 4 11:51:28 mail ntpd[1134]: bind(21) AF_INET6 fe80::213:72ff:fe69:af50%2#123 flags 0x1 failed: Cannot assign requested address
Feb 4 11:51:28 mail ntpd[1134]: unable to create socket on eth0 (5) for fe80::213:72ff:fe69:af50#123
Feb 4 11:51:29 mail ntpd[1134]: bind(22) AF_INET6 fe80::213:72ff:fe69:af50%2#123 flags 0x1 failed: Cannot assign requested address
Feb 4 11:51:29 mail ntpd[1134]: unable to create socket on eth0 (6) for fe80::213:72ff:fe69:af50#123
I just installed / configured this machine and when I check my /etc/ntp.conf file I see only:
server pool.ntp.org
driftfile /var/lib/ntp/ntp.drift
restrict default nomodify nopeer
restrict 127.0.0.1
Any info as to how I can keep my 'ntpd' from getting errors?First of all, subscriber call managers always point to primary cucm for time and that can't be changed. So, you are not really gaining much by having cucm2 as a ntp server.
Is ntp synced on the primary cucm to a external ntp server or not?
Yes, you can restart ntp without effecting anything during the day.
Remember if you are running 8.x on VMware, changing the ntp server address will change the license Mac hash.
Sent from Cisco Technical Support iPhone App -
Alerting or logging from AnyConnect NAM
We are planning to use Cisco AnyConnect Network Access Manager as a 802.1x supplicant for our wired network as we ran into issues with Microsoft
native supplicant. There are certain advantages in using inbuilt supplicant on Windows as one can get desired information from event log about the dot1x events and use them to alert in case of failures. I however don't see a similar logging available in Cisco AnyConnect NAM. We can of course use DART bundle, but we would like to have a detailed dynamic logs from the client to build automation to alert NOC on any dot1x failure in the network.
Thanks,
VijayYou should use "live authentication" logs from ISE. You can also configure to switch to send the switch logs to ISE, that way when you click the details of ISE "live authentication" you will see in the same screen both the ISE logs and the switch logs.
If you want alerts, you can go to "Operations > Alarms > Rules" and set alarms. You can configure ISE to send the alarms by email or by using syslog.
Please rate if this helps -
Report Printing Alerts or Logs
Hi all,
I have a requirement to be able to tell if a Report has been printed or not, and why not (if possible).
Is there a way to do this with BI Publisher?
Thanks,
Alejandro.Printer is out of paper. How would Oracle ever begin to know that?
-
Rogue alert log in $ORACLE_HOME/dbs
Hi there, have looked all over and not yet found the answer to my query. I have a database instance running at 10.2.0.4.0. There is a rougue alert-{ORACLE_SID}.log created in $ORACLE_HOME/dbs directory when an instance is started. Show parameter background_dump_dest points to the correct directory - $ORACLE_ADMIN/$ORACLE_SID/bdump wether using spfile or pfile. To confirm what is happening I shutdown the instance and deleted both alert logs from the two locations and restarted the instance. Again two alert logs were created. Can anyone please advise why this is happening. I have found threads suggesting that logs are created in $ORACLE_HOME/dbs as default if parameters are not set correctly, but this is creating an alert log in two locations at startup.
in $ORACLE_ADMIN/$ORACLE_SID/bdump/alert_DBAASS06.log shows -
[oracle@el64dev03 bdump]$ cat alert_DBAASS06.log
Wed Jul 24 09:29:19 2013
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Shared memory segment for instance monitoring created
Picked latch-free SCN scheme 3
Autotune of undo retention is turned on.
IMODE=BR
ILAT =30
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.4.0.
System parameters with non-default values:
processes = 250
__shared_pool_size = 92274688
__large_pool_size = 4194304
__java_pool_size = 4194304
__streams_pool_size = 0
nls_language = ENGLISH
nls_territory = UNITED KINGDOM
sga_target = 327155712
control_files = /oradata/10.2.0/DBAASS06/DBAASS06ctrl01.ctl, /oradata/10.2.0/DBAASS06/DBAASS06ctrl02.ctl
db_block_size = 8192
__db_cache_size = 218103808
compatible = 10.2.0.4.0
log_archive_dest_1 = LOCATION=/oradata/10.2.0/DBAASS06/archive
log_archive_format = DBAASS06%t_%s_%r.dbf
db_file_multiblock_read_count= 16
undo_management = AUTO
undo_tablespace = UNDO
remote_login_passwordfile= EXCLUSIVE
db_domain = bctn.wheatley-associates.co.uk
utl_file_dir = *
job_queue_processes = 10
background_dump_dest = /orahome/app/oracle/admin/DBAASS06/bdump
user_dump_dest = /orahome/app/oracle/admin/DBAASS06/udump
core_dump_dest = /orahome/app/oracle/admin/DBAASS06/cdump
session_max_open_files = 20
sort_area_size = 65536
db_name = DBAASS06
db_unique_name = DBAASS06
open_cursors = 300
pga_aggregate_target = 31457280
PMON started with pid=2, OS id=13977
PSP0 started with pid=3, OS id=13979
MMAN started with pid=4, OS id=13981
DBW0 started with pid=5, OS id=13983
DBW1 started with pid=6, OS id=13985
LGWR started with pid=7, OS id=13987
CKPT started with pid=8, OS id=13989
SMON started with pid=9, OS id=13991
RECO started with pid=10, OS id=13993
CJQ0 started with pid=11, OS id=13995
MMON started with pid=12, OS id=13997
MMNL started with pid=13, OS id=13999
Wed Jul 24 09:29:57 2013
ALTER DATABASE MOUNT
Wed Jul 24 09:30:01 2013
Setting recovery target incarnation to 2
Wed Jul 24 09:30:01 2013
Successful mount of redo thread 1, with mount id 3614370965
Wed Jul 24 09:30:01 2013
Database mounted in Exclusive Mode
Completed: ALTER DATABASE MOUNT
Wed Jul 24 09:30:01 2013
ALTER DATABASE OPEN
Wed Jul 24 09:30:01 2013
LGWR: STARTING ARCH PROCESSES
ARC0 started with pid=15, OS id=14163
Wed Jul 24 09:30:01 2013
ARC0: Archival started
ARC1: Archival started
LGWR: STARTING ARCH PROCESSES COMPLETE
ARC1 started with pid=16, OS id=14165
Wed Jul 24 09:30:01 2013
Thread 1 opened at log sequence 14
Current log# 2 seq# 14 mem# 0: /oradata/10.2.0/DBAASS06/DBAASS06_redo02.log
Successful open of redo thread 1
Wed Jul 24 09:30:01 2013
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Wed Jul 24 09:30:01 2013
ARC1: Becoming the 'no FAL' ARCH
ARC1: Becoming the 'no SRL' ARCH
Wed Jul 24 09:30:01 2013
ARC0: Becoming the heartbeat ARCH
Wed Jul 24 09:30:01 2013
SMON: enabling cache recovery
Wed Jul 24 09:30:01 2013
Successfully onlined Undo Tablespace 1.
Wed Jul 24 09:30:01 2013
SMON: enabling tx recovery
Wed Jul 24 09:30:01 2013
Database Characterset is WE8MSWIN1252
Opening with internal Resource Manager plan
where NUMA PG = 1, CPUs = 12
replication_dependency_tracking turned off (no async multimaster replication found)
Starting background process QMNC
QMNC started with pid=17, OS id=14167
Wed Jul 24 09:30:01 2013
Completed: ALTER DATABASE OPEN
[oracle@el64dev03 bdump]$
There is also a trace file created -
[oracle@el64dev03 bdump]$ cat dbaass06_lgwr_13987.trc
/orahome/app/oracle/admin/DBAASS06/bdump/dbaass06_lgwr_13987.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /orahome/app/oracle/product/10.2.0/db_1
System name: Linux
Node name: el64dev03.bctn.wheatley-associates.co.uk
Release: 2.6.32-300.39.2.el5uek
Version: #1 SMP Wed Dec 19 14:56:59 PST 2012
Machine: x86_64
Instance name: DBAASS06
Redo thread mounted by this instance: 1
Oracle process number: 7
Unix process pid: 13987, image: [email protected]
*** 2013-07-24 09:30:01.622
*** SERVICE NAME:() 2013-07-24 09:30:01.622
*** SESSION ID:(275.1) 2013-07-24 09:30:01.622
Maximum redo generation record size = 156160 bytes
Maximum redo generation change vector size = 150676 bytes
tkcrrsarc: (WARN) Failed to find ARCH for message (message:0x10)
tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0x10)
in $ORACLE_HOME/dbs/alert_DBAASS06.log shows -
[oracle@el64dev03 dbs]$ cat alert_DBAASS06.log
Wed Jul 24 09:29:19 2013
Adjusting the default value of parameter parallel_max_serversThanks for the reply. The cloned database source looks like it uses spfile on startup on the test box, but as I hadn't checked this at the time it was cloned, the spfile was not copied over, so I'm assuming it would have used the default init.ora created which had the correct dump dest defined. As for the new database, it was created from scratch, so I don't see why this should not work correctly. Unfortunately as I am new to this establishment, I have no history as to how Oracle was installed on either machine or how any of the other databases were created, though I do understand that many may have been cloned.
So while I can't speak for the databases that already existed on the Dev box, it seemed weird that they all appeared to be doing the same thing. So I found one that hadn't been started for a while for which there was no historic alert log in dbs and started it to see what happened. It had no spfile, started with pfile and did not create a rogue log. I created an spfile and restarted and still no rouge log. I ran show paremeters and compared to another similar database that had a rougue log, DASSEN02 v DASSEN04 and the only differences were with the instance name and all the files (bdump, cdump etc) existed correctly. Had a further look ref RMAN as some but not all databases had snapcf files in the dbs directory, but again some that had snap files had rougue alert files and others didn't. Also double checked file permissions on the bdump directory, no issues there. Unexplained issues really do bug me, but I think I'll just have to live with not knowing for now, till I have a spare few hours to look at again. -
Been playing around with 11g,mainly with ADRCI (trying to identify what it does, etc...) and from what I can see, based on the documentation, within ADRCI, you can purge incidents, problems, reports, etc...
So, I set my SHORTP_POLICY to 168 (7 fdays), and within ADRCI, if I just type "purge" (or purge -age 60 -type alert), should it not purge the alert logs (I assume it will do both the log.xml and alert_<SID>.log files????).
This doesn't seem to work...Has anyone tried (or worked) with this.
And I also assume that because there are policies (SHORTP_POLICY & LONGP_POLICY), that there is some kind of automated purging process? is this correct?
ThanksI've read that and a few other related articles. Those are for the database ADR homes, which i'm relatively comfortable with:
You goto ORACLE_BASE for the database oracle user (ie. /u01/app/oracle), cycle through all results in adrci exec="show homes", and do a purge -age XXXXX. Either that, or wait the 7-day rolling purge period in which ADR automatically purges for a SHORTP policy (30 days) or the LONGP policy (365 days).
I'm talking about the grid user. That means the +ASM instance's logs, CRS data/logs, the listener, and scan_listener entries.
my general understanding is for the grid user, adr homes typically reside under:
/u01/app/grid (which is the typical ORACLE_BASE)
/u01/app/11.2.0/grid/log (which is the typical ORACLE_HOME/log)
.. but there are a ton of other things.
MOS 1368695.1 spells out the clusterware log locations and some of their archival policies:
<GRID_HOME>/log/$HOST/alert$HOST.log
<GRID_HOME>/log/$HOST/client
<GRID_HOME>/log/$HOST/racg*
<GRID_HOME>/log/$HOST/srvm
<GRID_HOME>/rdbms/audit
<GRID_HOME>/log/diag/*
I've been told by ora support that these dir's are not auto-rotated.. have to be manually handled by the DBA. Some of these dir's under $GRID_HOME/log/<server_name>/ . . ., and they are owned by both ROOT and GRID users. So I was wondering how the rest of the community is dealing with it? How large have people typically made their /u01/app filesystems? Have they done purging via a cron script under the grid user or root user? -
User defined metrics for alert log errors
I want to create UDM for getting the full description of alert log ORA - error to be reported via E-mail. Can somebody guide me or help me withe script which can be used to create this alert. Currently, We get the only the message of that error is generated; which request us to manually check the alert to log to figure out the error.
Hi,
what metric did you use and what is the database version.
There are metrics related to alert log errors but those which have status at the end of a name return number of errors
and w/o status provide error description:
11g
Generic Incident - error message
Generic Incident Status - number of errors
10g
Generic Alert Log Error - error message
Generic Alert Log Error Status - number of errors
Did you set Generic Incident or Generic Alert Log Error? If description is not enough
you might use UDM but it would be easier for 11g since there are internal views which
have access to ADR, for 10g it will be required to build additional procedure (to open and read alert log) -
Hi All
My database is on Windows machine OS version MS Windows 2003 SP2 64 bit with genuine intel processor from EM 64T family. The alert log is expected to capture all error messages and for a DBA it points one of the most important trouble shooting areas if any problem with the database is referred to .. also does it grow continuously as the database ages in time ..
Earlier on UNIX machines I used to backup the alert log file for future referance and then would trim the file size so that it wont grow beyond manageable limits.. I was using vi editor, cp command and other unix filters like head etc..
but on windows we do not have the filters .. neither could I open the alert log file trim the top few lines and save it so that its size is still manageable by the os.. I am at the moment clueless as to how could I do this activity.. I was doing some google offlate and learnt that for listener log, we have some options like
lsnrctl set file_name <NEW LOG FILE_NAME>
to refresh the listener log to a new file and thus avoid it growing huge in size. Do we have any such fascility for managing alert log as well? It would not always be possible to shut down the database just to trim the alert log file.. and on windows I am not sure about other options..
Thank you ..
Sarat.Here is from a previous post:
I've been managing Oracle database mostly on Linux for years. Now I'm in an all windows shop and need a script to check my alert logs. Batch programming is junk, can't be trusted, errorlevel is worthless, so I wrote this little program.
This is the begining of alert_log_checker.vbs
' Check the alert log for errors, then send email and rename file
' takes the alert log location as the 1st parameter
Set oArgs = WScript.Arguments
' Set this to the log you want to check for or pass it in. currently its passed in
v_alert_log = oArgs(0)
' Set this to the text pattern you want to grep for
v_pattern = "ORA-"
v_mail_to = "[email protected]"
Set objNet = CreateObject("WScript.NetWork")
v_computername = objNet.ComputerName
v_mail_from = v_computername & "@someplace.com"
' Check if the file exists
if FileExists(v_alert_log) = FALSE then
'wscript.echo "No log file" & v_alert_log
Wscript.quit(0)
end if
' Grep the log
v_grepResults = GrepFile(v_alert_log,v_pattern)
if v_grepResults = "" then
'wscript.echo "Log is empty"
wscript.quit(0)
else
' send email concerning alert
Set WshShell = WScript.CreateObject("WScript.Shell")
Return = WshShell.Run("sendmail.vbs -t "& chr(34) & v_mail_to & chr(34) &" -f "& chr(34) & v_computername & "@crocentral.com "& chr(34) &" -s "& chr(34) & "Oracle Alerts in Log on "& v_computername & chr(34) & " -a "& v_alert_log & " -b "& chr(34) & v_grepresults & chr(34), 1, true)
Set WshShell = Nothing
' rename file prepending date time YYYYMMDD_HHMM
renameLogFile(v_alert_log)
wscript.quit(0)
end if
'*********************** FileExists
Function FileExists(filespec)
Dim fe, msg
Set fe = CreateObject("Scripting.FileSystemObject")
If (fe.FileExists(filespec)) Then
msg = TRUE
Else
msg = FALSE
End If
FileExists = msg
End Function
'*********************** GrepFile
Function GrepFile(p_txtFile, p_pattern)
Dim v_txtTemp, objFS, objFL, v_lineTemp
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objFL = objFS.OpenTextFile(p_txtFile)
Do While Not objFL.AtEndOfStream
v_lineTemp=objFL.ReadLine
if instr(1,v_lineTemp,p_pattern,1) > 0 then
v_txtTemp = v_txtTemp & v_lineTemp & vbCrLf
end if
Loop
objFL.Close
Set objFS = Nothing
GrepFile = v_txtTemp
End Function
'*********************** renameLogFile
sub renameLogFile(p_file)
dim v_file, v_path, v_filename, v_newname, v_yyyymmdd
v_dtNow = Now()
v_YYYYMMDD24hhMM = Right("0" & Year(v_dtNow), 4) & Right("0" & Month(v_dtNow), 2) & Right("0" & Day(v_dtNow), 2) & "_" & replace(FormatDateTime(v_dtnow,4),":","")
Set fso = CreateObject("Scripting.FileSystemObject")
set v_file=fso.GetFile(p_file)
v_path=v_file.ParentFolder
v_filename = v_file.name
v_newname = v_path & "\" & v_YYYYMMDD24hhMM & "_" & v_filename
'wscript.echo v_newname
v_file.Move v_newname
end sub
*** this is the end of alert_log_checker.vbs
alert_log_checker.vbs calls sendmail.vbs is is below, which I didn't write (just hacked) and am including for the whole package.
*** begin sendmail.vbs
' Sends email from the remote SMTP service using CDO objects
' Usage:
' sendmail -t <to> -f <from> -s "<subject>" -b "<message>"
' sendmail [-help|-?]
'Option Explicit
'On Error Resume Next
Dim objSendMail, oArgs, ArgNum
Dim strTo, strFrom, strSubject, strBody, strAttachFile, strBodyFile
strBodyFile=FALSE
Set oArgs = WScript.Arguments
ArgNum = 0
While ArgNum < oArgs.Count
Select Case LCase(oArgs(ArgNum))
Case "-to","-t":
ArgNum = ArgNum + 1
strTo = oArgs(ArgNum)
Case "-from","-f":
ArgNum = ArgNum + 1
strFrom = oArgs(ArgNum)
Case "-subject","-s":
ArgNum = ArgNum + 1
strSubject = oArgs(ArgNum)
Case "-body","-b":
ArgNum = ArgNum + 1
strBody = oArgs(ArgNum)
Case "-bf":
ArgNum = ArgNum + 1
strBodyFile=TRUE
strBody = oArgs(ArgNum)
Case "-attachfile","-a":
ArgNum = ArgNum + 1
strAttachFile = oArgs(ArgNum)
Case "-help","-?":
Call DisplayUsage
Case Else:
Call DisplayUsage
End Select
ArgNum = ArgNum + 1
Wend
'WScript.Echo strto & strFrom & strsubject & strbody
If oArgs.Count=0 Or strTo="" Or strFrom="" Or strSubject="" Then
Call DisplayUsage
Else
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = strsubject
objMessage.From = strFrom
objMessage.To = strto
if strBodyFile = TRUE then
objMessage.TextBody = ReadFile(strbody)
else
objMessage.TextBody = strbody
end if
if strAttachFile <> "" then
'wscript.echo "attaching file"
objMessage.AddAttachment(strAttachFile)
end if
end if
'==This section provides the configuration information for the remote SMTP server.
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "jupiter"
'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objMessage.Configuration.Fields.Update
'==End remote SMTP server configuration section==
objMessage.Send
' Display the usage for this script
Sub DisplayUsage
WScript.Echo "Usage:"
WScript.Echo " sendmail -t <to address> -f <from address> -s " & _
Chr(34) & "<subject>" & Chr(34) & " -b " & Chr(34) & _
"<message body>" & Chr(34)
WScript.Echo " -a <attachment file name>"
WScript.Echo " sendmail [-help|-?]"
WScript.Echo ""
WSCript.Quit
End Sub
Function ReadFile(txtFile)
Dim txtTemp, objFS, objFL
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objFL = objFS.OpenTextFile(txtFile)
Do While Not objFL.AtEndOfStream
txtTemp = txtTemp & objFL.ReadLine
txtTemp = txtTemp & vbCrLf
Loop
objFL.Close
Set objFS = Nothing
ReadFile = txtTemp
End Function
*** end sendmail.vbs -
i have a alert log in <grid home>/log/<node>/alert<node>.log that is growing in size and is also owned by root. is this just like a DB alert log and if I rename it a new one will be created. i'm not sure how to maintenance this log file and I don't want to guess - any suggestions or documentation are appreciated.
thanks.You can use the ADRCI to manage (purge,etc..) the logs of Oracle.
See this links..
http://www.dbasupport.com/oracle/ora11g/ADRCI-Extended-Commands.shtml
http://www.databasejournal.com/features/oracle/article.php/3875896/Purging-Oracle-Databases-Alert-Log-with-ADRCI---Usage-and-Warning.html
Regards,
Levi Pereira
Maybe you are looking for
-
The bar in which the Black apple is located along with File Edit View History Bookmarks is blue. Then Tools Window Help up to the battery charge is brown/beige. Then the rest returns to blue. I have a photo which displays this problem very clearly. T
-
How to get response.getParameter in array type ?
i have email page in JSP. (page1.jsp) contains ========================================== TO : < having multiple email address so its array of string > From : < String > Subject : < string > Message : <String msg> ====================================
-
Integration with Remedy ARS to SAP using web services
Hi! There have been made a wsdl file from a sap babi, this file is loaded into remedy and the fields are mapped (input and output). When doing a search from the remedy using the wsdl file, we get the error "No selection criteria specified", even if t
-
CD/DVD drive door opens when eMac wakes from sleep
I have two identical eMacs running OS 10.4.9 but for some reason one of them has a problem where the CD/DVD drive door opens by itself when I wake it up. Has anyone experienced this problem? Thanks! Brent
-
Adobe continually wants to reupdate Media Encoder 4.2 over and over..
Adobe Updater on my iMac running Snow Leopard, weekly (automatic check for updates to my Suite of Adobe Procucts) wants to keep re-update Media Encoder 4.2. I did it a long time agao but keep getting the message to install the 100 Mbyte file Encoder