[c-nsp] rtmcmd.sh generates errors

Abdel Bidar Abdel.Bidar at sns.bskyb.com
Wed Mar 10 18:12:56 EST 2010


Hi Alex,

Thanks a lot, it resolved the generation of the config file. I dont have anymore errors to generate the config file.
Could you please tell me how did you find this information ?

This is the Hardware Type:
Cisco Service Control,
SW version: Version 3.5.5 Build 252,
HW version: SCE8000 4x10GBE

I have now another issue. The mrtg config doesnt work. It seems to try to poll OID which dont work

For example the mrtg cfg file that I have generated with   rtmcmd.sh

# upVolume for service FTP [19], link 1
Target[22.20.135.7_upvolume_link1_service19]: 1.3.6.1.4.1.5655.4.2.2.1.1.1.1.1.20&1.3.6.1.4.1.5655.4.2.2.1.1.1.1.1.20

Polling doesnt work for this OID

dpi-test:~# snmpget -v2c -cmycomm 22.20.135.7 1.3.6.1.4.1.5655.4.2.2.1.1.1.1.1.20
Error in packet
Reason: (genError) A general failure occured
Failed object: SNMPv2-SMI::enterprises.5655.4.2.2.1.1.1.1.1.20

It works for
dpi-test:/mrtg/output/mrtg-cfg# snmpwalk -v2c -cmycomm 22.20.135.7 1.3.6.1.4.1.5655.4.2.2.1.1
SNMPv2-SMI::enterprises.5655.4.2.2.1.1.2.1.12.1 = Counter32: 233039296
SNMPv2-SMI::enterprises.5655.4.2.2.1.1.2.1.12.2 = Counter32: 116243401
SNMPv2-SMI::enterprises.5655.4.2.2.1.1.2.1.12.3 = Counter32: 409760350

Thanks a lot again for your great help

Best regards
Ab del





________________________________
From: Пономарев Алексей [mailto:alex at dsi.ru]
Sent: 10 March 2010 03:36
To: Abdel Bidar; cisco-nsp at puck.nether.net
Subject: Re: [c-nsp] rtmcmd.sh generates errors

On 03/06/2010 04:32 AM, Abdel Bidar wrote:

Hi Guys,
I would like to use mrtg  to report on our SCE. I have followed Cisco documentation.

When I run the script rtmcmd.sh I get some errors.
Have someone had the same issues ? I am running on Linux server.

Thanks
Regards
Abdel


Manager_server:/mrtg/bin# ./rtmcmd.sh --sce="22.20.135.7"  --pqb-sce "22.20.135.7" -U admin -P Mario22 --source-dir=/mrtg/templates --dest-dir=/mrtg/output -c ./rtmcmd.cfg
connecting to 22.20.135.7 ... done
retrieving service configuration from SCE ... done
disconnecting from device ... done
loading user configuration from file 'rtmcmd.cfg' ... done
processing templates from '/mrtg/templates' to '/mrtg/output' ... Mar 5, 2010 6:45:48 PM freemarker.log.JDK14LoggerFactory$JDK14Logger error
SEVERE:

Expression colorList[serviceCounter_index] is undefined on line 99, column 52 in common/bw_per_service.ftl.
The problematic instruction:
----------
==> ${colorList[serviceCounter_index]} [on line 99, column 50 in common/bw_per_service.ftl]
 in user-directive drawReport [on line 2, column 1 in common/report_page_bottom.ftl]
 in include "report_page_bottom.ftl" [on line 113, column 1 in common/bw_per_service.ftl]
 in include "../common/bw_per_service.ftl" [on line 8, column 1 in report-cgi/link1_down_bw.cgi.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression colorList[serviceCounter_index] is undefined on line 99, column 52 in common/bw_per_service.ftl.



  ________________________________
Information in this email including any attachments may be privileged, confidential and is intended exclusively for the addressee. The views expressed may not be official policy, but the personal views of the originator. If you have received it in error, please notify the sender by return e-mail and delete it from your system. You should not reproduce, distribute, store, retransmit, use or disclose its contents to anyone. Please note we reserve the right to monitor all e-mail communication through our internal and external networks. SKY and the SKY marks are trade marks of British Sky Broadcasting Group plc and are used under licence. British Sky Broadcasting Limited (Registration No. 2906991), Sky Interactive Limited (Registration No. 3554332), Sky-In-Home Service Limited (Registration No. 2067075) and Sky Subscribers Services Limited (Registration No. 2340150) are direct or indirect subsidiaries of British Sky Broadcasting Group plc (Registration No. 2247735). All of the c!

 ompanies mentioned in this paragraph are incorporated in England and Wales and share the same registered office at Grant Way, Isleworth, Middlesex TW7 5QD.
_______________________________________________
cisco-nsp mailing list  cisco-nsp at puck.nether.net<mailto:cisco-nsp at puck.nether.net>
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/



-- In the RTM templates folder, locate the file \templates\common\common_report_include.ftl.
-- Paste the following code at the end of this file:

<#assign colorList=["CC0000", "000066", "00CC00", "CC00CC", "996600", "CCCCCC", "003333",
"FF6600", "FF66FF", "CCFF00", "99CC00", "3333CC", "FF0033", "FF99FF", "333399", "33FF00",
"CCCCFF", "CC0033", "66CC00", "6666FF", "000033", "00FF99", "9933CC", "FFCC33", "336600",
"3300FF", "CCCC66", "663300", "0033FF", "00FF33", "993333", "99CCFF", "FFFF00", "333333",
"33CCFF", "CCCC00", "CC0099", "66CCFF", "666600", "0000CC", "00FF66", "993300", "9999FF",
"FFFF33", "333366", "33FFFF", "CCCC33", "CC00FF", "660000", "66FFCC", "0000FF", "009933",
"99CCCC", "990000", "FF00FF", "FFFF66", "333300", "33CCCC", "CC33FF", "CC9900", "66FF99",
"0033CC", "990033", "99FFCC", "FF33FF", "FFCC00", "33CC99", "330000", "CC33CC", "CCFF33",
"003300", "00CCCC", "9933FF", "999900", "FFFF99", "3333FF", "33CC33", "CC3300", "CC99FF",
"66FF33", "003366", "9966FF", "99FF33", "FF3300", "3366CC", "CCFF66", "FF0000", "336633",
"CCCC99", "6600FF", "006633", "00FFFF", "9900CC", "99FF00", "00CC99", "990066", "FF99CC",
"33CC00", "3300CC", "CC3333", "CCFFCC", "00CC33", "993366", "99FFFF", "009900", "990099",
"FFCCCC", "339933", "CC0066", "66FFFF", "006600", "993399", "33FFCC", "FF9900", "330033",
"3399FF", "CCFF99", "663333", "00CCFF", "FFCC66", "330066", "6699FF", "66FF00", "000099",
"9999CC", "FF3333", "33FF33", "6633FF", "FFCC99"] />

-- run RTMCMD again.


--
С уважением,
Пономарев Алексей
Дирекция по спец. проектам
ОАО "Деловая сеть - Иркутск"
+7 3952 510506


________________________________
Information in this email including any attachments may be privileged, confidential and is intended exclusively for the addressee. The views expressed may not be official policy, but the personal views of the originator. If you have received it in error, please notify the sender by return e-mail and delete it from your system. You should not reproduce, distribute, store, retransmit, use or disclose its contents to anyone. Please note we reserve the right to monitor all e-mail communication through our internal and external networks. SKY and the SKY marks are trade marks of British Sky Broadcasting Group plc and are used under licence. British Sky Broadcasting Limited (Registration No. 2906991), Sky Interactive Limited (Registration No. 3554332), Sky-In-Home Service Limited (Registration No. 2067075) and Sky Subscribers Services Limited (Registration No. 2340150) are direct or indirect subsidiaries of British Sky Broadcasting Group plc (Registration No. 2247735). All of the companies mentioned in this paragraph are incorporated in England and Wales and share the same registered office at Grant Way, Isleworth, Middlesex TW7 5QD.


More information about the cisco-nsp mailing list