Cheshire Cat Computing

Software support and information
It is currently Fri May 24, 2013 12:14 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Feb 14, 2012 11:42 pm 
Offline
User

Joined: Tue Feb 14, 2012 11:30 pm
Posts: 4
i configure the routers2.cgi
but i can't see the interface discription in summary report

pl tell us

With Regards


Top
 Profile  
 
PostPosted: Tue Feb 21, 2012 10:40 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Not sure what you mean; the Summary page will have the Title added by each graph.

If you mean the PageTop tex block then that is never normally shown in the summary page. You can add the 'withpagetop' option to the summaary page though: routers.cgi*Options[__summary]:withpagetop but that can make things very messy.

If you mean the SNMP description as put into the commeans and PageTop by cfgmaker, then you need to use Routers2 symbol replacement; the cfgmaker SNMP description is %CMDESC%. So, you could put this into the PageTop or PageFoot somewhere. However it cannot be used in the Title or ShortDesc.

The best way to make the SNMP description appear in the Title or ShortDesc is to write your own interface template (or host template) for cfgmaker, so that it generates the Title and/or ShortDesc the way you want. See the cfgmaker forum here for some examples.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
PostPosted: Wed Feb 22, 2012 8:33 pm 
Offline
User

Joined: Tue Feb 14, 2012 11:30 pm
Posts: 4
This information Shown in Summary page
================================
ASR-9Krouter

Target: 164.100.193.4_18 Traffic Analysis for 18 -- INTERNET_GATEWAY_ASR9K.nic.in
Last update: Wed Feb 22 12:53:00 2012
Bandwidth: 953.67 Mbps
Interface IP: 10.1.250.41
Interface # 18
In: Max 454.56 Mbps, Avg 191.14 Mbps, Last 426.69 Mbps
Out: Max 42.41 Mbps, Avg 15.57 Mbps, Last 41.22 Mbps


This information shown for single interface
==================================
Traffic Analysis for 18 -- INTERNET_GATEWAY_ASR9K.nic.in
System: INTERNET_GATEWAY_ASR9K.nic.in in
Maintainer:
Description: GigabitEthernet0/0/0/1 #### CONNECTED TO IDC 6513 ####
ifType: ethernetCsmacd (6)
ifName: GigabitEthernet0/0/0/1
Max Speed: 1000.0 Mbits/s
Ip: 10.1.250.41 ()


I want this interface discription on summary page



With Regards
Balbir Singh


Top
 Profile  
 
PostPosted: Wed Feb 22, 2012 9:10 pm 
Offline
User

Joined: Tue Feb 14, 2012 11:30 pm
Posts: 4
Dear Sir,

Attached the image file


With Regards
Balbir Singh


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Thu Feb 23, 2012 10:45 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
I cannot be certain without seeing the cfg file, but I believe this information you want is included in the PageTop[] definitions for the targets in question?

If so, then you need to add the 'withpagetop' option to the Summary page; that will cause the PageTop of the component Targets to be displayed beside the graphs, immediately below the title name in the text area to the right. Note this can make things a bit confused if the PageTop is particularly large or has unmatched HTML!

If the summary page is a userdefined summary, this is easy; for example:
Code:
routers.cgi*Summary[mytarget]: mysummary
routers.cgi*Options[mysummary]: withpagetop


The problem you have is that you want these option in the Autogenerated summary page, and you cannot set these in the cfg file as the Summary page is not defined until the cfg file has finished processing.

There are two ways around this:
1. You can suppress the autogenerated summary page, by using 'routers.cgi*InSummary[_]: no', and then define your own custom summary page as above.
2. You can modify the routers2.cgi script to change the default. To do this you have to find this section of code, around line 3572:

Code:
    if(@ifarr) {
        if( defined $interfaces{'_summary_'} ) {
            push @{$interfaces{'_summary_'}{targets}},@ifarr
                if( $interfaces{'_summary_'}{mode} =~ /_AUTOSUMMARY/ );
        } else {
            $interfaces{'_summary_'} = {
            usergraph=>1, insummary=>0, inmenu=>1, inout=>0, incompact=>0,
            shdesc=>langmsg(2416,"Summary"),  targets=>[@ifarr], noo=>1, mult=>8,
            icon=>"summary-sm.gif", mode=>"\177_AUTOSUMMARY",
            withtotal=>0, withaverage=>0, issummary=>1
            };
            $interfaces{'_summary_'}{active} = 1
                if($routers{$router}{activesummary});
        }
    }


You need to add ',withtop=>1' immediately after 'issummary=>1' to make the PageTop get added automatically for all targets on all auto-generated summary pages for all devices. See below:

Code:
    if(@ifarr) {
        if( defined $interfaces{'_summary_'} ) {
            push @{$interfaces{'_summary_'}{targets}},@ifarr
                if( $interfaces{'_summary_'}{mode} =~ /_AUTOSUMMARY/ );
        } else {
            $interfaces{'_summary_'} = {
                usergraph=>1, insummary=>0, inmenu=>1, inout=>0, incompact=>0,
                shdesc=>langmsg(2416,"Summary"),  targets=>[@ifarr], noo=>1, mult=>8,
                icon=>"summary-sm.gif", mode=>"\177_AUTOSUMMARY",
                withtotal=>0, withaverage=>0, issummary=>1, withtop=>1
            };
            $interfaces{'_summary_'}{active} = 1
                if($routers{$router}{activesummary});
        }
    }


Note this is for routers2 v2.22 so you may have a slightly different version.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
PostPosted: Sat Feb 25, 2012 1:09 am 
Offline
User

Joined: Tue Feb 14, 2012 11:30 pm
Posts: 4
Dear Sir,

After implementation changes advised by you I got full information in summary page,
I want only description should be displayed on the header of the body


attached the image for compact summary, information page i want interface discription as a hyperlink


With Regards
Balbir


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Mon Mar 05, 2012 10:08 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
On the Information and Compat pages, the links are always the 'long' descirption (IE, what is in the Title[] definition for the Target). On the Summary and Graph pages, the PageTop can be displayed.

So, if you want this to only show the SNMP Description, then you will need to set the appropriate values in the Title[] and PageTop[] definitions in your MRTG .cfg files.

If you are using cfgmaker to generate these files, then you can use an interface template or host template to modify the default output format. This does require some Perl coding ability, though. There are cfgmaker templates available for example in the cfgmaker forum on this site.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group