Script to check aur status
I'm trying to write a script to check the status of a package on aur; ie, to see if its been updated since I've installed it.
Here's what I have so far:
#!/bin/sh
PACK=$1 #package name
PACKID=$2 #package ID on AUR
#grab last updated of package on AUR
LUPD=`elinks -source http://aur.archlinux.org/packages.php?ID=$PACKID | grep "Last Updated" | awk -F : '{print $2}'`
LAST=`grep -c $PACK /var/log/pacman.log` #number of instances of package
INST=`grep $PACK /var/log/pacman.log | sed -n ${LAST}p` #get last instance
echo -e "Package: $PACK \n $INST \n Last Update: $LUPD"
This basically works fine for manually inputting a package name and AUR ID (though it needs to be prettied up):
[mike@esme abs]$ aurcheck rxvt-unicode-256color 13060
Package: rxvt-unicode-256color
[2008-04-18 20:01] installed rxvt-unicode-256color (9.02-1)
Last Update: Sun, 04 May 2008 14
but what I envision is having a two column file with the first column the package name and the second the ID but I can't figure out how to make this loop around for each line of such a file. If anyone can provide some help/pointers I'd greatly appreciate it.
PS Perhaps yaourt can do this for you, but I don't use yaourt and would like to learn how to do this even just to improve my scripting abilities
Thanks!
Daenyth wrote:Oh wow, I had no idea such a thing existed... Very cool!
Expanding on my suggestion, here's the bash/js-script I use to find packages in AUR:
wget="/usr/bin/wget -q -O-"
aurrepo="http://aur.archlinux.org/rpc.php?type=search&arg="
js="/usr/bin/js"
aur() {
local iam="${FUNCNAME[0]}:"
local cmd="${1}"
local what="${2}"
local aurresult=""
[[ -z "${cmd}" ]] && {
echo "${iam}: use ${iam} (cmd) searchstring"
return 1
aurresult="$(${wget} ${aurrepo}${what})"
${js} -e "
var out = ${aurresult};
var res = out.results;
var i, j, len;
var tabs = ' ';
var tabstop1 = 13;
var oneline1 = {
'ID':true, 'CategoryID':true, 'NumVotes':true,
'OutOfDate':true, 'License':true
var oneline2 = {'Name':true, 'Version':true};
var line1='', line2='';
var others = {};
function tabto(string) {
return tabs.substring(1, tabstop1 - string.length);
if (out.type === 'error') {
print(res);
quit(1);
for (i in res) {
others = {};
line1 = '';
line2 = '';
for (j in res[i]) {
if ((typeof oneline1[j] !== 'undefined')
&& (typeof res[i][j] === 'string')) {
if (line1.length > 0) line1 = line1 + '; ';
line1 = line1 + j + ': ' + res[i][j];
} else if ((typeof oneline2[j] !== 'undefined')
&& (typeof res[i][j] === 'string')) {
if (line2.length > 0) line2 = line2 + '; ';
line2 = line2 + j + ': ' + res[i][j];
} else {
others[j] = res[i][j];
print(line2);
print(line1);
for (k in others) {
print(k + ':' + tabto(others[k]) + others[k]);
print('---');
quit(0);
return $?
Note that js(1), which has no man-page or other documentation, is part of "spidermonkey", which in turn is part of "firefox". It makes sense to assume that people have this browser installed. If at all possible, the javascript shell should have the file-methods compiled in to be able to use it like many other scripting languages, especially with JSON code. The scriptlet above works with an unmodified standard install.
Similar Messages
-
Need a bat script to check Server status remotly.
Hi,
I need bat script to check server status remotly (Ping) for multiple servers. It should generate a txt file for result.
Thanks.Hi Ravi,
To ping multiple computers and generate report cia cmd, please refer to the script below, the "fnm" is computer name list and the "lnm" is the result, and you can save the script below as .bat file:
@echo off
set fnm=d:\test1\computers.txt
set lnm=d:\test1\ping.txt
if exist %fnm% goto Label1
echo.
echo Cannot find %fnm%
echo.
Pause
goto :eof
:Label1
echo PingTest STARTED on %date% at %time% > %lnm%
echo ================================================= >> %lnm%
echo.
for /f %%i in (%fnm%) do call :Sub %%i
echo.
echo ================================================= >> %lnm%
echo PingTest ENDED on %date% at %time% >> %lnm%
echo ... now exiting
goto :eof
:Sub
echo Testing %1
set state=alive
ping -n 1 %1
if errorlevel 1 set state=dead
echo %1 is %state% >> %lnm%
Refer to:
Explain the Batch script to ping multiple computers
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Bash script for checking link status
So I'm doing some SEO work I've been tasked with checking a couple hundred thousand back links for quality. I found myself spending a lot of time navigating to sites that no longer existed. I figured I would make a bash script that checks if the links are active first. The problem is my script is slower than evolution. I'm no bash guru or anything so I figured maybe I would see if there are some optimizations you folks can think of. Here is what I am working with:
#!/bin/bash
while read line
do
#pull page source and grep for domain
curl -s "$line" | grep "example.com"
if [[ $? -eq 0 ]]
then
echo \"$line\",\"link active\" >> csv.csv else
echo \"$line\",\"REMOVED\" >> csv.csv
fi
done < <(cat links.txt)
Can you guys think of another way of doing this that might be quicker? I realize the bottleneck is curl (as well as the speed of the remote server/dns servers) and that there isn't really a way around that. Is there another tool or technique I could use within my script to speed up this process?
I will still have to go through the active links one by one and analyze by hand but I don't think there is a good way of doing this programmatically that wouldn't consume more time than doing it by hand (if it's even possible).
ThanksI know it's been awhile but I've found myself in need of this yet again. I've modified Xyne's script a little to work a little more consistently with my data. The problem I'm running into now is that urllib doesn't accept IRIs. No surprise there I suppose as it's urllib and not irilib. Does anyone know of any libraries that will convert an IRI to a URI? Here is the code I am working with:
#!/usr/bin/env python3
from threading import Thread
from queue import Queue
from urllib.request import Request, urlopen
from urllib.error import URLError
import csv
import sys
import argparse
parser = argparse.ArgumentParser(description='Check list of URLs for existence of link in html')
parser.add_argument('-d','--domain', help='The domain you would like to search for a link to', required=True)
parser.add_argument('-i','--input', help='Text file with list of URLs to check', required=True)
parser.add_argument('-o','--output', help='Named of csv to output results to', required=True)
parser.add_argument('-v','--verbose', help='Display URLs and statuses in the terminal', required=False, action='store_true')
ARGS = vars(parser.parse_args())
INFILE = ARGS['input']
OUTFILE = ARGS['output']
DOMAIN = ARGS['domain']
REMOVED = 'REMOVED'
EXISTS = 'EXISTS'
NUMBER_OF_WORKERS = 50
#Workers
def worker(input_queue, output_queue):
while True:
url = input_queue.get()
if url is None:
input_queue.task_done()
input_queue.put(None)
break
request = Request(url)
try:
response = urlopen(request)
html = str(response.read())
if DOMAIN in html:
status = EXISTS
else:
status = REMOVED
except URLError:
status = REMOVED
output_queue.put((url, status))
input_queue.task_done()
#Queues
input_queue = Queue()
output_queue = Queue()
#Create threads
for i in range(NUMBER_OF_WORKERS):
t = Thread(target=worker, args=(input_queue, output_queue))
t.daemon = True
t.start()
#Populate input queue
number_of_urls = 0
with open(INFILE, 'r') as f:
for line in f:
input_queue.put(line.strip())
number_of_urls += 1
input_queue.put(None)
#Write URL and Status to csv file
with open(OUTFILE, 'a') as f:
c = csv.writer(f, delimiter=',', quotechar='"')
for i in range(number_of_urls):
url, status = output_queue.get()
if ARGS['verbose']:
print('{}\n {}'.format(url, status))
c.writerow((url, status))
output_queue.task_done()
input_queue.get()
input_queue.task_done()
input_queue.join()
output_queue.join()
The problem seems to be when I use urlopen
response = urlopen(request)
with a URL like http://www.rafo.co.il/בר-פאלי-p1
urlopen fails with an error like this:
Exception in thread Thread-19:
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/threading.py", line 639, in _bootstrap_inner
self.run()
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/threading.py", line 596, in run
self._target(*self._args, **self._kwargs)
File "./linkcheck.py", line 35, in worker
response = urlopen(request)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 160, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 473, in open
response = self._open(req, data)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 491, in _open
'_open', req)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 451, in _call_chain
result = func(*args)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 1272, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 1252, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/http/client.py", line 1049, in request
self._send_request(method, url, body, headers)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/http/client.py", line 1077, in _send_request
self.putrequest(method, url, **skips)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/http/client.py", line 941, in putrequest
self._output(request.encode('ascii'))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 5-8: ordinal not in range(128)
I'm not too familiar with how character encoding works so I'm not sure where to start. What would be a quick and dirty way (if one exists) to get URLs like this to play nicely with python's urlopen? -
Script Logic - Check Work Status
Hi,
I am using the standard process chain "/CPMB/DEFAULT_FORMULAS_LOGIC" to trigger Script logic file.
I have created some logic to clear and copy data to a targer category. I want to check the workstatus of the target category and if it is locked i want to clear/copy to fail.
I am not sure how to go about this? I was thinking of adding the following but that is just a guess!
TASK(/CPMB/CLEAR_SOURCE_CUBE,CHECKLCK,1)
any advice would be helpful.
Thanks,Hi,
Ideally did want an option for the user to select option to check whether the copy should happen if the data had been locked. Have done this via the standard COPY package.
Can this be done with the script logic e.g. using paramters in the package?
Or if you create a script logic file does it always check the workstatus?
thanks -
Unix script for checking the user account status
Hi All,
i have created one unix script to check the status of the user in diff databases.
#!/bin/ksh
useracctreport.txt if [ ! -f hh ];
then
echo "Database file does not exist"
fi
echo "Enter Username"
read USER
echo "Enter the password"
stty -echo
read PASS
stty echo
for j in `cat users`
do
j="`echo $j| tr '[a-z]' '[A-Z]'`"
for i in `cat hh`
do
sqlplus -s $USER/$PASS\@$i <<EOF >> useracctreport.txt
column USERNAME format a8
column ACCOUNT_STATUS format a5
!echo "*****User $j Status in $i DB*****"
select USERNAME,ACCOUNT_STATUS from dba_users where username=('$j');
select OBJECT_TYPE,count(*) from dba_objects where owner='$j' group by object_type;
EOF
done
done
In log file ,i get the below error when its unable to connect to the DB.
SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}] | [INTERNAL]
where <logon> ::= <username>[<password>][@<connect_string>] | /
SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}] | [INTERNAL]
where <logon> ::= <username>[<password>][@<connect_string>] | /
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
ERROR:
ORA-01017: invalid username/password; logon denied
Is there any way i can supress this error?
and is there any other way i can make this script faster.Thanks a lot for your helpHi,
The failing line is
sqlplus -s $USER/$PASS\@$i <<EOF >> useracctreport.txtYou should test the connect statement you provide to sqlplus. For example:
CONSTRING=$USER/$PASS\@$i
echo Connect string used: $CONSTRING
sqlplus -s $CONSTRING <<EOF >> useracctreport.txtCheck the echoed value. It's malformed. Correct it appropriately.
Yoann. -
Script to check RDP connection status
Hi all,
Could anyone provide me a script to check whether multiple remote servers are able to RDP or not. I just want to check the connectivity status. I have checked with past threads available in form, but none has worked for me. Powershell or Batch or VBS scripts
... anything would be good....
I am not that much good at writing scripts.. So please help me.
Thanks in Advance..
Vinay..Run this script on one of the servers:
Get-Wmiobject -Class Win32_Terminal -Property *
It should return a number of information including, fEnableTerminal. For servers that have RDP enabled, fEnableTerminal should be 1, for the servers with RDP not enabled, fEnableTerminal should be 0.
Once you can confirm that this is the case, I will provide the full script to run this on multiple servers with input from AD query of text file
That still won't tell you if the TS is accessible. PortQry or Net Tcp are the fastest and easiest ways to do this.
Your code also only orks on WS2008R2 and later but, s posted, ill not work on any system. Have you actually tried it?
The other bigger issue is that the Win32_Terminal class will always return enabled on any server even if the terminal server is inaccessible and even if it is in Admin mode. All Servers since 2003 have Terminal Server running by default but not in
Terminal Server mode.
PortQry to 3389 will tell us that the TS is alive and available. Win32_Terminal will report enabled even if the service is stopped.
Win32_Terminal is only useful to admins and PortQry can be used by anyone.
The above PowerShell code can be run on any system instead of installing PortQry or other software.
The original question was "Check RDP connection". RDP is available on all systems since XP. The Win32_Terminal class is only available on Server class machines and it does not check to see if the RDP connection is available.
¯\_(ツ)_/¯ -
Need a Script to check Database backup chain for revovery
Dear All,
any having a handy script to check database backup chain ,
Database A --> Full backup -- Diff -- log1 --Log 2 ...... and scan through the files to validate if we can recover the database using the avaiable backups.
Regards
Sufian
Mohd Sufian www.sqlship.wordpress.com Please mark the post as Answered if it helped.You can use below TSQL
set nocount on
go
if exists ( select name from tempdb..sysobjects where name like '#DatabasesBackupsStatus%')
drop table #DatabasesBackupsStatus
GO
create table #DatabasesBackupsStatus
ServerName varchar(100) null,
DBName varchar(100) null,
RecoveryModel varchar(100) null,
LastFullbackup datetime null,
days_since_Lastfullbackup int null,
days_since_Lastdiffbackup int null,
HOURS_since_LastLogbackup int,
DBStatus varchar (100) null,
FullBackupLocation varchar(1000) null,
MEDIASET INT,
JobOwner varchar(100) null
Go
insert into #DatabasesBackupsStatus(ServerName,DBName)
select convert(varchar,serverproperty('ServerName')),a.name
from master.dbo.sysdatabases a
where a.name <> 'tempdb'
update #DatabasesBackupsStatus
set LastFullbackup=b.backup_start_date,
days_since_Lastfullbackup=datediff(dd,b.backup_start_date,getdate()),
MEDIASET=b.media_set_id
from #DatabasesBackupsStatus a,(select database_name,MAX(media_set_id)media_set_id,max(backup_start_date) backup_start_date
from msdb..backupset where type='D' group by database_name)b
where a.DBName=b.database_name
update #DatabasesBackupsStatus
set RecoveryModel=convert(sysname,DatabasePropertyEx(DBName,'Recovery'))
update #DatabasesBackupsStatus
set DBStatus=convert(sysname,DatabasePropertyEx(DBName,'Status'))
update d
set d.FullBackupLocation=b.physical_device_name
from #DatabasesBackupsStatus d , msdb..backupmediafamily b
where d.MEDIASET =b.media_set_id
update d
set d.days_since_Lastdiffbackup=datediff(dd,b.backup_finish_date,getdate())
from #DatabasesBackupsStatus d , (select database_name,max(backup_finish_date) backup_finish_date
from msdb..backupset where type ='I' group by database_name) b
where d.DBName = b.database_name
update d
set d.JobOwner=b.[user_name]
from #DatabasesBackupsStatus d , msdb..backupset b
where d.MEDIASET = b.media_set_id
update d
set d.HOURS_since_LastLogbackup=datediff(hh,b.backup_finish_date,getdate())
from #DatabasesBackupsStatus d , (select database_name,max(backup_finish_date) backup_finish_date
from msdb..backupset where type ='L' group by database_name) b
where d.DBName = b.database_name
AND d.RecoveryModel != 'SIMPLE'
Go
select * from #DatabasesBackupsStatus
Go
drop table #DatabasesBackupsStatus
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Thanks,
Shashikant -
ECMA script for checking active workflows for an list item
Hi i am having more than 1 workflow associated with the list if there is any workflow that is active for an item then i need to prevent starting another workflow for the same item. I am using the following code to achieve the same. Can anyone please provide
me the ECMA object model equivalent for achieving the same.
//Check for any active workflows for the document
private void CheckForActiveWorkflows()
// Parameters 'List' and 'ID' will be null for site workflows.
if (!String.IsNullOrEmpty(Request.Params["List"]) && !String.IsNullOrEmpty(Request.Params["ID"]))
this.workflowList = this.Web.Lists[new Guid(Request.Params["List"])];
this.workflowListItem = this.workflowList.GetItemById(Convert.ToInt32(Request.Params["ID"]));
SPWorkflowManager manager = this.Site.WorkflowManager;
SPWorkflowCollection workflowCollection = manager.GetItemActiveWorkflows(this.workflowListItem);
if (workflowCollection.Count > 0)
SPUtility.TransferToErrorPage("An workflow is already running for the document. Kindly complete it before starting a new workflow");
}Hi,
According to your post, my understanding is that you wanted to use ECMA script to check active workflows for an list item.
You can use the Workflow web service "/_vti_bin/workflow.asmx"
- GetWorkflowDataForItem operation in particular.
Here is a great blog for you to take a look at:
http://jamestsai.net/Blog/post/Using-JavaScript-to-check-SharePoint-list-item-workflow-status-via-Web-Service.aspx
In addition, you can use
SPServices. For more information, please refer to:
http://sharepoint.stackexchange.com/questions/72962/is-there-a-way-to-check-if-a-workflow-is-completed-using-javascript
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Script for checking the replication process in Netscape Directory Sever 4.1
Hi,
We are using Netscape Directory Server 4.1.6 in our production environment. Where we want to know is there any script available to check the replication process. Or can we write a script to check the process.
Waiting for your replies at the earliest.
Thanks,
Syed A.Hi Syed,
Replication state is very easy to see in 4.x and earlier. The last changenumber in the supplier changelog is visible (on the root DSE IIRC), and each consumer suffix has an operational attribute "copiedfrom" that tells you the name of the supplier, the database generation id, and the last change replayed from the supplier.
So a script that compares the results of
ldapsearch -h <supplier> -s base -b "" "objectclass=*" lastchangenumber
and
ldapsearch -h <consumer> -s base -b <base_suffix> "objectclass=*" copiedFrom
will show you if a replica has fallen out of sync. It won't tell you more than how many changes behind the replica is, though, because pre-5.x changenumbers are sequential integers, not timestamps.
However, the change that corresponds to the changenumber is clearly visible under the "cn=changelog" suffix. So if you look at the change itself you can see the timestamp on it.
For more info on the status of replication, you should be able to query the agreements on the supplier. Those live under the "Netscape Machine Data Suffix", which you can also find on the supplier's root DSE:
ldapsearch -h <supplier> -s base -b "" "objectclass=*" netscapemdsuffix
And of course the error logs will usually tell you if replication is failing outright.
I may be off on some of the attribute names, but if you do some investigating along these lines, you should be able to figure it out. -
Dear ALL,
I'm working on SAP BPC 10.0 NW version.
So, I'm launching a script logic for a particular company, actually working on the currency translation but unfortunately I got an error "Error checking work status".
I did enable the Work Status in my model, and I did also put 2 Controls in it. But, I'm very sure the 2 Controls are all pass which I could also see the same from Control Monitor.
Any part which I could have missed out or any steps I have to work on in order to skip the error?
BR,
AntonyHi Antony
Finally the problem was bigger than I thought; the user uploaded data from previous period and it’s affected the currency conversion, because it is configured at periodic way
The access member profile for each group was configured wrongly, too
We fix this point and the currency conversion and the work status pass OK
Thank for your time answer its
Regards
Ariel -
How to check import status in Windows??
Hi,
Import is running in my Wndows box.The log file is not updating from since long time. How to check the status of the import job??FYI its oracle 10g.
And i checked from databse that.
FYI
===
Select * from DBA_DATAPUMP_SESSIONS;
no rows selected.
select * from DBA_JOBS_RUNNING;
no rows selected
select username,machine,module,sid,state,event,seq#,seconds_in_wait from v$session where type<>'IMPORT' and username='AUTOTIME';
no rows selected
Plz let me know.Hi
use the below script two times and check the output.
select
substr(sql_text,instr(sql_text,'into "'),30) table_name,
rows_processed, round((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60,1) minutes,
trunc(rows_processed/((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60)) rows_per_minute
from
sys.v_$sqlarea
where
sql_text like 'insert %into "%' and command_type = 2 and open_versions > 0;
KK -
Error while checking the status of Oracle Cluster ware
Hi
I was trying to install the database using dbca after setting up the grid and database software on LINUX x86-64 RHEL 5.7 machine. The database software version is 11.2.0.3. It throwing the error regarding the connectivity of clusterware. So I checked the status of clusterware.
-bash-3.2$ ./crsctl stat res -t
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Status failed, or completed with errors.
-bash-3.2$
But when I ran below one:
-bash-3.2$ ./crsctl stat res -t -init
NAME TARGET STATE SERVER STATE_DETAILS
Cluster Resources
ora.asm
1 ONLINE ONLINE sfv9699 Started
ora.cluster_interconnect.haip
1 ONLINE ONLINE sfv9699
ora.crf
1 ONLINE ONLINE sfv9699
ora.crsd
1 ONLINE OFFLINE
ora.cssd
1 ONLINE ONLINE sfv9699
ora.cssdmonitor
1 ONLINE ONLINE sfv9699
ora.ctssd
1 ONLINE ONLINE sfv9699 OBSERVER
ora.diskmon
1 OFFLINE OFFLINE
ora.drivers.acfs
1 ONLINE ONLINE sfv9699
ora.evmd
1 ONLINE INTERMEDIATE sfv9699
ora.gipcd
1 ONLINE ONLINE sfv9699
ora.gpnpd
1 ONLINE ONLINE sfv9699
ora.mdnsd
1 ONLINE ONLINE sfv9699
So i saw that the crsd having some issue. I checked the alert log and crsd log. Below are the output.
Alert <server_name>.log
2012-10-20 15:37:51.408
[ohasd(3694)]CRS-2765:Resource 'ora.crsd' has failed on server 'sfv9699'.
2012-10-20 15:37:52.968
[crsd(5188)]CRS-1013:The OCR location in an ASM disk group is inaccessible. Details in /oracle2/app/11.2.0/grid/log/sfv9699/crsd/crsd.log.
2012-10-20 15:37:52.984
[crsd(5188)]CRS-0804:Cluster Ready Service aborted due to Oracle Cluster Registry error [PROC-26: Error while accessing the physical storage
ORA-27140: attach to post/wait facility failed
ORA-27300: OS system dependent operation:invalid_egid failed with status: 1
ORA-27301: OS failure message: Operation not permitted
ORA-27302: failure occurred at: skgpwinit6
ORA-27303: additional information: startup egid = 1000 (oinstall), current egid = 10002 (dba)
]. Details at (:CRSD00111:) in /oracle2/app/11.2.0/grid/log/sfv9699/crsd/crsd.log.
2012-10-20 15:37:53.471
[ohasd(3694)]CRS-2765:Resource 'ora.crsd' has failed on server 'sfv9699'.
2012-10-20 15:37:53.472
[ohasd(3694)]CRS-2771:Maximum restart attempts reached for resource 'ora.crsd'; will not restart.
CRSD.log
2012-10-20 15:37:52.456: [ CRSMAIN][3563381328] Checking the OCR device
2012-10-20 15:37:52.457: [ CRSMAIN][3563381328] Sync-up with OCR
2012-10-20 15:37:52.457: [ CRSMAIN][3563381328] Connecting to the CSS Daemon
2012-10-20 15:37:52.457: [ CRSMAIN][3563381328] Getting local node number
2012-10-20 15:37:52.459: [ CRSMAIN][3563381328] Initializing OCR
[ CLWAL][3563381328]clsw_Initialize: OLR initlevel [70000]
2012-10-20 15:37:52.897: [ OCRASM][3563381328]proprasmo: Error in open/create file in dg [DATA]
[ OCRASM][3563381328]SLOS : SLOS: cat=7, opn=kgfoAl06, dep=27140, loc=kgfokge
2012-10-20 15:37:52.898: [ OCRASM][3563381328]ASM Error Stack : ORA-27140: attach to post/wait facility failed
ORA-27300: OS system dependent operation:invalid_egid failed with status: 1
ORA-27301: OS failure message: Operation not permitted
ORA-27302: failure occurred at: skgpwinit6
ORA-27303: additional information: startup egid = 1000 (oinstall), current egid = 10002 (dba)
2012-10-20 15:37:52.967: [ OCRASM][3563381328]proprasmo: kgfoCheckMount returned [7]
2012-10-20 15:37:52.967: [ OCRASM][3563381328]proprasmo: The ASM instance is down
2012-10-20 15:37:52.968: [ OCRRAW][3563381328]proprioo: Failed to open [+DATA]. Returned proprasmo() with [26]. Marking location as UNAVAILABLE.
2012-10-20 15:37:52.968: [ OCRRAW][3563381328]proprioo: No OCR/OLR devices are usable
2012-10-20 15:37:52.968: [ OCRASM][3563381328]proprasmcl: asmhandle is NULL
2012-10-20 15:37:52.969: [ GIPC][3563381328] gipcCheckInitialization: possible incompatible non-threaded init from [prom.c : 690], original from [clsss.c : 5326]
2012-10-20 15:37:52.975: [ default][3563381328]clsvactversion:4: Retrieving Active Version from local storage.
2012-10-20 15:37:52.978: [ CSSCLNT][3563381328]clssgsgrppubdata: group (ocr_SFV9699-cluster) not found
2012-10-20 15:37:52.978: [ OCRRAW][3563381328]proprio_repairconf: Failed to retrieve the group public data. CSS ret code [20]
2012-10-20 15:37:52.981: [ OCRRAW][3563381328]proprioo: Failed to auto repair the OCR configuration.
2012-10-20 15:37:52.981: [ OCRRAW][3563381328]proprinit: Could not open raw device
2012-10-20 15:37:52.981: [ OCRASM][3563381328]proprasmcl: asmhandle is NULL
2012-10-20 15:37:52.983: [ OCRAPI][3563381328]a_init:16!: Backend init unsuccessful : [26]
2012-10-20 15:37:52.984: [ CRSOCR][3563381328] OCR context init failure. Error: PROC-26: Error while accessing the physical storage
ORA-27140: attach to post/wait facility failed
ORA-27300: OS system dependent operation:invalid_egid failed with status: 1
ORA-27301: OS failure message: Operation not permitted
ORA-27302: failure occurred at: skgpwinit6
ORA-27303: additional information: startup egid = 1000 (oinstall), current egid = 10002 (dba)
2012-10-20 15:37:52.984: [ CRSMAIN][3563381328] Created alert : (:CRSD00111:) : Could not init OCR, error: PROC-26: Error while accessing the physical storage
ORA-27140: attach to post/wait facility failed
ORA-27300: OS system dependent operation:invalid_egid failed with status: 1
ORA-27301: OS failure message: Operation not permitted
ORA-27302: failure occurred at: skgpwinit6
ORA-27303: additional information: startup egid = 1000 (oinstall), current egid = 10002 (dba)
2012-10-20 15:37:52.984: [ CRSD][3563381328][PANIC] CRSD exiting: Could not init OCR, code: 26
2012-10-20 15:37:52.984: [ CRSD][3563381328] Done.
=======================
I see in the above log that saying ASM instance is down and failed to open +DATA .
But the asm instance up and running
SQL> select instance_name,status from v$instance;
INSTANCE_NAME STATUS
+ASM1 STARTED
And we havent created any disk named DATA before the installation. We have created only below two disks
SQL> select name,header_status from v$asm_disk;
NAME HEADER_STATUS
ASM_DATA MEMBER
FLASH_RECOVERY MEMBER
But I am seeing a diskgroup in the v$asm_diskgroup which we havent created.
SQL> select name,state from v$asm_diskgroup;
NAME STATE
DATA MOUNTED
Ya this is a second time installtion. In the first installtion we created the asmdisk as DATA. But later everything (RAW device ) was formatted and this new disks has been created and installtion again started
[root@SFV9699 bin]# oracleasm listdisks
ASM_DATA
FLASH_RECOVERY
Seems like its trying to read the old disk DATA.
we have done asmscanning too with oracleasm scan disks. but no use.
Where I can remove the old entry of DATA disk.
It would be a great if a quick response get.
Thanks
SHIYAS MThe permission looks fine. If it was permission issue then y it is trying to read the DATA disk which I havent created this time at all ( But created in the first installation).
2012-10-20 15:37:52.459: [ CRSMAIN][3563381328] Initializing OCR
[ CLWAL][3563381328]clsw_Initialize: OLR initlevel [70000]
2012-10-20 15:37:52.897: [ OCRASM][3563381328]proprasmo: *Error in open/create file in dg [DATA]*[ OCRASM][3563381328]SLOS : SLOS: cat=7, opn=kgfoAl06, dep=27140, loc=kgfokge
2012-10-20 15:37:52.898: [ OCRASM][3563381328]ASM Error Stack : ORA-27140: attach to post/wait facility failed
ORA-27300: OS system dependent operation:invalid_egid failed with status: 1
ORA-27301: OS failure message: Operation not permitted
ORA-27302: failure occurred at: skgpwinit6
ORA-27303: additional information: startup egid = 1000 (oinstall), current egid = 10002 (dba)
2012-10-20 15:37:52.967: [ OCRASM][3563381328]proprasmo: kgfoCheckMount returned [7]
2012-10-20 15:37:52.967: [ OCRASM][3563381328]proprasmo: The ASM instance is down
2012-10-20 15:37:52.968: [ OCRRAW][3563381328]proprioo: *Failed to open [+DATA].* Returned proprasmo() with [26]. Marking location as UNAVAILABLE.
2012-10-20 15:37:52.968: [ OCRRAW][3563381328]proprioo: No OCR/OLR devices are usable
2012-10-20 15:37:52.968: [ OCRASM][3563381328]proprasmcl: asmhandle is NULL
The only disks created are
[root@SFV9699 dev]# oracleasm listdisks
ASM_DATA
FLASH_RECOVERY
And these disks are showing part of that group also.. Not quite sure how this happened..
what abt dropping this group.. will anything work. -
I ordered the full creative cloud on sunday and received an order number but still can't open any of the programs. When i check the status of my order online, it says it can't find it. Is this normal after 3 days? I tried asking in a chat window instead of the forum but no one answered and after about ten minutes my screen restarted and closed the chat window down. It seems a little frustrating not knowing what happened to my order and not being able to contact anyone. Is all this usual with Adobe or are they just having technical problems this week?
Does your Cloud subscription show on your account page?
https://www.adobe.com/account.html for subscriptions on your Adobe page
This is an open forum, not Adobe support... you need Adobe staff to help
Adobe contact information - http://helpx.adobe.com/contact.html
-Select your product and what you need help with
-Click on the blue box "Still need help? Contact us"
-or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html -
How to check the status of a job!!!
Hi,
i want to check the status of a job and also send a mail when a job is cancelled.
Is there any function module which does that , also i want check the jobs across various time periods and not of today....
Its urgent,
Answers will be rewarded,
Regards,
RohanHi Rohan,
You can get job information by <b>calling function "BP_JOB_READ".</b> If you pass the value btc_read_jobhead_only defined in LBTCHDEF, it will only return the
job header info into the export parameter JOB_READ_JOBHEAD. The job status
is set in JOB_READ_JOBHEAD-STATUS.
Alternatively, <b>you can just lookup table TBTCO</b>, the status is in
TBTCO-STATUS.
The values in STATUS are defined in LBTCHDEF as follows;
DATA:
BTC_RUNNING LIKE TBTCO-STATUS VALUE 'R',
BTC_READY LIKE TBTCO-STATUS VALUE 'Y',
BTC_SCHEDULED LIKE TBTCO-STATUS VALUE 'P',
BTC_RELEASED LIKE TBTCO-STATUS VALUE 'S',
BTC_ABORTED LIKE TBTCO-STATUS VALUE 'A',
BTC_FINISHED LIKE TBTCO-STATUS VALUE 'F',
BTC_PUT_ACTIVE LIKE TBTCO-STATUS VALUE 'Z',
BTC_UNKNOWN_STATE LIKE TBTCO-STATUS VALUE 'X'.
Thanks,
Vinay -
Checking the status of task records tied to the custom object 3
We are using custom object 3
There has been lot of configuration work done on this object.
There is a checkbox on the UI. When a user will checks off the check box, a task record(s) is created depending on the condition.
Is there a way for me to check the status on the task records and then set a field on the parent record i.e. custom object 3.
Thanks,
NitikaTo whom are you speaking?
Maybe you are looking for
-
Handling RICH TEXT content on BI publisher report
Hello, I have requirment where I have to handle RICH TEXT content, and show data in report with RICH TEXT formating. The RICH TEXT content(with tags) is comming from database CLOB column. Here is the sample XML data. <?xml version="1.0" encoding="UTF
-
BUSINESS RULES FOR Vendor, Customer & PRODUCT
Hi, Can any one help me to provide Business Rules(Validation Rules) of Vendor, Customer & Product domain to be considered in integrating with other technologies. Thanks & Best Regards, Giri
-
How do you change the fuse in a UK Apple 5w USB Power Adapter?
How do you change the fuse in a UK Apple 5w USB Power Adapter? Ours has stopped working and we presume it must be an internal fuse, but how do you access it as there is no 'slots' as on the 12w version? All UK power devices must be fused to comply wi
-
Content By Search web part causing issue for ajax post back implementation in Anonymous page
We have recently migrated from SharePoint 2010 to 2013. In our site we have the registration control with ajax update panel which is working fine in all the pages other than home. After analysis, I found that this issue is happening only if the conte
-
How do I change size of homepage,I can adjust all pages except homepage
Controls to change size of homepage do not work