cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
879
Views
0
Helpful
6
Replies

Management Center for CSA v.6.0

alekseyzepanov
Level 1
Level 1

Help me please to solve the problem.

I had installed Management Center for Cisco Security Agent v.6.0. However I can't generate Agent kit.

The status of all Agent kit is "Needs rule generation". I try to generate rules but there is an error - Failed to prepare rules: Cmd_BulkInsert failed.

When installing MCCSA there is such an error in logs (CSAMC60-Install.log):

[10-14-2008 14:42:41]: Setup is generating rule programs

[10-14-2008 14:42:41]: C:\Program Files\Cisco\CSAMC\CSAMC60\bin\webmgr.exe

generate

[10-14-2008 14:42:43]: --50-- Start Process Log ==> webmgr.exe

[10-14-2008 14:42:43]: Error preparing rules/vars: Cmd_BulkInsert failed.

[10-14-2008 14:42:43]: --50-- End Process Log ==> webmgr.exe

[10-14-2008 14:42:43]: WARNING: Command failed. Returned error code is 1

[10-14-2008 14:42:43]: Unable to generate rule programs.

[10-14-2008 14:42:43]: Due to the failure, the agent kit will not be

installed on the machine.

[10-14-2008 14:42:43]: Reboot the machine after the installation and login

to the MC.

[10-14-2008 14:42:43]: Click on 'Generate Rules' and then install the

Management Center Agent kit.

In logs (csamclog.txt) MCCSA the error is as follows:

1: csa: Oct 17 2008 14:21:49.128 +0400: %CSA-6-TRACE:

%[Component=WebMgr][PID=4976]: Call to function bcp_exec failed and returned

0

2: csa: Oct 17 2008 14:21:49.128 +0400: %CSA-6-TRACE:

%[Component=WebMgr][PID=4976]: BulkCopy failed on file C:\Program

Files\Cisco\CSAMC\CSAMC60\tmp\tmp_rid_49761224238909.dat

3: csa: Oct 17 2008 14:21:49.138 +0400: %CSA-6-TRACE:

%[Component=WebMgr][PID=4976]: Failed to prepare rules: Cmd_BulkInsert

failed.

6 Replies 6

tsteger1
Level 8
Level 8

When was the last time you generated rules? It looks like Oct 17th and there may be too many. If the number of database items exceeds the complexity threshold (7500, I think), rule generation will fail.

You may need to go in an delete some items before it will generate successfully.

Also check that the file it is trying to generate from is still present.

Tom

Don't pay attention to the date. It's only a fragment from the log. The point is that during the installation of MCCSA there was already a message about the mistake of rule generation (see log CSAMC60-Install.log). After installation in MCCSA the state of rules in the state line is as follows: 1044 rule changes pending. When I try to generate them there is a message about a mistake - Failed to prepare rules: Cmd_BulkInsert failed.

If you go to the search page and search for 'All' items, how many do you find?

The result of the search is "Display 1-50 of 1239"

Then that doesn't sound like the problem. Since there was already an error prior to the upgrade, you may have to start over.

You might open a TAC case and see what Cisco recommends.

Tom

diicalutu
Level 1
Level 1

I've run into this a while back, BULK INSERT operations failing with no apparent reason.

Reapplying the latest SQL Server service pack and/or the latest MDAC (on the MC system) resolved the problem.

I would start with the MDAC refresh, it may be enough to fix this.

(MDAC = Microsoft Data Access Components, available at http://msdn.microsoft.com/en-us/data/aa937730.aspx)