Sponsored Content
Full Discussion: snmpd modification problem
Operating Systems AIX snmpd modification problem Post 302087837 by helloajith on Wednesday 6th of September 2006 06:33:25 AM
Old 09-06-2006
snmpd modification problem

Hi Gurus,

I am relatively new in AIX.
I have a problem in modifying the community string in snmpd.
I have edited the /etc/snmpd.conf file and changed the default community name 'public' to new one (P@@$w0rd).
When I tried to query my aix server with the new string , it is not giving any response. But when tried with the community string public, it responds.
I killed the snmpd and snmpmibd daemons , and restarted both.
Still it is not responding with new string.

Can anybody help to resolve this..... the OS version 5.2

With thanks in advance

Ajith.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

snmpd daemon error

Good day I always find these error messages on /var/adm/messages it appear every 15 mn , does any body know how to stop these messages without stopping the daemon , i tried to restart the daemon by uising Kill -HUP 332 please find below the error messages that appear always in... (1 Reply)
Discussion started by: itsgeorge
1 Replies

2. UNIX for Dummies Questions & Answers

mrtg+snmpd count traffic

i just wonder how to count total traffic and traffic on specified ports (e.g. 192.168.0.1:139 and etc.. ). How can it be done? (FreeBSD 6.2 i386) Thx. (5 Replies)
Discussion started by: hachik
5 Replies

3. Linux

Snmpd

