Hi, my snmpd is being started with the -x, -I and -interfaces... however, I
noticed that when I switch over to the standby controller (by doing an AV
switchover through the CLI), and do the same SNMP commands on controller 2's
ip, it works!

I have the exact same snmpd configuration on both controllers.

I did a 'ps aux' to see how the snmp sub-agent was started and noticed a
difference between the 2 controllers:

Controller 1's sub-agent was started with:
/opt/opensaf/controller/bin/ncs_snmp_subagt

While Controller 2's sub-agent was started with:
/opt/opensaf/controller/bin/ncs_snmp_subagt ROLE=2 NID_SVC_ID=20

Both of the controllers are started with:
/opt/opensaf/controller/scripts/nis_scxb start

ncsSnmpSubagt.conf on both controllers:
agentxsocket tcp:localhost:705
agentxPingInterval 1


Also, the nodeinit.conf is IDENTICAL on both systems.

I'm at a loss... at least I can use the system through the CLI...

Thanks for any help!

Gad

-----Original Message-----
From: ALLA VENKATA MAHESH-TFH648 [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 12, 2007 9:59 PM
To: DaMiEn667; [email protected]
Subject: RE: [Users] Problem with snmpwalk on MontaVista 4.0.1 cge

Hi Gad,

Please make sure that you have started master agent (snmpd) with
following option ,so that it listens for tcp connections. 

./snmpd -x tcp:localhost:705 -I -interfaces 


And check connections are ESTABLISHED on 705 ports 

# netstat -apn|grep 705

tcp 0 0 0.0.0.0:705 0.0.0.0:* LISTEN 8259/snmpd 
tcp 0 0 127.0.0.1:52298 127.0.0.1:705 ESTABLISHED 27860/ncs_snmp_suba 
tcp 0 0 127.0.0.1:705 127.0.0.1:52298 ESTABLISHED 8259/snmpd 

Thanks & Regards,
AVM

 

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of DaMiEn667
Sent: Tuesday, November 13, 2007 3:16 AM
To: [email protected]
Subject: [Users] Problem with snmpwalk on MontaVista 4.0.1 cge



Hi guys, I really could use some help here.

 

I've set up, compiled, installed, and successfully started openSAF on 2
controllers (one as Active and one as Standby, both start without any
errors).

I've been reading up in the forums on how to set variables through snmp,
however, none of the examples seem to work for me.

 

They talk about adding a node to the configuration through snmp by
issuing the following snmpset commands:

 

 

snmpset -v2c -c public -m /usr/share/snmp/mibs/SAF-AMF-MIB localhost
SAF-AMF-MIB::saAmfNodeSuFailoverProb.\"safNode=SC_2_2\" x "00 00 00 00
05 F5 E1 00"

snmpset -v2c -c public -m /usr/share/snmp/mibs/SAF-AMF-MIB localhost
SAF-AMF-MIB::saAmfNodeSuFailoverMax.\"safNode=SCL_2_2\" u 2

snmpset -v2c -c public -m /usr/share/snmp/mibs/SAF-AMF-MIB localhost
SAF-AMF-MIB::saAmfNodeAdminState.\"safNode=SC_2_2\" i 2

snmpset -v2c -c public -m /usr/share/snmp/mibs/NCS-AVSV-MIB localhost
NCS-AVSV-MIB::ncsNDNodeId.\"safNode=SC_2_2\" u 134928

snmpset -v2c -c public -m /usr/share/snmp/mibs/SAF-AMF-MIB localhost
SAF-AMF-MIB::saAmfNodeRowStatus.\"safNode=SC_2_2\" i 1

 

 

I can run that on either controller (I've even tried changing the
safNode= to SC_2_1), I get the same error:

Error in packet.

Reason: notWritable (That object does not support modification)

Failed object: SAF-AMF-MIB::saAmfNodeSuFailoverProb."safNode=SC_2_2"

 

When I try to do an snmpwalk on either controller this is what I get in
return:

root:~# snmpwalk -v2c -c public -m /usr/share/snmp/mibs/SAF-AMF-MIB
localhost SAF-AMF-MIB::saAmfNodeSuFailoverProb.\"safNode=SC_2_2\"

SAF-AMF-MIB::saAmfNodeSuFailoverProb."safNode=SC_2_2" = No Such Object
available on this agent at this OID

 

I've even tried doing:

snmpwalk -v2c -c public -m /usr/share/snmp/mibs/SAF-AMF-MIB localhost
SAF-AMF-MIB::saAmfNodeTable

 

which results in:

SAF-AMF-MIB::saAmfNodeTable = No Such Object available on this agent at
this OID

 

SNMPD is started using the following command on both controllers:

/usr/sbin/snmpd -x tcp:localhost:705 -c /usr/share/snmp/snmpd.conf -I
-interfaces -Lsd -Lf  /dev/null -p /var/run/snmpd.pid

 

Snmpd.conf on both controllers is:

 

 

# community string to be given in the SNMP requests at SNMP Manager

rwcommunity  public

 

master agentx

#IP address on which snmptrapd/snmp Manager is listening for the traps

trap2sink  10.0.0.131

 

syslocation  ECCG

syscontact  ECCG-SUPPORT

sysservices 79

 

#

# Directives for SubAgent communication

#

agentxTimeout 10

agentxRetries 0

 

 

That being said, am I missing something here?  Shouldn't I be able to
see the 2 controllers as 2 separate ROWS in the saAmfNodeTable?

 

Thanks in advance,

 

Gad

_______________________________________________
Users mailing list
[email protected]
http://list.opensaf.org/maillist/listinfo/users

Reply via email to