Running net-snmp as a subagent.

I am trying to setup net-snmp or ucd-snmp as a subagent through SunMC. I followed the instructions from the Sunmc 3.6.1 installation and configuration guide for modifying the subagent-registry-d.x file and put the following entry:
netsnmp = {
type = legacy
persist = false
snmpPort = "20161"
errorAction = restart
startCommand = "/export/home/xxx/crap.sh -p %port"
stopCommand = "kill -9 %pid"
pollInterval = 60
pollHoldoff = 60
managedTrees = "ucdavis"
oidTrees = 1.3.6.1.4.1.2021
snmpVersion = SNMPv1
securityLevel = auth
securityName = LALA
the startup script crap.sh contains the following line:
/export/home/xxx/snmpd -c /export/home/xxx/snmpd.conf -p 20161
When I run a ctail on /var/opt/SUNWsymon/log/agent.log I get the following (removing all lines not assocaited with subagent calls)
info Feb 06 11:17:39 agent subagent registry successfully loaded
info Feb 06 11:17:39 agent startLegacySubagents: <>
info Feb 06 11:17:39 agent startLegacySubagent: netsnmp
info Feb 06 11:17:39 agent sh: Executing /export/home/psopel/crap.sh -p 20161 process 11859
warning Feb 06 11:17:44 agent Failed to start legacy subagent netsnmp
I am able to snmpwalk from another server on port 20161 so I see the net-snmp agent is responding as per the following ouput:
snmpwalk srvname:20161 -c LALA -v 1 .1.3.6.1.4.1.2021.11
UCD-SNMP-MIB::ssIndex.0 = INTEGER: 1
UCD-SNMP-MIB::ssErrorName.0 = STRING: systemStats
UCD-SNMP-MIB::ssSwapIn.0 = INTEGER: 0
UCD-SNMP-MIB::ssSwapOut.0 = INTEGER: 0
UCD-SNMP-MIB::ssIOSent.0 = INTEGER: 0
UCD-SNMP-MIB::ssIOReceive.0 = INTEGER: 0
UCD-SNMP-MIB::ssSysInterrupts.0 = INTEGER: 67
UCD-SNMP-MIB::ssSysContext.0 = INTEGER: 48
UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 0
UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 1
UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 98
But when I try to launch the command through talking to sunmc on port 161 I get:
snmpwalk srvname -c LALA -v 1 .1.3.6.1.4.1.2021.11
End of MIB
A tail of the Agent.log file again shows this line appearing when I launch an snmpwalk:
info Feb 06 11:40:45 agent getValuePDU: .iso.org.dod.internet.private.enterprises
info Feb 06 11:40:45 agent getValuePDU: - nodeType is branch
My understanding is that sunmc should receive the request on port 161 and sending the request to the external net-snmp running on the server. I am expecting to get the same output.
Is this not how it should be working?
-Pierre

Hello Dave,
I know it is long ago for you, but at the moment I have the same problem that you had in Jan. 2002, and possibly you have solved it meanwhile, or anyone else:
I am looking for a servlet engine for Windows Mobile 2003.
We are having a Web application for sales people that sell insurances. The application consists of JSP's and servlets. It runs under RESIN as servlet engine on a regular server and the clients are desktop PC's. My task is to investigate whether the application can be run on an HP iPAQ or similar device, both, server and client, such that the sales person can use it on the go, if he is NOT CONNECTED. The idea is to use the application as is, without modifying the code. B.T.W. a database is not required since all data is held in XML files.
Any help is appreciated,
Thanks a lot,
Regards,
Klaus.

Similar Messages

  • Building Net-SNMP with gcc and Solaris 10's Forte-built Perl

    The 5.0.9 Net-SNMP that come with Solaris SPARC is too old for our users. Building the latest version appears to be basically impossible and I'm just about to bail and just build yet another version of Perl for Solaris 10 so it will work. But on the chance that someone has done this:
    I am trying to build Net-SNMP 5.4.1.2 with the Sunfreeware gcc. The configure script seems to ignore the --disable-perl-cc-checks flag:
    ./configure with-perl-modules disable-perl-cc-checks
    configure: error: This build is using a GNU C compiler (gcc) while Perl has been compiled with a non-GNU (or non-working) compiler (cc). This likely won't work for building with Perl support. Either specify a different compiler (--with-cc=PATH), disable this check (--disable-perl-cc-checks) or build without Perl (--without-perl-modules).
    Has anyone successfully done this? I was hoping to get a successful configure run, then build the binaries, and then further tweak the perl makefiles with "GCC=/usr/perl5/5.8.4/bin/perlgcc" or something.

    configure: error: This build is using a GNU C compiler (gcc) while Perl has been compiled with a non-GNU (or non-working) compiler (cc). This likely won't work for building with Perl support. Either specify a different compiler (--with-cc=PATH), disable this check (--disable-perl-cc-checks) or build without Perl (--without-perl-modules).The perl supplied by Sun should be compiled with Sun Studio and the error mentioned above seems to reflect this.
    So, either build perl first with sunfreeware's gcc and then move on to net-snmp or install and use Sun Studio instead of gcc so perl is happy.
    alan

  • Compile new version on net-snmp.

    Hello
    i would like to know if it possible to compile; install a new version to net-snmp in solaris 10. there is already one version running with svc:/application/management/sma:default
    how can i compile a new version and replace this one, (smf manifest, etc) do i just edit the sma.xml and point it to the new executable in <exec_method..?
    the compiled version would run in /usr/local.
    thank you very much for your input.
    Mario G.

    It's preferable to just install it to a new location and then create a new xml file for it.
    Then import the manifest file and disable the one that ships with Solaris.
    The rationale is that if anything happens to the system then Sun can't point a finger in your direction.
    alan

  • [SOLVED] HP jetdirect printer errors after updating net-snmp

    My office's HP printers weren't working anymore this morning, my cups log showed the following errors after a pacman -Syu.
    It looks that libnetsnmp.so.25 is required by hplip 3.11.10-1, but the latest net-snmp  5.7.1-1 provides libnetsnmp.so.30.
    168 D [31/Oct/2011:14:15:51 +0000] [Job 708] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs     -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="hp color LaserJet 3500" -dDuplex=    false -r600 -sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7 -dIjsUseOutputFD -s    OutputFile=- -
    169 D [31/Oct/2011:14:15:51 +0000] [Job 708] JCL: <job data>
    170 D [31/Oct/2011:14:15:51 +0000] [Job 708]
    171 D [31/Oct/2011:14:15:51 +0000] [Job 708] Starting process 3788: "gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer    =hpijs -dDEVICEWIDTHPOINTS=6..."                                                                                                         
    172 D [31/Oct/2011:14:15:51 +0000] [Job 708] hpijs: error while loading shared libraries: libnetsnmp.so.25: cannot open shared object file: N    o such file or directory
    [14:29]:sudo pacman -Q | grep net-snmp
    net-snmp 5.6.1-4
    [14:30]:sudo pacman -Qo /usr/lib/cups/backend/hp
    /usr/lib/cups/backend/hp is owned by hplip 3.11.5-1
    solution is to downgrade net-snmp:
    [2011-10-08 21:56] upgraded net-snmp (5.6.1-4 -> 5.7.1-1)
    [2011-10-31 14:24] Running 'pacman -U /var/cache/pacman/pkg/net-snmp-5.6.1-4-x86_64.pkg.tar.xz'
    [2011-10-31 14:24] upgraded net-snmp (5.7.1-1 -> 5.6.1-4)
    this might help someone else,

    Hi groberts619,
    Unfortunately the software you obtain from the Printer Software Update doesn't include the HP Scan application - only the print and scan drivers.  I just checked on your product and it doesn't appear that there are plans to release an updated HP Scan installer for this model.
    On Mavericks it seems your best option will be to use Apple's Image Capture scan application.  You can find this application in the /Applications folder.  You also have the option to scan using Preview.  Look in the File menu for the command to import from a scanner.
    FretnBoutNutn
    I work for HP.
    - Say "Thanks" by clicking the Kudos Star in the post that helped you.
    - Please mark the post that solves your problem as "Accepted Solution"

  • Where do I find net-snmp Download for VM Server - 3.0.2

    Hi guys,
    I would like to install net-snmp on my oracle vm server 3.0.2. It is running on a Dell R710 Server. For the beginnig I want to monitor disk spack, cpu and ram usage. Later it would be nice to also monitor the system over al status of the hardware. I read in this form that it is possible to download net-snmp through the oracle network. But I can't find it somewhere dose anybody know to link where I can get it?
    Thanks,
    Ben

    You're noticing the lack of traffic and help in this forum. You're right about that. The traffic seems to have died down a lot over the last few months. I don't know why.
    If you're looking for an RPM to install, I suggest you google for the Oracle public yum server, and go there, and try to find a package that suits you and will install.
    Purists will say Oracle won't support a VM Server that has been "diddled with", but support is so crappy, that that's no real penalty.

  • Cannot get net-snmp to start!!!

    Newbie question...
    I have installed net-snmp on a V880 running Solaris 9. The install appeared to complete without issue. However, when I attempt to start snmp, I get the following...
    bash-2.05# /etc/init.d/init.snmpdx start
    bash-2.05# ./snmpd -f -L
    [init_smux] bind failed: Address already in use
    Error opening specified endpoint "udp:161"
    Server Exiting with code 1
    ps -ef confirmes that net-snmp is the only version of snmp running on this machine...
    bash-2.05# ps -ef | grep snmp
    root 27603 1 0 10:57:29 ? 0:00 /usr/local/sbin/snmpd
    root 3953 27727 0 11:01:41 pts/3 0:00 grep snmp
    I don't think that there is anything else occupying this port...
    bash-2.05# lsof -i udp:161
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    snmpd 27603 root 18u IPv4 0x30a267379c0 0t0 UDP *:161 (Idle)
    and snmp seems to be reading in the correct config files...
    bash-2.05# /usr/local/sbin/snmpd -Dread_config -H 2>&1 | grep "Reading" | sort -u
    read_config: Reading configuration /usr/local/share/snmp/snmpd.conf
    read_config: Reading configuration /var/net-snmp/snmpd.conf
    I am a beginner, so please be merciful...but I would appreciate any advice as to what I'm doing wrong.
    Thanks in advance...
    Stephen

    Can you tell me , how to do fix this problem
    [myserver01:]# /usr/local/sbin/snmpd -f -L
    [init_smux] bind failed: Address already in use
    Error opening specified endpoint "udp:161"
    Server Exiting with code 1
    [email protected]

  • Net-SNMP 5.0.9 used in Solaris 10 sma

    We are using AgentX protocol in an application sub-agent
    According to Net-SNMP change log, AgentX protocol support was experimental up to release 5.0.7 but going to the following link:
    http://net-snmp.sourceforge.net/tutorial/tutorial-5/toolkit/demon/index.html
    "The AgentX support in net-snmp versions prior to 5.1 is beta level quality. Although many people have used it successfully, we strongly recommend AgentX sub-agent developers use 5.1.2 or higher."
    Why is the Net-SNMP version so low in the Solaris 10 sma build? Cureent version is 5.3.0.1

    Hello.
    I would also like to know how to upgrade the version of net-snmp that the System Management Agent uses so that I can monitor servers with more than one CPU.
    Any guidance much appreciated.
    Thanks

  • Solaris 10 SMA is dumping core. Have you installed net-snmp?

    It's only happening on afew of the many sparc Solaris 10 servers I support. Oracle no longer supports SMA and has suggested downloading and installing "publicly available 'net-snmp' software". I'm reluctant to download and install open source; the review and approval process in my environment is onerous.
    Since net-snmp is bundled with Solaris 11, I'm wondering if it is possible to install Solaris 11 packages on a Solaris 10 server (and net-snmp in particular). If so, perhaps someone can provide tips?

    The package formats are not the same between these both release of Solaris. You can still trying to extract the files and then install it in your Solaris 10 machine but this is highly unrecommended and of course unsupported. And I'm not sure that it will work.

  • SYSTEM ERROR 1312 OCCURING WHEN RUNNING NET LOCALGROUP FROM REMOTE MACHINE

    while running workflow through AO am connecting to server 2008 r2 and running net localgroup command.the output is :
    <line index="1">Copyright 2010 BMC Software Ltd, Version: 1.5 </line>
    <line index="2">Connecting to remote service...</line>
    <line index="3">Connected to remote host.</line>
    <line index="4">System error 1312 has occurred.</line>
    <line index="5">A specified logon session does not exist. It may already have been terminated.</line>
    <line index="6">Remote application exited with code: 2 </line>

    Hi,
    Have a look:
    http://blogs.technet.com/b/askperf/archive/2012/04/18/task-scheduler-error-a-specified-logon-session-does-not-exist.aspx
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/a7853ac3-6c48-4615-896a-e306067ab804/net-use-via-powershell-returning-a-specified-logon-session-does-not-exist-it-may-already-have-been?forum=winserversecurity
    Regards,
    Rafic
    If you found this post helpful, please give it a "Helpful" vote.
    If it answered your question, remember to mark it as an "Answer".
    This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before implementing!

  • Net snmp problem

    Dear Members!
    I have installed netsnmp-5.41 from sunfreeware.com. But i got problem on snmpwalk.
    Here is the error message from /var/log/snmpd.log
    netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
    netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
    netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
    NET-SNMP version 5.4.1
    /dev/openprom: Invalid argument
    unable to lookup boot-command from eeprom
    Please advise me what should i do?
    Regards,
    Umar Draz

    I have the same problem...
    snmpwalk gives me:
    Error in packet.
    Reason: (genError) A general failure occured
    Failed object: .iso.org.dod.internet.private.enterprises.sun.products.sunSeaProxyMIB.sunSubTreeDispatchTable.sunSubTreeDispatchEntry.sunSubTreeDispatchIndex.1.1
    And snmpd.log:
    cannot read from /dev/openprom
    unable to lookup boot-command from eeprom
    js.

  • Net snmp&&labwindows

     i need make a snmp tool with labwindows,but i use net-snmp api ,and complie it,but there are many fails,
    i have no idea to deal with them.
    include two h file----
           #include <net-snmp/net-snmp-config.h>
           #include <net-snmp/net-snmp-includes.h>
    1.typedef unsigned __int32 uint32_t; fail
    2.winnt.h                                        fail
     somebody can help me ??
    Attachments:
    1.JPG ‏85 KB

    I'm sorry, maybe the SNMP is not supported in NI production now.

  • Net-snmp

    I have solaris 9 x86 and I downloaded net-snmp from sunfreeware and i install it in /usr/local.
    I configured /etc/snmp/conf/snmpd.conf :
    sysdescr Sun SNMP Agent :
    syscontact xxxxxx
    syslocation xxxxxx
    system read-comunity public
    read-comunity public
    manager localhost
    I did :
    /etc/init.d/init.dmi stop
    /etc/init.d/snmpdx stop
    /usr/lib/snmp/mibiisa stop
    etc/init.d/init.dmi start
    /etc/init.d/snmpdx start
    /usr/lib/snmp/mibiisa start
    I have /usr/local/bin in my path and when i do snmpwalk localhost or snmpwalk 192.x.x.x in my local network i always get snmpwalk:Timeout
    Can someone help me to explain me how to setup net-snmp on solaris x86 step by step
    Thanks

    I don't have access to a solaris 9 x86 system but perhaps the problem is your misspelling of community in the system read-comunity<sic> and read-comunity<sic> fields in the snmpd.conf file?

  • Net-snmp problem UNKNOWN host

    There is a bug in the net-snmp 5.4 package, the host variable used by snmptrapd to resolve IPs return a UNKNOWN name when can't resolve.
    See the following (closed) bug report for details:
      [ 1638225 ] 5.4 traphandle: unresolved IP translated to <UNKNOWN>
      http://sf.net/support/tracker.php?aid=1638225
    I don't known if you people can fix this in the next build!!!!!
    thanks
    Carlos
    Last edited by CarLost (2007-06-20 02:28:47)

    I have the same problem...
    snmpwalk gives me:
    Error in packet.
    Reason: (genError) A general failure occured
    Failed object: .iso.org.dod.internet.private.enterprises.sun.products.sunSeaProxyMIB.sunSubTreeDispatchTable.sunSubTreeDispatchEntry.sunSubTreeDispatchIndex.1.1
    And snmpd.log:
    cannot read from /dev/openprom
    unable to lookup boot-command from eeprom
    js.

  • Net-SNMP scripting (Perl)

    If there are any network managers who write Net-SNMP scripts, do you
    install extra Perl modules? I'm not sure if I'm using the correct module
    (simply SNMP), but I can't figure out the SNMP commands: "Undefined
    subroutine &main:: ...." I've tried
    &snmp::
    I am trying to getnext in a table: e.g., ifSpeed. I have a schoolbook
    that says use the SNMP_util module, but the book is old. I installed
    perl-net-snmp, but I haven't restarted anything.
    Last edited by kete (2015-03-08 22:29:34)

    no one could help me?
    Any advice will be appreciated
    Regards
    Andrea

  • OEL 5.9: Effect of removing net-snmp to kernal

    Hi,
    I have situation where i have to install custom rpms for net-snmp.
    What will happen or what ll be the effect of removing the net-snmp,net-snmp-utils and net-snmp-perl rpms from the system forcefully?
    I see a dependency to oracle-linux kernal rpms.
    Please help me in this regards
    Thanks in advance
    Kushal

    I have situation where i have to install custom rpms for net-snmp.Why? How are the distribution RPM packages deficient?
    What will happen or what ll be the effect of removing the net-snmp,net-snmp-utils and net-snmp-perl rpms from the system forcefully?
    I see a dependency to oracle-linux kernal rpms.The oracle-linux RPM lists these as requirements; that is not the kernel. So, whatever you do with the net utils, you won't hurt the kernel; you may just disable your SNMP support.
    Any approach that mentions "--force" is automatically suspect. You can only use the "--force" switch once in your career; are you sure this is the time? :)
    So if you want to use your own RPM packages they should have higher revision number than your currently-installed packages, so they should just update normally.
    What am I missing?

Maybe you are looking for

  • Dreamweaver cs5.5 - div tags won't float next to eachother

    I have being trying to get 2 div tags to float next to eachother for hours! I've been messing with the float and messing with margins, but what ever i do the div is always somewhat under my other div tag. I want them completely side by side. I have t

  • Oracle9i HTTP server no longer works now AS 9i v1.0.2.2.2a is installed

    Hi there, I am trying to set up an Oracle system without much success. I managed to install the Enterprise Oracle9i database no problems and the HTTP apache server was working fine using ports 8080 and 4444. I then tried to install the Oracle9i Appli

  • Gaps in DW not showing in IE7

    Hi all, I'm building a website using DWCS3's 'fixed layout with header and footer' The page looks great in DW but when I preview in the IE7 browser, it looks different. In DW, there is a small gap (around 20px) at the top of the sidebar and the main

  • Using B2B as file / ftp gateway

    We have a need to reach out various ftp servers and retrieve files. We can do it in BPEL directly, but i was wondering if it is possible for b2b server to go out to these ftp servers and retrieve the files on a scheduled basis ?

  • Need new serial number for Photoshop Elements 6 - how to get?

    I purchased Photoshop Elements 6 for my mom back in 2007. She's FINALLY getting around to installing it today and it keeps giving her an invalid serial number error. So I loaded her up on Team Viewer to make sure she's doing everything correctly (she