Sponsored Content
Full Discussion: Net-snmp issue in Solaris 8
Operating Systems Solaris Net-snmp issue in Solaris 8 Post 302243239 by sundar63 on Saturday 4th of October 2008 10:12:39 AM
Old 10-04-2008
Data Net-snmp issue in Solaris 8

Hi there,

I know this is a common question, but I have not found a satsifactory solution yet, so pardon me for posting similar questions.

My problem is the log /var/adm/messages is filling up with this entry every few minutes Please refer below.
Oct 4 21:39:46 host last message repeated 3 times
Oct 4 21:41:47 host /usr/lib/snmp/snmpdx: [ID 702911 daemon.error] bind() failed on UDP port 161 [errno: Address already in use(125)]


System info :SunOS xxxxxx 5.8 Generic_117350-44 sun4u sparc SUNW,Sun-Fire-V240

Now I have already disabled the native Sun's snmp daemons, and using Net-snmp

edited list

/etc/rc0.d: moved_K07dmi moved_K07snmpdx
/etc/rc1.d: moved_K07dmi moved_K07snmpdx
/etc/rc2.d: moved_K07dmi moved_K07snmpdx
/etc/rc3.d: moved_K07dmi moved_K07snmpdx
/etc/rcS.d: moved_K07dmi moved_K07snmpdx

Net-snmp starts using /etc/init.d/netsnmp script which is as follows

case "$1" in
'start')
/usr/local/sbin/snmpd
echo "Daemon snmpd started"
;;

'stop')
/usr/bin/pkill -9 -x -u 0 '(snmpd|snmpv2d|mibiisa)'
echo "Daemon snmpd stopped"
;;

When I do lsof I get the following result
snmpd 2264 root 8u IPv4 0x3000dbe1e70 0t0 TCP *:199 (LISTEN)
snmpd 2264 root 9u IPv4 0x3000573edb0 0t0 UDP *:62775 (Idle)
snmpd 2264 root 11u IPv4 0x3000dbe0c70 0t0 UDP *:161 (Idle)


ps return

ps -ef| grep snm
root 2264 1 0 21:00:01 ? 0:03 /usr/local/sbin/snmpd


When I do snmpget I receive this

[host] $ snmpget -v 1 -c xxxxxxx localhost sysUpTime.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (344667) 0:57:26.67


snmpwalk returns
snmpwalk -v 2c -c xxxxxxx -m ALL localhost .1.3 | more
SNMPv2-MIB::sysDescr.0 = STRING: Sun SNMP Agent, Sun-Fire-V240
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-TC::solaris
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (352998) 0:58:49.98
SNMPv2-MIB::sysContact.0 = STRING: "System Admin"
SNMPv2-MIB::sysName.0 = STRING: xxxxxx
SNMPv2-MIB::sysLocation.0 = STRING: LOT28
SNMPv2-MIB::sysServices.0 = INTEGER: 0
....


snmpd -f -Le returns

[host] $ snmpd -f -Le
[init_smux] bind failed: Address already in use
Error opening specified endpoint ""
Server Exiting with code 1


Why does the log still records the same errors.
And why does net-snmp's snmpd -f -Le says bind failed?

Please assist. I do not know much about Net-snmp or snmp for the matter.
 

7 More Discussions You Might Find Interesting

1. Solaris

net-snmp-5.1.2 Solaris 9

All, I downloaded and installed the following net-snmp from the sourceforge.net website on a Solaris 9 server with the entire collection installed: net-snmp-5.1.2-SunOS_5.9_sun4u.tar.gz with no errors. I attempt to run snmpget and I get the following error: ld.so.1: snmpget: fatal:... (1 Reply)
Discussion started by: bubba112557
1 Replies

2. Solaris

net-snmp on solaris 8