Hello to all. For setting my MRTG i want get snmp-info with LAN interface eth0 but information about snmpd daemon very small :( (0 Replies)
Discussion started by: jess_t03
0 Replies

4. Solaris

snmpd manager question

Solaris 8 I have a question about snmpd. My software is running on one box. This box has 2 snmp managers. Is it possible to configure snmpd on my software box such that only one of the managers can perform snmpsets? I want my *redundant* snmp manager only to be able receive traps and do... (1 Reply)
Discussion started by: jalburger
1 Replies

5. HP-UX

SNMPD: need a little help.

Hi there all, I am running here an HP UX 11i v1. I got snmpd running here now. But how do I configure it so it also shows the HD's and swap and RAM's? So I can get the info back to Solarwinds Orion? All I get now is network card status. I want as many info as posible.. Thanx and... (0 Replies)
Discussion started by: draco
0 Replies

6. Infrastructure Monitoring

AIX - snmpd version

Hi, I have a P595 server with AIX 5.3 and i need to know what version of snmpd i use on this: Example: On solaris i use Net-snmpd 5.4.2.1 (netsnmp-5.4.2.1-sol9-sparc-local) because i can see the package. How can i see what snmpd package is installed on the AIX? Thanks... (3 Replies)
Discussion started by: anonymouzz
3 Replies

7. Shell Programming and Scripting

File modification problem

Hi, I have a file input.txt. cat input.txt output is as follows : I want the output looking like: cat output.txt I have a script. cat input.txt | tr -d '\n' | sed 's/\("name"\)/\1\n/g' > output.txt here I have to check "name" string and then enter newline. But I want the... (10 Replies)
Discussion started by: mnmonu
10 Replies

8. AIX

Disable snmpd for good

Hi everyone, I am struggling with something that I thought it would be really easy. I want to disable snmpd, but every time y reboot my server, it starts again. I've commented it out on the rc.tcpip file, but still it starts automatically. # Start up the Simple Network Management Protocol (SNMP)... (4 Replies)
Discussion started by: Janpol
4 Replies

9. AIX

ASK SNMPD configuration software monitoring

Hi, How to create new SNMP at aix configuration? Can your share in this the step by step.. regards, (1 Reply)
Discussion started by: williamen
1 Replies

10. Red Hat

Snmpd dying on centos7.1

Hello All, SNMPD dying after 2 mins once it started. Here is the configuration Oct 12 04:43:00 localhost systemd: Starting Simple Network Management Protocol (SNMP) Daemon.... Oct 12 04:43:00 localhost snmpd: dlopen failed: /usr/lib64/libcmaX64.so: cannot open shared object file: No such... (1 Reply)
Discussion started by: shekar777
1 Replies
snmpext(3n)															       snmpext(3n)

Name
       snmpextregister,  snmpextgetreq,  snmpextrespond,  snmpexterror	-  library  routines available for building the Extended ULTRIX SNMP Agent
       (Extended Agent)

Syntax
       #include <protocols/snmp.h>
       #include <protocols/snmperrs.h>

       struct objident {
	    short     ncmp;	     /* number of components */
	    unsigned long	     cmp[SNMPMXID];/* components */
       };

       struct snmpareg {
	    short     oidtype;	     /* object id type */
	    objident  oid;	     /* object id/*
       };

       struct snmparspdat {
	    short     type;	     /* response data type */
	    short     octets;	     /* number of octets in response data */
	    char      *rspdat;	     /* response data */
       };

       snmpextregister(reg, community)
       struct snmpareg *reg;
       char *community;

       snmpextgetreq(reqoid, reqinst)
       objident *reqoid;
       objident *reqinst;

       snmpextrespond(reqoid, rspinst, rspdat)
       objident *reqoid;
       objident *rspinst;
       struct snmparspdat *rspdat;

       snmpexterror(error)
       long error;

Description
       The following library routines are available for building the Extended Agent:

       snmpextregister
	    Used to register the Extended Agent's Management Information Base (MIB) to the ULTRIX SNMP Agent (Agent).  The reg parameter  is  pro-
	    vided by the caller with the object identifiers to be registered. The community parameter is provided by the caller with the community
	    name (a null-terminated string).

	    This library routine waits for a registration confirmation from the Agent.	The process is blocked	until  the  confirmation  arrives.
	    When the confirmation arrives, the routine returns the status of the registration.

	    The  program  issues  this call before any other Extended SNMP Library calls.  It does this because the library routine creates a UNIX
	    domain socket to the Agent on behalf of the caller.

       snmpextgetreq
	    Used to receive a request for a MIB variable from the Agent.  If there is no outstanding  request  from  the  Agent,  the  process	is
	    blocked until a request arrives from the Agent.

	    When the Extended Agent receives a request from the Agent, the reqoid parameter contains the object identifier for the requested vari-
	    able.  The reqinst parameter contains the object instance identifier for the requested variable.  If the request does not contains	an
	    object instance, the reqinst->ncmp record contains a zero.

       snmpextrespond
	    Used  to return the requested variable to the Agent.  The reqoid parameter is the object identifier from the library call. The rspinst
	    parameter is the object instance associated with the returning variable.  If there is no object instance associated with the returning
	    variable, a null parameter must be supplied.  The rspdat parameter is the returning variable.

	    Note that the Agent maintains a configurable timer for outstanding requests to the Extended Agent.	Therefore, the Extended Agent must
	    be able to respond within the Agent's timeout interval in order to prevent a premature timeout in the Agent.

	    See the file for your system's default timeout value.

       snmpexterror
	    Used to return an error to the Agent.  The error parameter is the error code to be returned to the Agent.  The error code  is  one	of
	    the following:

	    NOERR--successful SNMP get-next-request end-of-table.  This happens when the requested instance does not exist.

	    NOSUCH--Unknown requested object identifier.

	    GENERRS--Generic error.

	    BADVAL--Bad variable value.

Restrictions
       For the routine, the object identifier must have the prefix 1.3.6.1 to be registered.  If it does not, the registration is rejected.

Return Values
       If an error occurs, a negative value is returned.

Diagnostics
       [BADVERSION]   Bad or obsolete protocol version

       [BINDERR]      Failed to bind the socket

       [GENSUC]       MIB successfully registered

       [NOSOCK]       Socket does not exist

       [NOSVC]	      MIB registration was rejected

       [PKTLENERR]    Maximum size message exceeded or community name is too large

       [RCV_ERR]      Reception failed

       [SND_ERR]      Transmission failed

Files
       SNMP configuration file

See Also
       snmpd.conf(5n), snmpd(8n), snmpsetup(8n)
       Guide to Network Programming

																       snmpext(3n)
All times are GMT -4. The time now is 05:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy