安装Collection Manager真是麻烦,每次都会碰到不少问题,有时莫名其妙的运行正常,有时始终不行,这次安装CM3.1.6时又碰到SCE与CM之间无数据传输, 以下是查找的相关信息。
1、查看SCE RDR信息:
SCE#show RDR-formatter
Status: enabled
Connection is: up
Forwarding mode: multicast
Connection Table:
-----------------------------------------------------------
| Collector | Port |Status| Priority per Category: |
| IP-Address / | | |-------------------------------|
| Host-Name | | | Category1 | Category2 | Category3 | Category4 |
|--------------|-------|-----|-----|------|------|-----|
| 10.15.16.13 | 33000 | up | 100 | 100 | 100 | 100 |
| 10.15.16.12 | 33000 | up | 90 | 90 | 90 | 90 |
-----------------------------------------------------
RDR: queued: 0 ,sent: 0, thrown: 0, format-mismatch: 0
UM: queued: 0 ,sent: 0, thrown: 0
Logger: queued: 0 ,sent: 0, thrown: 0
Errors: thrown: 0
从上面可以看出CM运行似乎没有问题,但Sent 数据为0。
查看SCE log信息,LOG中有如下信息:
2008-10-30 13:03:48 | INFO | CPU #000 | Formatter connection closed: address 10.15.16.12, port 33000.
2008-10-30 13:04:48 | INFO | CPU #000 | Formatter connection opened: address 10.15.16.12, port 33000.
2008-10-30 13:08:00 | INFO | CPU #000 | Formatter connection closed: address 10.15.16.13, port 33000.
2008-10-30 13:08:00 | INFO | CPU #000 | Formatter connection opened: address 10.15.16.13, port 33000.
2008-10-30 13:14:49 | INFO | CPU #000 | Formatter connection closed: address 10.15.16.12, port 33000.
2008-10-30 13:14:49 | INFO | CPU #000 | Formatter connection opened: address 10.15.16.12, port 33000.
2008-10-30 13:18:01 | INFO | CPU #000 | Formatter connection closed: address 10.15.16.13, port 33000.
2008-10-30 13:18:01 | INFO | CPU #000 | Formatter connection opened: address 10.15.16.13, port 33000.
2、查看CM相关信息
-bash-3.00$ ./sceconf.sh --op=list
IP Rate Peak
------------ ----------- -----------
10.15.16.78 0.0 0.0
Command terminated successfully
-bash-3.00$ ./rdr-rate.py
0.0
从上面两个命令都可以看出RDR rate为0
-bash-3.00$ ./dbtables.sh
Executing query ...
name | num_lines | min_time | max_time|
----------------+------------+------------+----------+
RPT_SUR| 0 | null | null|
RPT_LUR| 0 | null | null|
RPT_VLUR| 0 | null | null|
RPT_PUR| 0 | null | null|
RPT_TR| 0 | null | null|
RPT_MALUR| 0 | null | null|
RPT_MEDIA| 0 | null | null|
RPT_TOPS_PERIOD0| 2970 | 2008-10-29 17:00:00.0| 2008-10-30 10:00:00.033|
RPT_TOPS_PERIOD1| 165 | 2008-10-30 00:00:00.016| 2008-10-30 00:00:00.016|
查看数据库表,没有统计数据。
查看cm.log,有如下信息:
2008-10-30 13:29:18,785 [RPC Server] INFO com.pcube.logger.userlog.UserLog - DC: PRPC connection to /127.0.0.1 established, client name is usr.CLU, session name is rpc-0.
2008-10-30 13:29:18,924 [rpc-0-[worker#3]:usr.CLU] INFO com.pcube.logger.userlog.UserLog - DC: PRPC connection to /127.0.0.1 closed OK: peer terminated connection: user request.
2008-10-30 15:30:47,590 [rdrconn/10.15.16.78/2226] WARN com.cisco.scmscm.server.RDRProcessor - Client Socket timed out waiting.
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.DataInputStream.readUnsignedByte(Unknown Source)
at com.cisco.scmscm.server.RDRProcessor.getRdrFromStream(RDRProcessor.java:90)
at com.cisco.scmscm.server.RDRConnection.run(RDRConnection.java:78)
2008-10-30 15:30:47,591 [rdrconn/10.15.16.78/2226] INFO com.cisco.scmscm.server.RDRServer - Cumulative results = 0 RDRs, 0 bad RDRs, rate = 0.0 peak = 0.0
2008-10-30 15:30:47,591 [rdrconn/10.15.16.78/2226] INFO com.cisco.scmscm.server.RDRServer - Connection from 10.15.16.78:2226 closed on 33000 after 599 sec.
2008-10-30 15:30:47,591 [rdrconn/10.15.16.78/2226] INFO com.pcube.logger.userlog.UserLog - RDR Server: Connection from 10.15.16.78:2226 closed.
2008-10-30 15:30:48,370 [rdr lsnr/33000] INFO com.cisco.scmscm.server.RDRServer - Connection from 10.15.16.78:2228 on port 33000 opened.
2008-10-30 15:30:48,370 [rdr lsnr/33000] INFO com.pcube.logger.userlog.UserLog - RDR Server: Connection from 10.15.16.78:2228 opened.
查看adapter-JDBCAdapter.log有如下信息
2008-10-30 13:22:35,575 [main] ERROR com.cisco.scmscm.db.JdbcConnection.RPT_SUR - JdbcConnection - got SQLException
java.sql.SQLException: JZ006: Caught IOException: java.net.ConnectException: Connection refused
at com.sybase.jdbc2.jdbc.ErrorMessage.raiseError(ErrorMessage.java:533)
at com.sybase.jdbc2.jdbc.ErrorMessage.raiseErrorCheckDead(ErrorMessage.java:837)
at com.sybase.jdbc2.tds.Tds.handleIOE(Tds.java:3558)
at com.sybase.jdbc2.tds.Tds.handleIOE(Tds.java:3503)
at com.sybase.jdbc2.tds.Tds.login(Tds.java:421)
at com.sybase.jdbc2.jdbc.SybConnection.tryLogin(SybConnection.java:247)
at com.sybase.jdbc2.jdbc.SybConnection.regularConnect(SybConnection.java:223)
at com.sybase.jdbc2.jdbc.SybConnection.(SybConnection.java:198)
at com.sybase.jdbc2.jdbc.SybConnection.(SybConnection.java:132)
at com.sybase.jdbc2.jdbc.SybDriver.connect(SybDriver.java:179)
at com.cisco.scmscm.db.JdbcConnection.connect(JdbcConnection.java:96)
at com.cisco.scmscm.db.JdbcConnection.(JdbcConnection.java:80)
at com.cisco.scmscm.db.DbInserter.openConnection(DbInserter.java:483)
at com.cisco.scmscm.db.DbInserter.(DbInserter.java:118)
at com.cisco.scmscm.adapters.jdbc.JDBCAdapter.init(JDBCAdapter.java:175)
at com.cisco.scmscm.adapters.jdbc.JDBCAdapter.(JDBCAdapter.java:129)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.cisco.scmscm.adapters.BaseAdapter.main(BaseAdapter.java:275)
2008-10-30 13:22:35,590 [main] ERROR com.cisco.scmscm.db.JdbcConnection.RPT_SUR - JdbcConnection - sleeping 30 sec, got SQLException again - JZ006: Caught IOException: java.net.ConnectException: Connection refused
有错误产生。
通过以上信息也看不出问题所在,还请各位高手多多指点。