cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
247
Views
0
Helpful
2
Replies

IdsAlarms Script

emusican
Level 1
Level 1

Using this script, I am only able to export alarms in the IDIOM XML format. The command says that I can also export in NrLog and Oracle format, using -on and -oo respectively, however, they do not work at all. The script seems to run, but the output is blank (0 bytes). Am I missing something??

2 Replies 2

smahbub
Level 6
Level 6

Check the following URL,seems like some correction has to be made when you need NrLog format,http://www.cisco.com/en/US/products/sw/cscowork/ps3990/prod_release_note09186a008018de4d.html

From the that site:

---------------------------------------------------

Bug ID Summary Explanation

CSCin38443

Legacy parameters are not available by using legacyIf.pl

There is an error in the script LegacyIf.pl.

To correct the error, perform the following steps:

1. Locate LegacyIf.pl in the directory \CSCOpx\MDC\etc\ids\scripts.

2. Edit the file LegacyIf.pl

3. Change line 78 to add "-on" to force output in NrLog format:

Before editing:

system("IdsAlarms -s\"$whereClause\" -f\"$tmpFile\"")

After editing:

system("IdsAlarms -on -s\"$whereClause\" -f\"$tmpFile\"")

4. Save file and exit.

After this change, LegacyIf.pl will operate correctly.

Note NrLog format is only valid for version 3.x Sensors (postoffice). No data from 4.x (RDEP) Sensors will be output with this script.

---------------------------------------------------

So basically the only way I can export 4x alarms is in tabular format? There has to be a better way. Im trying to take the exported data and convert it to a text file with various fields, for other programs. With the 3x sensor this was easy, but its a lot harder with the 4x ones.