Hi
I'm going to use this example to populate the Description field with the
ifIndex number...just a couple questions...
Here is what I've got so far.  First off, do I actually put in the host_id#
of the particular host I want to use this for, or just leave $host_id?
Second, what is the purpose of the case 10 and case 11 statements?  How does
JFFNMS know to use the first OID or the default OID (maybe using the
$host_id field?)?  Thanks...

           if (count($ifIndex) > 0) {
                $ifDescr = switch ($host_id) {
                               case 10:
                               case 11:
                               case 12:
 
snmp_walk("$ip","$rocommunity",".1.3.6.1.2.1.2.2.1.1")
                                     break
                               default;
        
snmp_walk("$ip","$rocommunity",".1.3.6.1.2.1.2.2.1.2")
}

                $ifAdminStatus =
snmp_walk("$ip","$rocommunity",".1.3.6.1.2.1.2.2.1.7");
                $ifOperStatus =
snmp_walk("$ip","$rocommunity",".1.3.6.1.2.1.2.2.1.8");
                $ifSpeed =
snmp_walk("$ip","$rocommunity",".1.3.6.1.2.1.2.2.1.5");
                $ifAux =
snmp_walk("$ip","$rocommunity",".1.3.6.1.2.1.4.20.1.2");
                $ifAux1 =
snmp_walk("$ip","$rocommunity",".1.3.6.1.2.1.4.20.1.1");

                $ifAlias =
snmp_walk("$ip","$rocommunity",".1.3.6.1.2.1.31.1.1.1.18");
   

-----Original Message-----
From: Javier Szyszlican [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 18, 2004 12:07 PM
To: Jason Humes
Subject: Re: [jffnms-users] Problem graphing Alcatel/non-Cisco hardware


Jason,

        In the same place you modified the OID for the CatOS.
do something like

switch ($host_id) {
        case 10:
        case 11:
        case 12:
                snmp_walk (...) using the CatOS oids
                break;  

        default:
                snmp_walk (....) the standard that came with jffnms

}

that should be in the engine/discovery/snmp_interfaces.php
and the engine/pollers/verify_interface_number.php

Javier

Jason Humes wrote:
> Where do I make the exception?  Thanks.
> 
> -----Original Message-----
> From: Javier Szyszlican [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 18, 2004 9:29 AM
> To: Jason Humes
> Subject: Re: [jffnms-users] Problem graphing Alcatel/non-Cisco hardware
> 
> 
> Jason,
> 
>       The Host ID is the ID Field in the Host Administraion screen.
> 
> Javier
> 
> Jason Humes wrote:
> 
>>Hi
>>Where would I create this exception, and the host ID, is that the "ID"
>>shown when you are in Host Administration mode or do you mean the IP 
>>address? Thanks.
>>
>>-----Original Message-----
>>From: Javier Szyszlican [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, June 17, 2004 3:45 PM
>>To: Jason Humes
>>Subject: Re: [jffnms-users] Problem graphing Alcatel/non-Cisco 
>>hardware
>>
>>
>>Jason,
>>
>>      Yes, that could be the problem.
>>      Try changing it back to see if it works.
>>
>>      Then you could add a hard-coded exception by the host id to use the 
>>other OID.
>>      Until I find a way to put those exceptions in a better place.
>>
>>Javier
>>
>>Jason Humes wrote:
>>
>>
>>>Oh, you know what...just as I'm writing this email I remembered 
>>>something from the other day.  I changed the IfDescr OID, on the 
>>>Debian box, to support the discovery of catOS devices...could this 
>>>have an impact?  The reason we have two systems now is that the 
>>>Debian was just a test on a notebook and is the box I've been using 
>>>for the evaluation of this software, and the fedora box is going to 
>>>be the live unit.  What do you think...is that the problem.  Thanks
>>>
>>>-----Original Message-----
>>>From: Javier Szyszlican [mailto:[EMAIL PROTECTED]
>>>Sent: Thursday, June 17, 2004 3:09 PM
>>>To: Jason Humes
>>>Subject: Re: [jffnms-users] Problem graphing Alcatel/non-Cisco
>>>hardware
>>>
>>>
>>>Jason,
>>>
>>>It seems ok.
>>>
>>>So you now have a Fedora?
>>>
>>>Why is this snmpwalk done from a Debian?
>>>
>>>Are you completly sure the community is ok?
>>>
>>>Javier
>>>
>>>Jason Humes wrote:
>>>
>>>
>>>
>>>>Hi there
>>>>Here is the output from the snmpwalk.  I tried again today from
>>>>within JFFNMS and  I get the same result, no snmp related info.  But 
>>>>the funny thing is, on my Fedora install of JFFNMS, doing a manual 
>>>>discovery of this device works.  I basically swapped out the Debian 
>>>>box and put the Fedora box in, same IPs.  Thanks again.
>>>>
>>>>-----Original Message-----
>>>>From: Javier Szyszlican [mailto:[EMAIL PROTECTED]
>>>>Sent: Wednesday, June 16, 2004 7:56 PM
>>>>Cc: '[EMAIL PROTECTED]'
>>>>Subject: Re: [jffnms-users] Problem graphing Alcatel/non-Cisco 
>>>>hardware
>>>>
>>>>
>>>>Jason,
>>>>
>>>>I could debug it better, if you could send me a full snmpwalk of the
>>>>device.
>>>>
>>>>snmpwalk -v1 -c <community> <ip>
>>>>
>>>>Javier
>>>>
>>>>
>>>>Jason Humes wrote:
>>>>
>>>>
>>>>
>>>>
>>>>>Hi
>>>>>As far as I can tell, using getIF and doing an snmpwalk of the
>>>>>device
>>>>>shows that it does have data under the oid and also further in that 
>>>>>branch, .1.3.6.1.2.1.2.2.  Is this what JFFNMS polls to get the 
>>>>>relevant data? Could there be some other issue, aside from the usual 
>>>>>bad community string, etc. user errors.  Thanks.
>>>>>
>>>>>-----Original Message-----
>>>>>From: Javier Szyszlican [mailto:[EMAIL PROTECTED]
>>>>>Sent: Wednesday, June 16, 2004 3:22 PM
>>>>>Cc: '[EMAIL PROTECTED]'
>>>>>Subject: Re: [jffnms-users] Problem graphing Alcatel/non-Cisco
>>>>>hardware
>>>>>
>>>>>
>>>>>Hi Jason,
>>>>>
>>>>>   Around 90% of the SNMP code in JFFNMS implements monitoring for
>>>>>standard IETF-defined MIBs, like IF-MIB, HostMIB, etc. And some 
>>>>>cisco specific ones, but mostly is standard.
>>>>>
>>>>>   Alcatel and Transition Networks may be using 'enterprise' private 
>>>>>MIBs, there's no way JFFNMS is going to auto detect those, unless 
>>>>>someone codes the required discovery and poller scripts.
>>>>>
>>>>>   Most vendors have some info available via the IF-MIB and some 
>>>>>specific data in their 'private' MIB.
>>>>>
>>>>>Javier
>>>>>
>>>>>Jason Humes wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>Hi
>>>>>>I'm trying to do an interface discovery on an Alcatel OmniSwitch
>>>>>>and I've verified that the read/only community string is correct on 
>>>>>>both the JFFNMS and the Switch itself, yet JFFNMS returns no 
>>>>>>interfaces to graph, only the NMAP gathered data, nothing from 
>>>>>>SNMP.  I've also tried to graph a Transition Networks fibre 
>>>>>>conversion chassis and it has the same problem, no data from SNMP.  
>>>>>>Is there something I'm doing wrong, or does this not work on 
>>>>>>non-Cisco devices (I cant see how that could be).  Thanks again.
>>>>>>
>>>>>>Jason D. Humes
>>>>>>
>>>>>>Applied Computer Solutions Inc.
>>>>>>3020 St. Etienne Blvd.
>>>>>>Windsor, Ontario
>>>>>>Phone: (519) 944-4300 x211
>>>>>>Fax    : (519) 944-4247
>>>>>>Email : [EMAIL PROTECTED]
>>>>>>
>>>>>>
>>>>>>
>>>>>>******************************************************************
>>>>>>*
>>>>>>*
>>>>>>*
>>>>>>*
>>>>>>
>>>>>>Confidentiality Notice:
>>>>>>
>>>>>>The information contained in this e-mail and any attachments may 
>>>>>>be
>>>>>>legally privileged and confidential. If you are not an intended 
>>>>>>recipient, you are hereby notified that any dissemination, 
>>>>>>distribution or copying of this e-mail and any attachments is 
>>>>>>strictly prohibited. If you received this e-mail in error, please 
>>>>>>notify the sender and permanently delete the e-mail and any 
>>>>>>attachments immediately. You should not retain, copy or use this 
>>>>>>e-mail or any attachment for any purpose, nor disclose all or any 
>>>>>>part of the contents to any other person.
>>>>>>
>>>>>>Thank you.
>>>>>>
>>>>>>
>>>>>>
>>>>>>-------------------------------------------------------
>>>>>>This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
>>>>>>Learn from the experts at JavaOne(SM), Sun's Worldwide Java 
>>>>>>Developer Conference, June 28 - July 1 at the Moscone Center in San 
>>>>>>Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf 
>>>>>>Priority Code NWMGYKND 
>>>>>>_______________________________________________
>>>>>>jffnms-users mailing list
>>>>>>[EMAIL PROTECTED]
>>>>>>https://lists.sourceforge.net/lists/listinfo/jffnms-users
>>>>>
>>>>>
> 

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Javier Szyszlican, Project Leader, JFFNMS
[EMAIL PROTECTED]

I hope JFFNMS or I were helpful to you, if you
can, please donate at http://jffnms.org/donate


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
jffnms-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to