Re: ioctl returned -1 ??

Paul Reilly <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thanks Thomas for the good advice!
This box has 27 interfaces, of which 17 are up.

> Please "snmpwalk -v2c -c <community> localhost ifTable".
> Does it trigger the error in the log? How often?

That is difficult to tell.
Note, that even if I do not do any snmp queries, and just leave the box
alone, the error is generated twice per minute. Syslog seems to flush
the log once per minute, and there are always 2 errors.

Nov 19 23:29:30 box8 snmpd[9264]: ioctl 35123 returned -1
Nov 18 23:30:26 box8 last message repeated 2 times
Nov 18 23:31:26 box8 last message repeated 2 times
Nov 18 23:32:26 box8 last message repeated 2 times
Nov 18 23:33:26 box8 last message repeated 2 times
Nov 18 23:34:26 box8 last message repeated 2 times

If I do:

snmpwalk -v1 -c <community> localhost ifTable

it logs 593 UDP connects to snmpd in syslog, but also only two
ioctl 35123 errors (I think - it sometimes difficult to see what
the "repeated" lines refer to)

Nov 19 00:27:32 box8 snmpd[9264]: Connection from UDP: [127.0.0.1]:32772
Nov 19 00:27:45 box8 last message repeated 2 times
Nov 19 00:28:14 box8 last message repeated 595 times
Nov 19 00:28:30 box8 snmpd[9264]: ioctl 35123 returned -1
Nov 19 00:28:30 box8 snmpd[9264]: ioctl 35123 returned -1

> If there's at least one, do a manual snmpget on each of the MIB objects you
> got from the walk, watch the log and tell the list which snmpget triggers the
> error.

The snmpwalk lists the following attributes for each interface.

ifIndex
ifDescr
ifType
ifMtu
ifSpeed
ifPhysAddress
ifAdminStatus
ifOperStatus
ifLastChange
ifInOctets
ifInUcastPkts
ifInNUcastPkts
ifInDiscards
ifInErrors
ifInUnknownProtos
ifOutOctets
ifOutUcastPkts
ifOutNUcastPkts
ifOutDiscards
ifOutErrors
ifOutQLen
ifSpecific

I have done a:

snmpget -v 1 -c public localhost <attribute>.<n>

over all attributes, and a small range of my interface numbers (n).
None of the attributes seems to deterministically cause the error to
happen. It always happens twice per minute, irrespective of what snmpgets
I run.

I have also run the above snmpget on attribute ifIndex, and IfDescr for
all <n>. Similarly it is not possible to generate more than the regular
two ioctl errors per minute.

I hope that feedback helps. I would like to know what is generating the
two errors even when the box is not receiving snmp queries.

Paul

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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.