<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<STYLE id=owaParaStyle type=text/css>P {margin-top:0;margin-bottom:0;}</STYLE>

<META name=GENERATOR content="MSHTML 8.00.6001.19019"></HEAD>
<BODY fpstyle="1" ocsi="0">
<DIV dir=ltr align=left><FONT size=2 face=Verdana><SPAN 
class=525303410-18032011>Hi Steve,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2 face=Verdana><SPAN 
class=525303410-18032011></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT size=2 face=Verdana><SPAN 
class=525303410-18032011>thanks for the reply. I already attempted your advice. 
After using '--ifdesc=catname,ppname,alias,descr,ip,name,nr ' 
the&nbsp;"ifName"-attribute was used in my cfg-file. </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2 face=Verdana><SPAN 
class=525303410-18032011></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT size=2 face=Verdana><SPAN 
class=525303410-18032011>When I change the order of the attributes to be used 
for ifdesc, the output in my cfg-file changes as follows:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2 face=Verdana><SPAN 
class=525303410-18032011></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT size=2 face=Verdana><SPAN 
class=525303410-18032011>'--ifdesc=catname,ppname,alias,descr,ip,name,nr ' =&gt; 
ifName is used&nbsp;(Description like this as title "g1 -- 
Switch")</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2 face=Verdana><SPAN 
class=525303410-18032011>'--ifdesc=alias,descr,catname,ppname,ip,name,nr' =&gt; 
blank is used (Description like this as title "-- Switch")</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2 face=Verdana><SPAN 
class=525303410-18032011>'--ifdesc=descr,alias,catname,ppname,ip,name,nr' =&gt; 
blank is used (Description like this as title "-- Switch")</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2 face=Verdana><SPAN 
class=525303410-18032011>'--ifdesc=name,descr,alias,catname,ppname,ip,nr' =&gt; 
#ifName is used (Description like this as title "#g1 -- 
Switch")</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2 face=Verdana><SPAN 
class=525303410-18032011></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT size=2 face=Verdana><SPAN 
class=525303410-18032011>To avoid empty results I labelled all interfaces of the 
router, but no changes took place. The result is the same as above. Any ideas 
left?</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Verdana>Much thanks in advance</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Verdana>Markus</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT><BR></DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> Steve Shipway 
[mailto:s.shipway@auckland.ac.nz] <BR><B>Gesendet:</B> Donnerstag, 17. M&#228;rz 2011 
21:17<BR><B>An:</B> Markus Lauterbach; mrtg@lists.oetiker.ch<BR><B>Betreff:</B> 
RE: [mrtg] problems with cfgmaker and ifdesc=alias<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV 
style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: rgb(0,0,0); FONT-SIZE: 13px">
<DIV>You can specity multiple methods in the latest cfgmaker, so that 
alternatives will be used if they exist and the preferred method is blank.&nbsp; 
You also do not tell use *what* is being used where you expect the Alias to be 
used.<BR><BR>Try this:<BR><FONT size=2 face=Verdana><SPAN 
class=601335112-17032011>/usr/local/mrtg-2/bin/cfgmaker 
--no-down</SPAN></FONT><SPAN style="FONT-FAMILY: monospace"> 
</SPAN>--ifref=ip,name,nr<SPAN style="FONT-FAMILY: Tahoma"> 
-</SPAN>-ifdesc=catname,ppname,alias,descr,ip,name,nr --global "WorkDir: 
/opt/apache/htdocs/mrtg/switch" --output switch.cfg <A 
href="mailto:guessit@192.168.xxx.yyy" 
target=_blank>guessit@192.168.xxx.yyy</A><BR><FONT size=2 face=Verdana><SPAN 
class=601335112-17032011><BR></SPAN></FONT>&nbsp;Steve<BR></DIV>
<DIV><BR>
<DIV style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px">
<DIV style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px"><STRONG>Steve 
Shipway</STRONG></DIV>
<DIV style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px">University of Auckland 
ITS</DIV>
<DIV style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px"><EM>UNIX Systems Design 
Lead</EM></DIV>
<DIV style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px"><A 
href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</A></DIV>
<DIV style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px">Ph: +64 9 373 7599 ext 
86487</DIV>
<DIV 
style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px"><EM></EM>&nbsp;</DIV></DIV></DIV>
<DIV style="FONT-FAMILY: Times New Roman; COLOR: rgb(0,0,0); FONT-SIZE: 16px">
<HR tabIndex=-1>

<DIV style="DIRECTION: ltr" id=divRpF557174><FONT color=#000000 size=2 
face=Tahoma><B>From:</B> mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch 
[mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] on behalf of Markus 
Lauterbach [markus.lauterbach@meinestadt.de]<BR><B>Sent:</B> Friday, 18 March 
2011 2:24 a.m.<BR><B>To:</B> mrtg@lists.oetiker.ch<BR><B>Subject:</B> [mrtg] 
problems with cfgmaker and ifdesc=alias<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<DIV><FONT size=2 face=Verdana><SPAN class=601335112-17032011>Hi out 
there,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Verdana><SPAN 
class=601335112-17032011></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Verdana><SPAN class=601335112-17032011>I'm a recipient of 
this maillinglist for a few month now. With the announcement of the mrtg-release 
2.17.1, I thought, my problem based on cfgmaker and my routers interface alias 
would be solved. Now, I using mrtg-version 2.17.1 and my problem still exists. 
</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Verdana><SPAN 
class=601335112-17032011></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Verdana><SPAN class=601335112-17032011>bash-3.00$ 
/usr/local/mrtg-2/bin/cfgmaker --version<BR>cfgmaker for 
mrtg-2.17.2</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Verdana><SPAN 
class=601335112-17032011></SPAN></FONT><FONT size=2 face=Verdana><SPAN 
class=601335112-17032011></SPAN></FONT>&nbsp;</DIV>
<DIV><SPAN class=601335112-17032011></SPAN><FONT size=2 face=Verdana><SPAN 
class=601335112-17032011>I'm using a Cisco SG 300-52 52-port switch, which 
allows me, to label the interfaces. As you can see, I already did 
that</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Verdana>snmpwalk&nbsp;-c guessit 192.168.xxx.yyy 
.1.3.6.1.2.1.31.1.1.1.18<BR>IF-MIB::ifAlias.49 = STRING: <BR>IF-MIB::ifAlias.50 
= STRING: server<SPAN 
class=601335112-17032011>0</SPAN>1.yourdomain.com<BR>IF-MIB::ifAlias.51 = 
STRING: server<SPAN 
class=601335112-17032011>0</SPAN>2.yourdomain.com<BR>IF-MIB::ifAlias.52 = 
STRING: server<SPAN 
class=601335112-17032011>0</SPAN>3.yourdomain.com<BR>IF-MIB::ifAlias.53 = 
STRING: server<SPAN 
class=601335112-17032011>0</SPAN>4.yourdomain.com<BR>IF-MIB::ifAlias.54 = 
STRING: server<SPAN 
class=601335112-17032011>0</SPAN>5.yourdomain.com<BR>IF-MIB::ifAlias.55 = 
STRING: server<SPAN 
class=601335112-17032011>0</SPAN>6.yourdomain.com<BR>IF-MIB::ifAlias.56 = 
STRING: server<SPAN 
class=601335112-17032011>0</SPAN>7.yourdomain.com<BR>IF-MIB::ifAlias.57 = 
STRING: <BR>IF-MIB::ifAlias.58 = STRING: <BR>IF-MIB::ifAlias.59 = STRING: 
<BR>IF-MIB::ifAlias.60 = STRING: <BR>IF-MIB::ifAlias.61 = STRING: 
<BR>IF-MIB::ifAlias.62 = STRING: <BR>IF-MIB::ifAlias.63 = STRING: 
<BR>IF-MIB::ifAlias.64 = STRING: <BR>IF-MIB::ifAlias.65 = STRING: 
<BR>IF-MIB::ifAlias.66 = STRING: <BR>IF-MIB::ifAlias.67 = STRING: 
<BR>IF-MIB::ifAlias.68 = STRING: <BR>IF-MIB::ifAlias.69 = STRING: 
<BR>IF-MIB::ifAlias.70 = STRING: <BR>IF-MIB::ifAlias.71 = STRING: 
<BR>IF-MIB::ifAlias.72 = STRING: <BR>IF-MIB::ifAlias.73 = STRING: 
<BR>IF-MIB::ifAlias.74 = STRING: server<SPAN 
class=601335112-17032011>0</SPAN>8.yourdomain.com<BR>IF-MIB::ifAlias.75 = 
STRING: server<SPAN 
class=601335112-17032011>0</SPAN>9.yourdomain.com<BR>IF-MIB::ifAlias.76 = 
STRING: server10.yourdomain.com<BR>IF-MIB::ifAlias.77 = STRING: 
server11.yourdomain.com<BR>IF-MIB::ifAlias.78 = STRING: 
server12.yourdomain.com<BR>IF-MIB::ifAlias.79 = STRING: 
server13.yourdomain.com<BR>IF-MIB::ifAlias.80 = STRING: <BR>IF-MIB::ifAlias.81 = 
STRING: <BR>IF-MIB::ifAlias.82 = STRING: <BR>IF-MIB::ifAlias.83 = STRING: 
<BR>IF-MIB::ifAlias.84 = STRING: <BR>IF-MIB::ifAlias.85 = STRING: 
<BR>IF-MIB::ifAlias.86 = STRING: <BR>IF-MIB::ifAlias.87 = STRING: 
<BR>IF-MIB::ifAlias.88 = STRING: <BR>IF-MIB::ifAlias.89 = STRING: 
<BR>IF-MIB::ifAlias.90 = STRING: <BR>IF-MIB::ifAlias.91 = STRING: 
<BR>IF-MIB::ifAlias.92 = STRING: <BR>IF-MIB::ifAlias.93 = STRING: 
<BR>IF-MIB::ifAlias.94 = STRING: <BR>IF-MIB::ifAlias.95 = STRING: 
<BR>IF-MIB::ifAlias.96 = STRING: <BR>IF-MIB::ifAlias.97 = STRING: 
<BR>IF-MIB::ifAlias.98 = STRING: <BR>IF-MIB::ifAlias.99 = STRING: 
uplink<BR>IF-MIB::ifAlias.100 = STRING: <BR>IF-MIB::ifAlias.1000 = STRING: 
<BR>IF-MIB::ifAlias.1001 = STRING: <BR>IF-MIB::ifAlias.1002 = STRING: 
<BR>IF-MIB::ifAlias.1003 = STRING: <BR>IF-MIB::ifAlias.1004 = STRING: 
<BR>IF-MIB::ifAlias.1005 = STRING: <BR>IF-MIB::ifAlias.1006 = STRING: 
<BR>IF-MIB::ifAlias.1007 = STRING: <BR>IF-MIB::ifAlias.3000 = STRING: 
<BR>IF-MIB::ifAlias.100000 = STRING: <BR>IF-MIB::ifAlias.300000 = 
STRING:</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Verdana><SPAN class=601335112-17032011>I'm using the 
cfgmaker with the following command ( /usr/local/mrtg-2/bin/cfgmaker --no-down 
--ifdesc=alias --global "WorkDir: /opt/apache/htdocs/mrtg/switch" --output 
switch.cfg <A href="mailto:guessit@192.168.xxx.yyy" 
target=_blank>guessit@192.168.xxx.yyy</A>; ), but&nbsp;unfortunately the 
interface alias isn't used&nbsp;in the cfg-file :(</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Verdana><SPAN 
class=601335112-17032011></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Verdana><SPAN class=601335112-17032011>Is this option 
tricky to use or I'm not able to see the wood for the trees.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Verdana><SPAN 
class=601335112-17032011></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Verdana><SPAN class=601335112-17032011>Much thanks in 
advance</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Verdana><SPAN 
class=601335112-17032011></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Verdana><SPAN 
class=601335112-17032011>Markus</SPAN></FONT><FONT size=2 face=Verdana><SPAN 
class=601335112-17032011></SPAN></FONT></DIV></DIV></DIV></DIV>
<SCRIPT type=text/javascript><!--
function __RP_Callback_Helper(str, strCallbackEvent, splitSize, func){var event = null;if (strCallbackEvent){event = document.createEvent('Events');event.initEvent(strCallbackEvent, true, true);}if (str && str.length > 0){var splitList = str.split('|');var strCompare = str;if (splitList.length == splitSize)strCompare = splitList[splitSize-1];var pluginList = document.plugins;for (var count = 0; count < pluginList.length; count++){var sSrc = '';if (pluginList[count] && pluginList[count].src)sSrc = pluginList[count].src;if (strCompare.length >= sSrc.length){if (strCompare.indexOf(sSrc) != -1){func(str, count, pluginList, splitList);break;}}}}if (strCallbackEvent)document.body.dispatchEvent(event);}function __RP_Coord_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Coord_Callback = str;pluginList[index].__RP_Coord_Callback_Left = splitList[0];pluginList[index].__RP_Coord_Callback_Top = splitList[1];pluginList[index].__RP_Coord_Callback_Right = splitList[2];pluginList[index].__RP_Coord_Callback_Bottom = splitList[3];};__RP_Callback_Helper(str, 'rp-js-coord-callback', 5, func);}function __RP_Url_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Url_Callback = str;pluginList[index].__RP_Url_Callback_Vid = splitList[0];pluginList[index].__RP_Url_Callback_Parent = splitList[1];};__RP_Callback_Helper(str, 'rp-js-url-callback', 3, func);}function __RP_TotalBytes_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_TotalBytes_Callback = str;pluginList[index].__RP_TotalBytes_Callback_Bytes = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}function __RP_Connection_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Connection_Callback = str;pluginList[index].__RP_Connection_Callback_Url = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}
//--></SCRIPT>
</BODY></HTML>