I at least get an error.
C:\net-snmp-5.6.1\mibs>perl makehtml.pl -W AGENTX-MIB.txt > outfile.html
'MIBS' is not recognized as an internal or external command,
operable program or batch file.
'mv' is not recognized as an internal or external command,
operable program or batch file.
That first error about MIBS is comming from line 106
system("MIBS=$mib mib2c -c mib2c.genhtml.conf $node");
Whats going on here is that the script is assuming that its being run
from a unix environment where we can set an environment variable can
be set in that way from the command line. If we were to change that
line to:
$ENV{MIBS} = $mib;
system("mib2c -c mib2c.genhtml.conf $node");
we can have perl set the environment variable for us and then it will
work on unix and windows.
The next error "'mv' is not recognized as an internal or external
command" is also caused by the script assuming we're on a unix box.
The usage for the makehtml.pl script is
usage: makehtml.pl -W [-M MIBDIR] [-D OUTDIR] files > index.html
but since you aren't using the -D option the easiest way to fix that
error for you would be to just comment out that line. Your html file
will then just be output in the current directory.
The file you get with the "> outfile.html" part of the command is
actually a listing of mibs like we see at
http://www.net-snmp.org/docs/mibs/
the part you're interested in is like what we get at
http://www.net-snmp.org/docs/mibs/agentxMIB.html
which will get a file generated based on the name of the MIB.
If you not getting any output at all though you may be having some
other issue, but the info about should get this script running on
windows. (works for me anyways)
Hope that helps,
--
Brandon Wigfield
CONXX, Inc.
www.conxx.net
On Fri, Feb 4, 2011 at 4:46 PM, Simon Chamlian <[email protected]> wrote:
>
>
>
> I installed strawberryperl.
>
> I tried:
>
> D:\public\net-snmp-5.6.1\perl>perl makehtml.pl -W mpbcRMH-MIB.mib > m.html
>
> No errors but creates a 'm.html' with size 0?!?
>
> Any hints?
>
> Thanks,
> S.
>
>
>
>
>
> ----- Original Message -----
> From: Brandon Wigfield
> To: Dave Shield
> Cc: Simon Chamlian ; [email protected]
> Sent: Friday, February 04, 2011 11:41 AM
> Subject: Re: MIB converter
>
> On Fri, Feb 4, 2011 at 11:19 AM, Dave Shield <[email protected]>
> wrote:
>>
>> On 4 February 2011 16:04, Simon Chamlian <[email protected]> wrote:
>> > Being new with PERL, what do I need to run it under WindowsXP.
>>
>> perl :-)
>> (Probably ActivePerl for windows)
>>
>> And the Net-SNMP perl modules
>> (which are part of the source distribution)
>>
>> See README.win32 for details.
>>
>> Dave
>>
>
> These days all the cool kids in the perl community are running strawberry
> perl on windows. It tends to play nicer with cpan.
> http://strawberryperl.com/
> --Brandon Wigfield
>
--
Brandon Wigfield
CONXX, Inc.
301.707.3489
www.conxx.net
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users