Re: Mib2c /Win32

Alex Burger <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
jdx wrote:
>> http://prdownloads.sourceforge.net/net-snmp/net-snmp-5.2.2.pre1-1.win32.exe 
>> )
>>    No mfd-top.m2c file (In Linux tar file, they are in: 
>> ./local/mib2c-conf.d/*  => where to copy them in Windows tree ?

The folder is missing in the binary.  I will add it for the next 
release.  Try:

md c:\usr\share\snmp\mib2c-data
xcopy (source)\local\mib2c-conf.d\*.* c:\usr\share\snmp\mib2c-data

Please let me know if it work as that is how the binary will install the 
files in future versions.

> PS: for Win32 packaging..
> When I was modifying MIB2C.bat
> adding just:  SET MIBS=ALL in second line,
> it works better, but still asks for IANA-RTPROTO-MIB.txt
> that I supplied for another tool. May be it would be added to package.

We could, but then it wouldn't be the same as the Unix version.  Unix 
users are not forced to have MIBS=ALL.

> Another question, if you please :
> why does this script ( MIB2C.bat ) call just the <same-name-perl-script>
> is it just not to have to rename Perl scripts with a .pl extension ?
> Or is there any other better reason ? For I didn't understand
> why to have two calls on IF test like :
> if "%OS%"=="Windows_NT" goto ...

We didn't want to rename the scripts as that would require users on ALL 
platforms to use the new name.  That wouldn't be nice. :)

The batch file is just a wrapper to call the Perl script as you noticed. 
    All the Net-SNMP documentation references 'mib2c'.  You can call the 
script directly if you want.

Windows NT and higher allows you to pass all command line arguments to 
another program by using %*.  Windows 9x does not support it so you need 
to use %1 %2 %3 %4 %5 etc.  %* is the preferred method as there is no 
limit on the number of arguments.  That is why the .bat file has the 'if 
"%OS%"=="Windows_NT"' statement.

Alex


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.