overflow with free disk space?

2005-03-21 Thread Bruno Mattarollo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

We've just received a new array and after installing Net-SNMP 5.2.1 on
it (Fedora Core 2, custom kernel mods), the 3.7TB are now causing some
problems.

# snmpwalk -v2c -c  MYHOSTNAME .1.3.6.1.4.1.2021.9.1.7
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 27951168
UCD-SNMP-MIB::dskAvail.2 = INTEGER: -2147483648

The strange thing is that if I use snmpdf ... I get the right value :?

# snmpdf -v2c -c  MYHOSTNAME
Description  size (kB)Used   Available Used%
[ ... ]
/export 390430310478306464  38259966402%

I am using Cacti to graph the snmp data and it's using the values that I
get from snmpwalk ... What can I do to change this?

Cheers

/B

- --
Bruno Mattarollo <[EMAIL PROTECTED]>
Systems Administrator - Sydney
GnuPG: 65A6 C94A 1978 9B42 6ED2 FBCE 1BD2 756B 3A80 D8FC
- ---
Rising Sun Pictures - [ http://www.rsp.com.au/ ]
redefining visual effects delivery
- ---
syd - ph +61 2 9338 6400 - fx +61 2 9338 6401
adl - ph +61 8 7421 6400 - fx +61 8 7421 6401
- ---
rising sun research - http://research.rsp.com.au
cineSpace color management solutions for film
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCP8vrG9J1azqA2PwRAncAAJ9tL19PdwE8oSHb0+0DdT8d4V3UbACgtoCU
SReP2xIz4wKjxoznekGB+PM=
=fVjm
-END PGP SIGNATURE-


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: snmpget

2005-03-21 Thread Thomas Anders
TheBatchMan wrote:
snmpget -v 1 -c xxx yyy.com -m edir-mib 1.3.6.1.4.1.23.2.98.1.2.3.1.1.5
Use
snmpget -v 1 -c xxx -m +edir-mib yyy.com 1.3.6.1.4.1.23.2.98.1.2.3.1.1.5
instead.
+Thomas
---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


How to add a monitor dynamicly?

2005-03-21 Thread Sim Wind
I'm sorry for resending this mail, for that i shold have given the precondition about the problem
when i configure the file snmpd.conf, add some  lines in it like the following.
monitor -o prNames -o prErrMessage "process table" prErrorFlag != 0
.
after restarting the snmpd, I call snmpwalk, and get the following message
$ snmpwalk -v2c -c community agent dismanEventMIB
DISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf1".1 = OID: SNMPv2-SMI::enterprises.8193.1.1.1.5.1.3DISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf1".2 = OID: SNMPv2-SMI::enterprises.8193.1.1.1.5.1.4DISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf2".1 = OID: UCD-SNMP-MIB::prNamesDISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf2".2 = OID: UCD-SNMP-MIB::prErrMessageDISMAN-EVENT-MIB::mteObjectsIDWildcard."snmpd.conf"."snmpd.conf1".1 = INTEGER: true(1)DISMAN-EVENT-MIB::mteObjectsIDWildcard."snmpd.conf"."snmpd.conf1".2 = INTEGER: true(1)DISMAN-EVENT-MIB::mteObjectsIDWildcard."snmpd.conf"."snmpd.conf2".1 = INTEGER: true(1)DISMAN-EVENT-MIB::mteObjectsIDWildcard."snmpd.conf"."snmpd.conf2".2 = INTEGER: true(1)DISMAN-EVENT-MIB::mteObjectsEntryStatus."snmpd.conf"."snmpd.conf1".1 = INTEGER: active(1)DISMAN-EVENT-MIB::mteObjectsEntryStatus."snmpd.conf"."snmpd.conf1".2 = INTEGER:
 active(1)DISMAN-EVENT-MIB::mteObjectsEntryStatus."snmpd.conf"."snmpd.conf2".1 = INTEGER: active(1)DISMAN-EVENT-MIB::mteObjectsEntryStatus."snmpd.conf"."snmpd.conf2".2 = INTEGER: active(1) 
but i don't know how to do still, call snmpset? or other function call?
I mean that  not modifying the file snmpd.conf , what i should do can get the same result?
by the way, i notice also that the oid includes some string in the result, so can  we  use the string in the oid like these? 
but snmpget it is failed.
e.g.snmpget -v2c -c gw1admin 192.168.133.225 DISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf1".1DISMAN-EVENT-MIB::mteObjectsID.snmpd.conf.snmpd.conf1.1: Unknown Object Identifier (Index out of range: snmpd (mteOwner))
why?
		Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site! 

snmpget

2005-03-21 Thread TheBatchMan
Hello,
I am new to snmp and not sure whether this is the vehicle I am to use 
for question asking, but here goes?  I have used a win32 GUI snmp 
program and am looking to find command-line snmp tools.  I have 
downloaded the "net-snmp-5.2.1-1.win32.exe" set of tools and started 
playing with the snmpget program.

I am wanting to get information from Novell NetWare 6.5 / Novell 
eDirectory 8.7 servers.  I can get snmp information when I use the 
usr\share\snmp\mibs that came along with the "net-snmp-5.2.1-1.win32.exe".

When I point the snmpget utility at the native edir.mib file that comes 
with eDirectory, I get an error

-m:  (Sub-id not found: (top) -> -m)
edir-mib:  (Sub-id not found: (top) -> edir-mib)
My syntax is the following, except I have not divulged my community or 
server name:

snmpget -v 1 -c xxx yyy.com -m edir-mib 1.3.6.1.4.1.23.2.98.1.2.3.1.1.5
What am I missing or not doing correctly with this mib?
Thanks
D
--
Don Lohr
++ Bad command or file name  ++
---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


How to add a monitor dynamicly?

2005-03-21 Thread Sim Wind
Thanks for your help.  
I call snmpwalk, and get the following message
$ snmpwalk -v2c -c community agent dismanEventMIB
DISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf1".1 = OID: SNMPv2-SMI::enterprises.8193.1.1.1.5.1.3DISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf1".2 = OID: SNMPv2-SMI::enterprises.8193.1.1.1.5.1.4DISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf2".1 = OID: UCD-SNMP-MIB::prNamesDISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf2".2 = OID: UCD-SNMP-MIB::prErrMessageDISMAN-EVENT-MIB::mteObjectsIDWildcard."snmpd.conf"."snmpd.conf1".1 = INTEGER: true(1)DISMAN-EVENT-MIB::mteObjectsIDWildcard."snmpd.conf"."snmpd.conf1".2 = INTEGER: true(1)DISMAN-EVENT-MIB::mteObjectsIDWildcard."snmpd.conf"."snmpd.conf2".1 = INTEGER: true(1)DISMAN-EVENT-MIB::mteObjectsIDWildcard."snmpd.conf"."snmpd.conf2".2 = INTEGER: true(1)DISMAN-EVENT-MIB::mteObjectsEntryStatus."snmpd.conf"."snmpd.conf1".1 = INTEGER: active(1)DISMAN-EVENT-MIB::mteObjectsEntryStatus."snmpd.conf"."snmpd.conf1".2 = INTEGER:
 active(1)DISMAN-EVENT-MIB::mteObjectsEntryStatus."snmpd.conf"."snmpd.conf2".1 = INTEGER: active(1)DISMAN-EVENT-MIB::mteObjectsEntryStatus."snmpd.conf"."snmpd.conf2".2 = INTEGER: active(1) 
but i don't know how to do still, call snmpset? or other function call?
I mean that  not modifying the file snmpd.conf , what i should do can get the same result?
by the way, i notice also that the oid includes some string in the result, so can  we  use the string in the oid like these? 
but snmpget it is failed.
e.g.snmpget -v2c -c gw1admin 192.168.133.225 DISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf1".1DISMAN-EVENT-MIB::mteObjectsID.snmpd.conf.snmpd.conf1.1: Unknown Object Identifier (Index out of range: snmpd (mteOwner))
why?
 

		Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site! 

Re: OIDs and Instances returned by SNMPWALK

2005-03-21 Thread John Pomeroy
Have you tried variations on the command line snmpwalk using -On and
-Of. (that's the letter O, not a zero). These can help you figure out
exactly what object you're seeing responses to.   You should also read
the snmpcmd man page.  I haven't seen a net-snmp FAQ yet, but someone
has probably created one.

The following is from the RFC1213 MIB (another good starting point, read
the MIB files.. Some can be dry as dust and more than a little arcane
but the MIBs define what you can measure).  

atTable OBJECT-TYPE
SYNTAX  SEQUENCE OF AtEntry
ACCESS  not-accessible
STATUS  deprecated
DESCRIPTION
"The Address Translation tables contain the
NetworkAddress to `physical' address equivalences.
Some interfaces do not use translation tables for
determining address equivalences (e.g., DDN-X.25
has an algorithmic method); if all interfaces are
of this type, then the Address Translation table
is empty, i.e., has zero entries."
::= { at 1 }


$ snmpwalk -On -v 2c -c readcommunity FQDN sysContact.0
.1.3.6.1.2.1.1.4.0 = STRING:

$ snmpwalk -Of -v 2c -c readcommunity FQDN sysContact.0
.iso.org.dod.internet.mgmt.mib-2.system.sysContact.0 = STRING:

Capture the walk from .iso to a file to make your investigation easier. 
$ snmpwalk -Of -v 2c -c readcommunity FQDN iso > filename

Good Luck,

John


> Message: 2
> Subject: OIDs and Instances returned by SNMPWALK
> Date: Mon, 21 Mar 2005 15:03:41 -0500
> From: [EMAIL PROTECTED]
> To: net-snmp-users@lists.sourceforge.net
> 
> This is a multi-part message in MIME format.
> 
> --_=_NextPart_001_01C52E51.147D0108
> Content-Type: text/plain;
>  charset=us-ascii
> Content-Transfer-Encoding: quoted-printable
> 
> Hi everyone,
> 
> =20
> 
> When snmpwalk is returned, 2 such lines that is returned is the
> following:
> 
> =20
> 
>SNMPv2-MIB::sysContact.0 =3D STRING: [EMAIL PROTECTED]
> 
>RFC1213-MIB::atPhysAddress.2.1.198.235.66.193 =3D Hex-STRING:
> (blahblahblah)
> 
> =20
> 
> Now, I've been told that sysContact is a MIB variable, and the "0" is
> the instance.  If that is true, then "2.1.198.235.66.193" is the
> instance.  Now, I know that 198.235.66.193 is probably an IP of some
> kind (my server IP is 193.235.66.203.  So what is the "2.1" in front?
> Is there any way to determine in the string from the :: to =3D whether =
> it
> contains 1 IP, multiple IPs, ports, instance numbers etc?
> 
> =20
> 
> Is there any documentation that discusses the format of the data that
> SNMPWALK returns?
> 
> I've gone through a lot of SNMP faqs, but I'm just not finding the
> answer (or missed it).
> 
> =20
> 
> Can anyone provide an answer or point me in the right direction?
> Getting panicky about this because this needs to be complete by tomorrow
> and I'm still clueless...
> 
> =20
> 
> Thanks so much.
> 
> Nelson
> 
> =20
> 
> Nelson Yik
> 
> Business Systems Analyst
> 
> University of Waterloo Co-op
> 
> New Technology Integration
> 
> Bell Canada
> 
> 76 Adelaide St. W., Floor 15
> 
> * [EMAIL PROTECTED] =20
> 
> * (416) 353-9159
> 
> =20
> 




---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Exec repeats system calls

2005-03-21 Thread frank
I came up against this one recently and eventually figured it out myself.
You need to add a timeout to your snmpwalk/get. (-t seconds) Default is 1 
second.

-f
On Mon, 21 Mar 2005, Clements, Brian wrote:
Date: Mon, 21 Mar 2005 15:23:11 -0700
From: "Clements, Brian" <[EMAIL PROTECTED]>
To: net-snmp-users@lists.sourceforge.net
Subject: Exec repeats system calls
I've seen this topic posted once before "exec repeats system call, never
returns value".  I'm using exec in the snmpd.conf to execute a script.
The script is getting called at least 3 times each time I do a snmp
walk.  Any ideas?  I'm seeing this behavior with 5.1.2 and 5.2.1.
-Brian
---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Exec repeats system calls

2005-03-21 Thread Clements, Brian

I've seen this topic posted once before "exec repeats system call, never
returns value".  I'm using exec in the snmpd.conf to execute a script.
The script is getting called at least 3 times each time I do a snmp
walk.  Any ideas?  I'm seeing this behavior with 5.1.2 and 5.2.1.

-Brian


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


exec script handling

2005-03-21 Thread Keith Ledford
Hello all,

We are trying to extend net-snmp to return some values for our
products. In our snmpd.conf file we have an entry for exec like:
  
exec .1.3.6.1.4.1.11021.x.y.z TTVEntry 
/usr/local/n2bb/snmpcatcher/bin/TTVEntry_script.pl

The TTVEntry_script.pl returns about 15 metrics. 

It appears that using this syntax that the TTVEntry_script is run once
for each of the 15 metrics. Running the script 15 times in a short
time period causes the process we are querying to lock up. How can we
get the script to run just once to populate the agent? Is there
example scripts somewhere that I can look over to see where my
problems are?

We are using net-snmp 5.1.2-1 under Linux.

Thanks!


-- 
Keith Ledford <[EMAIL PROTECTED]>
Operations Development Manager
TANDBERG Television
678.812.6361 direct
888.671.1268 NOC


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


OIDs and Instances returned by SNMPWALK

2005-03-21 Thread nelson . yik








Hi everyone,

 

When snmpwalk is returned, 2 such lines that is returned is
the following:

 

   SNMPv2-MIB::sysContact.0
= STRING: [EMAIL PROTECTED]

   RFC1213-MIB::atPhysAddress.2.1.198.235.66.193
= Hex-STRING: (blahblahblah)

 

Now, I’ve been told that sysContact is a MIB
variable, and the “0” is the instance.  If that is true, then “2.1.198.235.66.193”
is the instance.  Now, I know that 198.235.66.193 is probably an IP of
some kind (my server IP is 193.235.66.203.  So what is the “2.1”
in front?  Is there any way to determine in the string from the :: to =
whether it contains 1 IP, multiple IPs, ports, instance numbers etc?

 

Is there any documentation that discusses the format
of the data that SNMPWALK returns?

I’ve gone through a lot of SNMP faqs, but I’m
just not finding the answer (or missed it).

 

Can anyone provide an answer or point me in the
right direction?  Getting panicky about this because this needs to be
complete by tomorrow and I’m still clueless…

 

Thanks so much.

Nelson

 

Nelson
Yik

Business Systems Analyst

University of Waterloo Co-op

New Technology Integration

Bell Canada

76 Adelaide St. W., Floor 15

+ [EMAIL PROTECTED]

( (416) 353-9159

 








Extention : Problem in net SNMP agent( complied with MY own MIB)..please help me

2005-03-21 Thread Kumara-Swamy.Dontamsetti
I have forgot to mention the earlier mail.

When I try on other system MIBs It is working perfectly I have 
tried on SNMP MIB and system MIB.

Thanks in advance.
Regards
Kumar





> Hi,
> 
> I am struggling from past three days on same problem> ...> 
> 
> 1. I have complied my MIB ( ADSL-LINE-MIB) with net-SNMP agent   -- 
> success. 
>   ( Note: code is generated with mib2c.iterate.conf )
> 
> 2. I have created snmpd.conf (with rocommunity is public and  rwcommunity 
> is private ).
> 3. I have started snmp demon in following way with root access.
> 
>   agent/snmpd -r -f  -Lo -m ALL -M 
> /home/kumar/projects_cc/common/mib_tools/mibs/ietf -c 
> /home/kumar/.snmp/snmpd.conf -   C -d -a  
> 
>   Output of the demon> ...> 
> 
>   init_adslMIB: Entered  
>   initialize_table_adslLineConfProfileTable: Entered  
>   netsnmp_create_handler_registration  
>   netsnmp_create_handler_registration success  
>   netsnmp_table_helper_add_indexes  
>   netsnmp_register_table_iterator  
>   adslLineConfProfileTable_createEntry: Entered  SNMP_TYPEDEF_MALLOC  
>   adslLineConfProfileTable Entry: created with profile name: 01 
>   adslLineConfProfileTable_createEntry: Entered  SNMP_TYPEDEF_MALLOC 
>   adslLineConfProfileTable Entry: created with profile name: 02
>   ( Note: All the above logs are added by for debugging> ...>  )
> 
>   ( some more errors from other MIBS.. Because I am loading all MIBs from 
> specified directory.. Those I have ignored..
>   For reference I have including all those errors at the end of the mail)
> 
>   NET-SNMP version 5.2.1
> 
> 4. I have requested one object in following way with root access.
> 
>   ( some more errors from other MIBS.. Because I am loading all MIBs from 
> specified directory.. Those I have ignored..
>   For reference I have included all those errors at the end of the mail)
> 
>   snmpget -v 2c -m ALL -M 
> /home/kumar/projects_cc/common/mib_tools/mibs/ietf localhost -c private   
>   10.94.1.1.14.1.2."01"
> 
>   Output of the command:
> 
>   
> transmission.adslMIB.adslLineMib.adslMibObjects.adslLineConfProfileTable.adslLineConfProfileEntry.adslAtucConfRateMod
>e.'.' = No Such Object available on this agent
> 
>   So, It has recognised the path properly> ...>  I feel that problem is 
> in instance of the object.. I have given MIB  definitions at end of the 
> question.
> 
>   
>   Output of the demon when requested the OID..
> 
> 
>   Received 49 bytes from UDP: [127.0.0.1]:33965
>   : 30 2F 02 01  01 04 07 70  72 69 76 61  74 65 A0 21
> 0/.private !
>   0016: 02 04 79 CB  3C 92 02 01  00 02 01 00  30 13 30 11
> ..yË<...0.0.
>   0032: 06 0D 2B 06  01 02 01 0A  5E 01 01 0E  01 02 01 05
> ..+.^...
>   0048: 00.
> 
>   Received SNMP packet(s) from UDP: [127.0.0.1]:33965
> GET message
>   -- ADSL-LINE-MIB::adslAtucConfRateMode.'.'
> 
>   Sending 49 bytes to UDP: [127.0.0.1]:33965
>   : 30 2F 02 01  01 04 07 70  72 69 76 61  74 65 A2 21
> 0/.private¢!
>   0016: 02 04 79 CB  3C 92 02 01  00 02 01 00  30 13 30 11
> ..yË<...0.0.
>   0032: 06 0D 2B 06  01 02 01 0A  5E 01 01 0E  01 02 01 80
> ..+.^...
>   0048: 00.
> 
> 
>   But When I tried in the following way , it is giving some parser error..
> 
>   snmpget -v 2c -m ALL -M 
> /home/kumar/projects_cc/common/mib_tools/mibs/ietf localhost -c private   
>   10.94.1.1.14.1.2.\"01\"
> 
>   snmpget -v 2c -m ALL -M 
> /home/kumar/projects_cc/common/mib_tools/mibs/ietf localhost -c private   
>   '10.94.1.1.14.1.2."01"'
> 
>   Error message:
>   10.94.1.1.14.1.2."01":Unknown Object Identifier ( 
> -quote is for variable length strings)
> 
>   Please help me to come out of this problem> ...> ..
> 
> Advance thanks for ur help..
> 
> Regards
> Kumar
> 
> 
> MIB definitions> ...> 
> 
>   
>  adslLineConfProfileTableOBJECT-TYPE
>  SYNTAX  SEQUENCE OF AdslLineConfProfileEntry> 
>  MAX-ACCESS  not-accessible
>  STATUS  current
>  DESCRIPTION
>  "This table contains information on the ADSL line
>  configuration.  One entry in this table reflects a
>  profile defined by a manager which can be used to
>  configure the ADSL line."
>  ::= { adslMibObjects 14}
> 
>  adslLineConfProfileEntryOBJECT-TYPE
>  SYNTAX  AdslLineConfProfileEntry
>  MAX-ACCESS  not-accessible
>  STATUS  current
>  DESCRIPTION
>  "Each 

Problem in net SNMP agent( complied with MY own MIB)..please help me

2005-03-21 Thread Kumara-Swamy.Dontamsetti
Hi,

I am struggling from past three days on same problem...

1. I have complied my MIB ( ADSL-LINE-MIB) with net-SNMP agent   -- 
success. 
( Note: code is generated with mib2c.iterate.conf )

2. I have created snmpd.conf (with rocommunity is public and  rwcommunity 
is private ).
3. I have started snmp demon in following way with root access.

agent/snmpd -r -f  -Lo -m ALL -M 
/home/kumar/projects_cc/common/mib_tools/mibs/ietf -c 
/home/kumar/.snmp/snmpd.conf -   C -d -a  

Output of the demon...

init_adslMIB: Entered  
initialize_table_adslLineConfProfileTable: Entered  
netsnmp_create_handler_registration  
netsnmp_create_handler_registration success  
netsnmp_table_helper_add_indexes  
netsnmp_register_table_iterator  
adslLineConfProfileTable_createEntry: Entered  SNMP_TYPEDEF_MALLOC  
adslLineConfProfileTable Entry: created with profile name: 01 
adslLineConfProfileTable_createEntry: Entered  SNMP_TYPEDEF_MALLOC 
adslLineConfProfileTable Entry: created with profile name: 02
( Note: All the above logs are added by for debugging... )

( some more errors from other MIBS.. Because I am loading all MIBs from 
specified directory.. Those I have ignored..
For reference I have including all those errors at the end of the mail)

NET-SNMP version 5.2.1

4. I have requested one object in following way with root access.

( some more errors from other MIBS.. Because I am loading all MIBs from 
specified directory.. Those I have ignored..
For reference I have included all those errors at the end of the mail)

snmpget -v 2c -m ALL -M 
/home/kumar/projects_cc/common/mib_tools/mibs/ietf localhost -c private 
10.94.1.1.14.1.2."01"

Output of the command:


transmission.adslMIB.adslLineMib.adslMibObjects.adslLineConfProfileTable.adslLineConfProfileEntry.adslAtucConfRateMod
   e.'.' = No Such Object available on this agent

So, It has recognised the path properly... I feel that problem is in 
instance of the object.. I have given MIB  definitions at end of the question.


Output of the demon when requested the OID..


Received 49 bytes from UDP: [127.0.0.1]:33965
: 30 2F 02 01  01 04 07 70  72 69 76 61  74 65 A0 21
0/.private !
0016: 02 04 79 CB  3C 92 02 01  00 02 01 00  30 13 30 11
..yË<...0.0.
0032: 06 0D 2B 06  01 02 01 0A  5E 01 01 0E  01 02 01 05
..+.^...
0048: 00.

Received SNMP packet(s) from UDP: [127.0.0.1]:33965
  GET message
-- ADSL-LINE-MIB::adslAtucConfRateMode.'.'

Sending 49 bytes to UDP: [127.0.0.1]:33965
: 30 2F 02 01  01 04 07 70  72 69 76 61  74 65 A2 21
0/.private¢!
0016: 02 04 79 CB  3C 92 02 01  00 02 01 00  30 13 30 11
..yË<...0.0.
0032: 06 0D 2B 06  01 02 01 0A  5E 01 01 0E  01 02 01 80
..+.^...
0048: 00.


But When I tried in the following way , it is giving some parser error..

snmpget -v 2c -m ALL -M 
/home/kumar/projects_cc/common/mib_tools/mibs/ietf localhost -c private 
10.94.1.1.14.1.2.\"01\"

snmpget -v 2c -m ALL -M 
/home/kumar/projects_cc/common/mib_tools/mibs/ietf localhost -c private 
'10.94.1.1.14.1.2."01"'

Error message:
10.94.1.1.14.1.2."01":Unknown Object Identifier ( 
-quote is for variable length strings)

Please help me to come out of this problem.

Advance thanks for ur help..

Regards
Kumar


MIB definitions...


 adslLineConfProfileTableOBJECT-TYPE
 SYNTAX  SEQUENCE OF AdslLineConfProfileEntry
 MAX-ACCESS  not-accessible
 STATUS  current
 DESCRIPTION
 "This table contains information on the ADSL line
 configuration.  One entry in this table reflects a
 profile defined by a manager which can be used to
 configure the ADSL line."
 ::= { adslMibObjects 14}

 adslLineConfProfileEntryOBJECT-TYPE
 SYNTAX  AdslLineConfProfileEntry
 MAX-ACCESS  not-accessible
 STATUS  current
 DESCRIPTION
 "Each entry consists of a list of parameters that
 represents the configuration of an ADSL modem.

 When `dynamic' profiles are implemented, a default
 profile will always exist.  This profile's name will
 be set to `DEFVAL' and its parameters will be set
 to vendor specific values, unless otherwise specified
 in this docume

mib2c problem

2005-03-21 Thread 최성록



 

Hi.
I installed net-snmp-5.1.2 and now implementing agent 
module.
I got a problem concerned 'mib2c'.
When I run mib2c in command line, I got messages as 
belos
 
"ERROR: You don't have the SNMP perl module installed.  
Please obtainthis by getting the latest source release of the net-snmp 
toolkit fromhttp://www.net-snmp.org/download/ 
.  Once you download the source andunpack it, the perl module is 
contained in the perl/SNMP directory.See the README file there for 
instructions."
I already installed "perl" modules. 
(perl_s-5[1].8.5-sol8-sparc-local.gz)
 
what's  the  problem with me?
 
 
I got another question.
I ran example-demon(with snmpd) and it said 
"running"(I can't remember the exact log..).
When I only ran example-demon in one system, it left logs as 
below.
 
"""Error: Failed to connect to the agentx master agent: 
Unknown host (No such file or directory)"""
 
then, I request to this example-demon from another system( 
this is snmp-manager).
but example-demon did not response. I think it only responses 
to snmpd.
How can I make this example-demon respond to snmp-manager 
existing another system?
 
 
ps. I'm already registered sourceforge.net. should I email at 
the sourceforge site in login status?
 I got email response a few days ago. 

 " Your message to Net-snmp-coders 
awaits moderator approval "
 
    If this email address is wrong, plz tell me 
the email address I can send...
 

Thank 
you.


example-demon problem

2005-03-21 Thread 최성록



Hi
I compiled example-demon and run it.
I arleady ran snmpd in the same system(Solaris 
5.8).
I think example-demon communicate with snmpd 
well.
Now, I'd like to have example-demon communicate with the 
nms in another system.
what Should I do to do this? (need a .conf file?)
If so, how can I get/make conf file?
 
Thank you in advance.


How to develop embeded snmp-agent in my program

2005-03-21 Thread 최성록



 
 
 


HI,I'm Rok. I'm a beginner to snmp. I have some 
problems to develop snmp agent.
 
What I to do is to modify receive() function in snmpd.c for my 
own operation.I should get all the get/set messages from nms, and parse 
those, and response.I had read some mails referring to this subject.. but I 
can't still solve the problem.
 
-- OS : Sun Solaris 5.8
 
1. Can I use snmp agent in my own program?   if so, could 
you tell me the all the included files list ?(eg. header files, libararies, 
functions)
 
I can see below codes in receive() function (in snmpd.c)
 
  
--   for (i = 
0; i < external_readfdlen; i++)  
{    
FD_SET(external_readfd[i], 
&readfds);    
if (external_readfd[i] >= 
numfds)    
numfds = external_readfd[i] + 1;  }  
--
 
what can I use the first argument of 
FD_SET(external_readfd)?external_readfd are defined in agent_registry.h as 
below line
 
 extern int  
external_readfd[NUM_EXTERNAL_FDS],   
external_readfdlen; extern void 
(*external_readfdfunc[NUM_EXTERNAL_FDS])   (int, void *);
 
2. should I define the value of "external_readfdlen" ?3. 
"external_readfdfunc" is the callback function that receive the Get/Set 
message?4. if so, How can I defint "external_readfdfunc"( what is the 
first/second arguments?)
 
If snmpd receives Get/Set message from nms, it responses the message 
automatically.I think snmpd parse the asn.1 packet and make response PDU, 
and send it to nms. Is it right?If nms send some request PDUs which could be 
parsed automatically, shoud I parse and encode it?(eg. if the message should 
be parsed only between nms and snmp agent)
 
Somebody advised me that I should use ASN.1 parser/encoder such as "snacc" 
to solve this problem.Should I install "snacc"?
 
5. If I make snmp-agent embeded in my program, should I make a ~.conf 
file(like snmpd.conf)?
 
I have to make snmp-agent as fast as I can.If you answer the questions, 
that will great helpful for me.
 
And I'm sorry I wrote too many questions.Thank 
you.


Using SNMP for "Real-time" monitoring

2005-03-21 Thread Joe Clark
I have a fairly generic question but have never found a great answer for 
it:  Is there a way to use SNMP such that it is a suitable tool for 
"realtime" monitoring of a system?  By realtime, I mean that I'd like to be 
able to choose any normal MIB item (not just items defined as traps), and 
have it sent on a periodic basis (not just when an expression evaluates to 
true) to a manager node.  I would assume such functionality would be 
available from the snmpd.conf file.  I am aware of the "monitor" config 
item, but I'm not sure it's exactly what I'm looking for.

I don't particularly want to request the data item each time, because that 
adds a fair amount of bandwidth to the equation.  This whole line of 
questioning is a plot to reduce the bandwidth requirements of SNMP-based 
management.  Any other tips that can work to reduce the bandwidth?

Thanks for your thoughts.
- Joe
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005

---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


accessing other mib variables inside the handler of annother mib variable?????

2005-03-21 Thread chinmay bhat
I have a problem.
I have 2 mib variables say A and B.
If a set comes on A and the A's handler is called by snmpd...Can i set the 
value of B from that A's handler?
Is there any API's present for that?

Or do i have to call systam("snmpset on B") from the handler.(Its a very bad 
way).

Thanx in advance.
_
News, views and gossip. http://www.msn.co.in/Cinema/ Get it all at MSN 
Cinema!


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


why header_generic declares request as invalid ?

2005-03-21 Thread Kelvin Moss
Hi group,
 
I register a MIB and my callback function looks like this --
 
u_char*snmp_callback_func(struct variable *vp,    oid *name,    size_t *length,    int exact,    size_t *var_len,    WriteMethod **write_method){    static long long_ret = 0;    
  /* Validate the received request */    if (header_generic(vp, name, length, exact, var_len, write_method) ==    MATCH_FAILED) {    syslog(LOG_LOCAL0 | LOG_ERR,   "Received an invalid SNMP request");    return NULL;    }
 
Whenever I issue an snmpwalk request I get correct values, but I see several extra log messages in syslog stating "Received an invalid SNMP request". What is the reason for these extra log messages ? Can I safely ignore them ?
 
Thanks in advance. 
 
		Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!