Board index

Cheshire Cat Software

Steve Shipway's Discussion Groups
Locations of visitors to this page
It is currently Thu 09 Sep, 2010 12:00 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Interface Template for Routers2 support
PostPosted: Tue 19 Aug, 2008 5:49 pm 
Offline
Site Admin
User avatar

Joined: Mon 28 Jul, 2003 5:42 pm
Posts: 3005
Location: Auckland, New Zealand
This template will add the appropriate Routers2 entries per interface:
Code:
# cfgmaker template for use with Routers2 application
# use: cfgmaker --template=routers2.tmpl
$target_lines = $default_target_lines;
$target_lines .= "routers.cgi*Icon[$target_name]: interface-sm.gif\n";
$target_lines .= "routers.cgi*IfIp[$target_name]: $if_ip\n" if( $if_ip );
$target_lines .= "routers.cgi*IfNo[$target_name]: $if_index\n" if( $if_index );
$target_lines .= "routers.cgi*IfName[$target_name]: $if_snmp_name\n"
        if( $if_snmp_name );
$target_lines .= "routers.cgi*ShortDesc[$target_name]: ".(
# You may wish to reorder these according to your sites requirements
        $if_snmp_alias?$if_snmp_alias:
        $if_cisco_descr?$if_cisco_descr:
        $if_port_name?$if_port_name:
        $if_snmp_descr?$if_snmp_descr:
        $if_snmp_name?$if_snmp_name:
        $if_ip?$if_ip:$if_index?$if_index:$target_name)."\n";
# You may wish to uncomment this if you have the ifstatus extension installed
#$target_lines .= "routers.cgi*Extension[$target_name]: \"Show current port status\" /cgi-bin/ifstatus.cgi camera2-sm.gif\n" if($if_is_lan);


Attachments:
File comment: Interface template to add Routers2-specific directives
routers2.tp [1.05 KB]
Downloaded 233 times

_________________
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  [ 1 post ] 

All times are UTC - 5 hours


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 © 2000, 2002, 2005, 2007 phpBB Group