Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

snmpinfo gets "noSuchName at position 1 1

Status
Not open for further replies.

hiasor

Technical User
Mar 3, 2008
25
AT
Hi all,

I have a problem with snmb, so clstat is not working
/usr/sbin/snmpinfo -h localhost -c public -v -o /usr/es/sbin/cluster/hacmp.defs nodeName
noSuchName at position 1

same Error with nodeTable instead of nodeName.

I have enabled the main internet MIB entry by adding this line in
/etc/snmpdv3.conf file
VACM_VIEW defaultView internet - included -

and i have restartet the snmp deamon.

oslevel -s
6100-01-03-0846

PowerHA 5.5


Any suggestions?

Thanx in advance!
 
Follow this procedure to make cldump/clstat to work---

HACMP 5.4/5.5 supports changing the default community name from "public" to something else. SNMP is used for clstatES communications.

First, find out what version of SNMP you are using:
ls -l /usr/sbin/snmpd
lrwxrwxrwx 1 root system 9 Sep 08 2008 /usr/sbin/snmpd -> snmpdv3ne
(In this case, I am using version 3).

Make a copy of your configuration file. It is located on /etc.
/etc/snmpd.conf <- Version 1
/etc/snmpdv3.conf <- Version 3
Edit the file and replace wherever public is mention for your new community name.
I am still unsure if there is a restriction on the number of characters for a new community name.
When I tried using "notpublic" it did not work. I used a 6 characters community name instead.

Change subsystems and restart them:
chssys -s snmpmibd -a "-c new"
chssys -s hostmibd -a "-c new"
chssys -s aixmibd -a "-c new"
stopsrc -s snmpd
stopsrc -s aixmibd
stopsrc -s snmpmibd
stopsrc -s hostmibd
startsrc -s snmpd
startsrc -s hostmibd
startsrc -s snmpmibd
startsrc -s aixmibd
Test using your locahost:
snmpinfo -m dump -v -h localhost -c new -o /usr/es/sbin/cluster/hacmp.defs nodeTable

If the command hangs, something is wrong. Check the changes you made.

If everything works fine, perform the same change in the other node and test again. Now you can test from one server to the other using the snmpinfo command above.

If you need to backout, replace with the original configuration file and restart subsystems. Note in this case we use double-quote and double-quote.
There is no space.
chssys -s snmpmibd -a ""
chssys -s hostmibd -a ""
chssys -s aixmibd -a ""
stopsrc -s snmpd
stopsrc -s aixmibd
stopsrc -s snmpmibd
stopsrc -s hostmibd
startsrc -s snmpd
startsrc -s hostmibd
startsrc -s snmpmibd
startsrc -s aixmibd
Okay, now make the change to clinfoES and restart and both nodes:
chssys -s clinfoES -a "-c new"

stopsrc -s clinfoES
startsrc -s clinfoES
Wait a few minutes and you should be able to use clstat again with the new community name.
 
hi xyz786,

can you send me please a changed snmpdv3.conf file?

thanx!!!
 
Jusr replace "public" with a 6 letter word, something like "people" then un-comment COMMUNITY string line in snmpdv3.conf file.
 
Thanks xyz786,

but it isn´t still working

>snmpinfo -c hacmp -m dump system
unable to locate object parent "ibmAIX.1" for "aixSystem"

 
now it's working.
chssys -s snmpmibd -a ""
chssys -s hostmibd -a ""
chssys -s aixmibd -a ""
stopsrc -s snmpd
stopsrc -s aixmibd
stopsrc -s snmpmibd
stopsrc -s hostmibd
startsrc -s snmpd
startsrc -s hostmibd
startsrc -s snmpmibd
startsrc -s aixmibd
snmpinfo -m dump -v -h localhost -c public -o /usr/es/sbin/cluster/hacmp.defs nodeTable
stopsrc -s clinfoES

snmpdv3.conf:
VACM_GROUP group1 SNMPv1 public -

VACM_VIEW defaultView internet - included -

# exclude snmpv3 related MIBs from the default view
VACM_VIEW defaultView snmpModules - excluded -
VACM_VIEW defaultView 1.3.6.1.6.3.1.1.4 - included -
VACM_VIEW defaultView 1.3.6.1.6.3.1.1.5 - included -

# exclude aixmibd managed MIBs from the default view
VACM_VIEW defaultView 1.3.6.1.4.1.2.6.191 - excluded -

VACM_ACCESS group1 - - noAuthNoPriv SNMPv1 defaultView - defaultView -

NOTIFY notify1 traptag trap -

TARGET_ADDRESS Target1 UDP 127.0.0.1 traptag trapparms1 - - -

TARGET_PARAMETERS trapparms1 SNMPv1 SNMPv1 public noAuthNoPriv -

COMMUNITY public public noAuthNoPriv 0.0.0.0 0.0.0.0 -

DEFAULT_SECURITY no-access - -

logging file=/usr/tmp/snmpdv3.log enabled
logging size=100000 level=4

smux 1.3.6.1.4.1.2.3.1.2.1.2 gated_password # gated

smux 1.3.6.1.4.1.2.3.1.2.3.1.1 muxatmd_password #muxatmd
smux 1.3.6.1.4.1.2.3.1.2.1.5 clsmuxpd_password # HACMP/ES for AIX clsmuxpd

startsrc -s clinfoES
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top