Sound like cfgmaker is getting confused by the community string and is using the wrong one somehow.
Try experimenting with the number of escape characters for the @ in the community, or use single quotes: cfgmaker --global 'WorkDir: /srv/www/htdocs/mrtg/172.16.20.1' --global 'Options[_]: growright' --output /etc/mrtg/switch.cfg --subdirs=HOSTNAME --ifdesc=nr --ifdesc=descr --ifdesc=alias --ifref=name 'h...@[email protected]' if this doesn't work, use 2, 3 or 4 backquotes before the @ instead, I don't know without testing how many times cfgmaker is evaluating it and removing the \ characters. Really, cfgmaker should have some code to identify problem characters in the community string and escape them automatically... make the regexp matching 'greedy' so that the last @ is taken as the separator. But that's someone else's problem :) Steve ________________________________________ From: [email protected] [[email protected]] On Behalf Of Chris Henderson [[email protected]] Sent: Wednesday, 20 May 2009 4:51 p.m. To: McDonald, Dan Cc: [email protected] Subject: Re: [mrtg] cfgmaker error: No response from remote host On Tue, May 19, 2009 at 10:22 PM, McDonald, Dan <[email protected]> wrote: > On Tue, 2009-05-19 at 11:36 +1000, Chris Henderson wrote: >> I have changed a switch and want to run cfgmaker again. But when I run >> "cfgmaker --global 'WorkDir: /srv/www/htdocs/mrtg/172.16.20.1" >> --global 'Options[_]: growright' --output /etc/mrtg/switch.cfg >> --subdirs=HOSTNAME --ifdesc=nr --ifdesc=descr --ifdesc=alias >> --ifref=name h...@[email protected]" I get error "SNMPWALK Problem for >> ifDescr on h...@[email protected]::::::v4only: No response from remote host >> '172.16.20.1' at /usr/bin/cfgmaker line 147. _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