hello I am running solaris 8 sparc. I installed net-snmp 5.4.1 (compiled it from tar file). When I do snmpwalk from another server, I receive a partial list of OIDs then it stops and gives 'timeout. No response...' another snmpwalk will directly timeouts. I compiled again the binaries... (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

3. Solaris

Net-SNMP issues Solaris 10

I'm unable to see any traps being sent from my Solaris 10 server using Net-snmp 5.4.2 Here is my snmp conf file. Please let me know if there are any syntax issues you might notice. cat /etc/sma/snmp/snmpd.conf ########################################################################### # #... (1 Reply)
Discussion started by: soupbone38
1 Replies

4. Solaris

Net-SNMP-5.4.2.1 issue on Sun Solaris

Hi, I am trying to compile the source code for Net-SNMP-5.4.2.1 using the gcc compiler-3.4.6 and 3.4.3 but I am getting the follwoing error with perl enabled: /bin/sh ../libtool --mode=link gcc -g -O2 -Usolaris2 -Dsolaris2=solaris2 -fno-strict-aliasing -pipe -Wdeclaration-after-statement... (2 Replies)
Discussion started by: tisha
2 Replies

5. Infrastructure Monitoring

net-snmp - restarting too quickly issue

on my sol10x86 10/08 box, i needed to remove the native snmp agent (sma) for net-snmp-5.4.2.1. once net-snmp was configured and installed, i reconfigured the appropriate files of smf and attempted to restart. service was put into maintenance mode: ... (1 Reply)
Discussion started by: pupp
1 Replies

6. Infrastructure Monitoring

net-snmp issue

When I run a script that polls a router I get the following error from net-snmp. I can not seem to find a straight answer. Could my mib files be corrupt? xxx-xxx:/etc/sma/snmp/mibs# perl /export/home/user/perl/test.pl Unlinked OID in SNMPv2-MIB: snmp ::= { mib-2 11 } Undefined identifier:... (2 Replies)
Discussion started by: mrlayance
2 Replies

7. Solaris

Error occurred while making the net-snmp 5.4.4 on Solaris 5.10 version.

Hi all, Error occurred while making the net-snmp-5.4.4 on Solaris 5.10 version. Environment - Solaris 5.10-x86 - Net-SNMP-5.4.4.tar.gz - Path (/etc/profile) PATH=/usr/local/bin:$PATH export PATH LD_LIBRARY_PATHUSR=/usr/ccs/bin: export LD_LIBRARY_PATH Error01 - summary ***... (3 Replies)
Discussion started by: ziosnim
3 Replies
cups-snmp(8)							    Apple Inc.							      cups-snmp(8)

NAME
snmp - cups snmp backend SYNOPSIS
/usr/lib/cups/backend/snmp ip-address-or-hostname /usr/libexec/cups/backend/snmp ip-address-or-hostname lpinfo -v --include-schemes snmp DESCRIPTION
The CUPS SNMP backend provides legacy discovery and identification of network printers using SNMPv1. When used for discovery through the scheduler, the backend will list all printers that respond to a broadcast SNMPv1 query with the "public" community name. Additional queries are then sent to printers that respond in order to determine the correct device URI, make and model, and other information needed for printing. In the first form, the SNMP backend is run directly by the user to look up the device URI and other information when you have an IP address or hostname. This can be used for programs that need to configure print queues where the user has supplied an address but nothing else. In the second form, the SNMP backend is run indirectly using the lpinfo(8) command. The output provides all printers detected via SNMP on the configured broadcast addresses. Note: no broadcast addresses are configured by default. ENVIRONMENT
The DebugLevel value can be overridden using the CUPS_DEBUG_LEVEL environment variable. The MaxRunTime value can be overridden using the CUPS_MAX_RUN_TIME environment variable. FILES
The SNMP backend reads the /etc/cups/snmp.conf configuration file, if present, to set the default broadcast address, community name, and logging level. CONFORMING TO
The CUPS SNMP backend uses the information from the Host, Printer, and Port Monitor MIBs along with some vendor private MIBs and intelli- gent port probes to determine the correct device URI and make and model for each printer. SEE ALSO
backend(7), cups-snmp.conf(5), cupsd(8), lpinfo(8), CUPS Online Help (http://localhost:631/help) COPYRIGHT
Copyright (C) 2007-2017 by Apple Inc. 10 June 2014 CUPS cups-snmp(8)
All times are GMT -4. The time now is 09:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy