Re: Need help loading and traversing MIBs

2014-05-21 Thread Niels Baggesen
Den 14-05-2014 12:05, Odiee47 . skrev:

> When trying to print_mib to file the program then fails.
>
> Any ideas what I did wrong here?

Please elaborate "fails". How does it fail? How much did it write to 
test.txt? Did it even create the file (you should check the return value 
from fopen)

When I tried it I got almost 120.000 lines of output.

/Niels

-- 
Niels Baggesen -- @home -- Århus -- Denmark -- ni...@baggesen.net
The purpose of computing is insight, not numbers  --  R W Hamming

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


notifications

2014-05-21 Thread LEONARD GOMELSKY
Hello everybody,
I am about to implement snmpTargetAddrTable, snmpTargetParamsTable and 
snmpNotifyTable to send notifications to the targets, and I have 2 questions. 
For v2c notification, is the community in the notification packet  in any way 
related to an entry in snmpCommunityTable? And for v3, do I build security 
parameters (usmUserName, usmUserEngineID, usmUserAuthProtocol etc)  with those 
outlined in a userUsmTable? It does not seem right to me since these tables are 
specified for the incoming requests, not the outgoing ones, but there are 
different opinions here. Also if those tables are not used in building 
notifications, what is a common way to obtain security parameters to issue 
notifications?
Thank you very much in advance.
Leonard

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


I need to know

2014-05-21 Thread Bass, Leon (contr-itd)
How can I view the MD5/SHA and DES/AES information on the SNMP configuration of 
a 3D 7030 appliance

Leon Bass, CISSP, CISM, ITILv3
Classified Support Team
Support Contractor for DARPA
Mission Services Office,
Information Technology Directorate
Defense Advanced Research Projects Agency
Office - 703-526-4066
Cell - 540-247-8257
FAX - 703-807-9989

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


SNP upgrade - Solaris 10 SPARC 64 bit

2014-05-21 Thread settu.raju
Hi Team,

We are planning to upgrade SNMP. Could you please provide the process method.

Current version :  NET-SNMP version:  5.0.9

We are planning to upgrade NET-SNMP   5.7.2.1

Thanks,
Settu R




This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise confidential information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the e-mail by you is prohibited. Where allowed by local law, electronic 
communications with Accenture and its affiliates, including e-mail and instant 
messaging (including content), may be scanned by our systems for the purposes 
of information security and assessment of internal compliance with Accenture 
policy.
__

www.accenture.com
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Need help loading and traversing MIBs

2014-05-21 Thread Odiee47 .
Hi,

I am trying to build an agent that could load specified MIBs and then query
selected values. But when I try to print mib information via "print_mib" my
application crashes. I'm using this code to load MIB

 netsnmp_init_mib();
 read_all_mibs();
 snmp_set_mib_warnings(2);
 //struct tree *tr = netsnmp_read_module("CISCO-RHINO-MIB");
 struct tree *tr = read_mib("CISCO-RHINO-MIB.mib");

 //
 while(tr)
  {
   printf("%s\n",tr->label);
   tr = tr->next_peer;
  }

 FILE *f = fopen("test.txt","w");
 print_mib(f);
 fclose(f);

Using read_module instead of read_mib is practically the same, but
read_module  doesn't display any output, while read_mib will produce this
output
http://imgur.com/rbiieWf
When trying to print_mib to file the program then fails.

Any ideas what I did wrong here?
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Strategy recommendation

2014-05-21 Thread Highend-Digital Post

Am 22.04.2014 21:26, schrieb Niels Baggesen:

Den 19-03-2014 17:12, Highend-Digital Post skrev:

My general idea is to use asynchroneous SNMP_MSG_GETBULK requests which
were restarted from within the handler after all previous data is
processed.


I would question whether GETBULK is the right approach, but that 
depends very much on the locality of the OIDs that you are going to 
query? A straight GET might be a better approach.
There are 200-300 oids from each device available. If using BULK 
requests, only 2-3 requests (of 30 oids each) will suffice to get all 
the needed information.



->  Is the general idea correct or might the system run into performance
problems with this amount of data?


That should mostly depend on the agents that you are querying, but in 
general I would not expect any problems.
yes, after first test I've got the same impression. Still I'm fighting 
with some 'general error' message. Being back if this problem will again 
trouble me and I'm able to supply more details.



Currently I work with the 'standard' version (-5.4.3) of net-snmp under
Debian Wheezy.

-> Is there a need to upgrade to a newer version (to gain new
functionality or better performance) ?


No.

/Niels


Regards, Roger
<>--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


RE: Error in packet. Reason: Unknown Error with snmpwalk

2014-05-21 Thread Gefei Jiang
Hi Niels,

Thank you for your response.
I have solved the issue I reported earlier and is unable to reproduce the 
problem anymore.
Thank you again.

Gefei


-Original Message-
From: Niels Baggesen [mailto:n...@users.sourceforge.net] 
Sent: Tuesday, April 22, 2014 12:54 PM
To: Gefei Jiang; net-snmp-coders@lists.sourceforge.net
Subject: Re: Error in packet. Reason: Unknown Error with snmpwalk

Den 15-04-2014 19:35, Gefei Jiang skrev:
> PS:   Below is my captures for both version:
>
> 5.7.2.1 version:
>
> [gjiang@Gefei-PC ~]$ snmpwalk -v 2c -c myCode 10.219.101.161 
> NETOPTICS-MIB-DIRECTOR::ntpTable
> NETOPTICS-MIB-DIRECTOR::ntpIndex.0.0 = INTEGER: 0
> NETOPTICS-MIB-DIRECTOR::ntpAction.0.0 = INTEGER: default(0)
> NETOPTICS-MIB-DIRECTOR::ntpAdmin.0.0 = INTEGER: enabled(1)
> NETOPTICS-MIB-DIRECTOR::ntpSrvrIp.0.0 = IpAddress: 10.30.1.15
> NETOPTICS-MIB-DIRECTOR::ntpDst.0.0 = INTEGER: on(1)
> NETOPTICS-MIB-DIRECTOR::ntpTimezone.0.0 = STRING: New_York
> NETOPTICS-MIB-DIRECTOR::ntpSrvrIpv6.0.0 = STRING:
> Error in packet.
> Reason: Unknown Error

Is the agent you query based on Net-SNMP?

What do you see if you run "snmpwalk -d -Ddump -v 2c "

/Niels

--
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


notifications

2014-05-21 Thread LEONARD GOMELSKY
Hello everybody,
I am about to implement snmpTargetAddrTable, snmpTargetParamsTable and 
snmpNotifyTable to send notifications to the targets, and I have 2 questions. 
For v2c notification, is the community in the notification packet  in any way 
related to an entry in snmpCommunityTable? And for v3, do I build security 
parameters (usmUserName, usmUserEngineID, usmUserAuthProtocol etc)  with those 
outlined in a userUsmTable? It does not seem right to me since these tables are 
specified for the incoming requests, not the outgoing ones, but there are 
different opinions here. Also if those tables are not used in building 
notifications, what is a common way to obtain security parameters to issue 
notifications?
Thank you very much in advance.
Leonard
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders