": No such file or directory" error message from snmpd

"Perzon Berry" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello

I'm facing a problem with net-snmp V5.4.1, compiled from source. Same
compiled binaries is installed on 50 AIX 6.1 servers. All servers have
the same TL/SP level, and from my point of view, configured in the same
way. On six of the servers, I get a message saying ": No such file or
directory" from the snmpd daemon. The message repeats itself as fast as
it can. I will explain how I get the message.

I start snmpd without forking the proccess. 

>From my client, I run snmpwalk on "HOST-RESOURCES-MIB::hrStorage".
Snmpwalk returns all filesystems that I have on my server, but after the
last filesystem is returned, snmpwalk waits a moment and then returns
"Timeout: No Response from <my server>". I have verified on the server
that there is no "strange" filesystem after the last one that is
returned with snmpwalk. Everything looks fine. I use df, mount and lsfs
for this. All looks good.

To verify what the server is actually doing when I get the ": No such
file or directory" error, I started snmpd with truss. This is a part
what I get returned (last two working filesystems, and then when it
fails)

# asking for "/pub" filesystem, and it's returned successful

1126550: 1368247: statfs("/pub", 0x2FF1B498)            = 0
1126550: 1368247: times(0x2FF1B5C8)                     = 386544360
1126550: 1368247: _esendto(6, 0x201364C7, 129, 0, 0x20134608, 16,
0x00000000) = 129
1126550: 1368247: _select(8, 0x2FF1BD40, 0x2FF1DD40, 0x2FF1FD40,
0x2FF21D40) = 1
1126550: 1368247: _enrecvfrom(6, 0x20123ED8, 65536, 0, 0x20123228,
0x2FF1BBE8, 0x00000000) = 128
1126550: 1368247: times(0x2FF1ABB8)                     = 386544360
1126550: 1368247: times(0x2FF1A7A8)                     = 386544360
1126550: 1368247: mntctl(2, 4, "")                      = 0
1126550: 1368247: mntctl(2, 3648, "")                   = 22


# asking for "/usr/sap/bi_trans filesystem", and it's returned
successful

1126550: 1368247: statfs("/usr/sap/bi_trans", 0x2FF1B498) = 0
1126550: 1368247: times(0x2FF1B5C8)                     = 386544360
1126550: 1368247: _esendto(6, 0x201364C7, 129, 0, 0x20134608, 16,
0x00000000) = 129
1126550: 1368247: _select(8, 0x2FF1BD40, 0x2FF1DD40, 0x2FF1FD40,
0x2FF21D40) = 1
1126550: 1368247: _enrecvfrom(6, 0x20123ED8, 65536, 0, 0x20123228,
0x2FF1BBE8, 0x00000000) = 128
1126550: 1368247: times(0x2FF1ABB8)                     = 386544361
1126550: 1368247: times(0x2FF1A7A8)                     = 386544361
1126550: 1368247: mntctl(2, 4, "")                      = 0
1126550: 1368247: mntctl(2, 3648, "")                   = 22


# asking for "". This is where the problem starts. It asks for a
filesystem without any path. This will repeat itself until I hit Ctrl-C

1126550: 1368247: statfs("", 0x2FF1B498)                        Err#2
ENOENT
1126550: 1368247: kwrite(3, " :   N o   s u c h   f i".., 28) = 28
1126550: 1368247: kfcntl(3, F_GETFL, 0x00000008)                = 1
: No such file or directory
1126550: 1368247: kwrite(2, " :   N o   s u c h   f i".., 28) = 28
1126550: 1368247: mntctl(2, 4, "")                      = 0
1126550: 1368247: mntctl(2, 3648, "")                   = 22
1126550: 1368247: statfs("", 0x2FF1B498)                        Err#2
ENOENT
1126550: 1368247: kwrite(3, " :   N o   s u c h   f i".., 28) = 28
1126550: 1368247: kfcntl(3, F_GETFL, 0x00000008)                = 1
: No such file or directory
1126550: 1368247: kwrite(2, " :   N o   s u c h   f i".., 28) = 28
1126550: 1368247: mntctl(2, 4, "")                      = 0
1126550: 1368247: mntctl(2, 3648, "")                   = 22
1126550: 1368247: statfs("", 0x2FF1B498)                        Err#2
ENOENT
1126550: 1368247: kwrite(3, " :   N o   s u c h   f i".., 28) = 28
1126550: 1368247: kfcntl(3, F_GETFL, 0x00000008)                = 1
: No such file or directory
1126550: 1368247: kwrite(2, " :   N o   s u c h   f i".., 28) = 28
1126550: 1368247: mntctl(2, 4, "")                      = 0
1126550: 1368247: mntctl(2, 3648, "")                   = 22
1126550: 1368247: statfs("", 0x2FF1B498)                        Err#2
ENOENT
1126550: 1368247: kwrite(3, " :   N o   s u c h   f i".., 28) = 28
1126550: 1368247: kfcntl(3, F_GETFL, 0x00000008)                = 1
: No such file or directory


Have anybody else seen this problem before, and if so, is there a simple
way to fix it?


Best regards
Berry Perzon

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
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.