Skip to main content

Number of Agent

  4 posts   Feedicon  
Replies: 3 - Last Post: December 07, 2012 09:06
by: pelama
showing 1 - 4 of 4
Posted: November 27, 2012 12:20 by pelama
Hi.. I notice that the count of agent seems not really count right,,

And in this,, It does not count at all..


Ops Center Doctor 4.13  [OC 12.1.1.2076,SunOS11] [Read only] [27-Nov-2012 13:08PM CET]
======================== Checking Enterprise Controller... ==============================
OK: Total number of agents: SP2-0640:
OK: Number of agents with inventories: SP2-0640:


in
/var/opt/sun/xvm/OCDoctor/OCDoctor.sh --troubleshoot
Ops Center Doctor 4.13  [OC 12.1.2.2161,SunOS11] [Read only] [27-Nov-2012 13:15PM CET]
======================== Checking Enterprise Controller... ==============================
OK: Total number of agents: 0
OK: Number of agents with inventories: 0
Posted: December 07, 2012 00:50 by Eran Steiner
SP2-0640 error message typically means that the Oracle DB server is down - is that the case?
Also, if you run the following command, can you log in to the DB? it should say "connected" and give you SQL prompt:

# /opt/SUNWxvmoc/bin/ecadm sqlplus

Last, what is the difference between the first run and the second run? did you change something on the EC?
Posted: December 07, 2012 08:28 by pelama
Ahh.. I found the Issue.. *sigh*
a while a go we migrated the localdb to a external.. AND.. And and..

During this migration.. One step is to edit /var/opt/sun/xvm/db.properties

Soo.. 3 errors..

1. IP in this is not supported for some reason.. FAIL.. mgmtdb.dburl=jdbc:oracle:thin:@10.18.2.15:1521/OMON
verify-db works.

2. I Didn't want to remove the old entrys when I comment it out with the "#"

#mgmtdb.dburl=jdbc:oracle:thin:@u12gw.n.banverket.root.local:1521/OMON
#mgmtdb.dburl=jdbc:oracle:thin:@10.18.2.15:1521/OMON
mgmtdb.dburl=jdbc:oracle:thin:@u202gw:1521/OMON

3. So.. Changing mgmtdb.dburl= to first in line,, Works better, Not perfect.. Wink.

mgmtdb.dburl=jdbc:oracle:thin:@u202gw:1521/OMON
#mgmtdb.dburl=jdbc:oracle:thin:@u12gw.n.banverket.root.local:1521/OMON
#mgmtdb.dburl=jdbc:oracle:thin:@10.18.2.15:1521/OMON

Soo.....

Solution,,

The line 3904 in /opt/SUNWxvmoc/bin/ecadm

3904 dburl=`grep mgmtdb.dburl $DBPROPS_FILE | cut -d@ -f2`

Should maybe be like this instead

dburl=`grep mgmtdb.dburl $DBPROPS_FILE |grep -v "^#" |cut -d@ -f2`


Or.. Remove the other that is not in use, mgmtdb.dburl


BR Magnus

Posted: December 07, 2012 09:06 by pelama
Or dburl=`grep ^mgmtdb.dburl $DBPROPS_FILE | cut -d@ -f2`
would work aswell I guess..
Replies: 3 - Last Post: December 07, 2012 09:06
by: pelama
 
 
Close
loading
Please Confirm
Close