Dear sir,
Thanks to Mr.DAVE sir for his concern to help me.. sir, here my TWO(2) PROBLEMS goes like this.....kindly have a look at the below settings in my files and guide me please.
PLEASE DO SEE "AGENT EXT SIT ON NAILS-7" and your REPLIES.
1)FIRST PROBLEM:
>>DAVE sir:>>> WHAT TRAP-RELATED SETTING DO YOU HAVE IN YOUR SNMPD.CONF FILE? (TRAPSINK/TRAP2SINK/INFORMSINK/TRAPSESS)
my settings:> In the /usr/local/share/snmp/snmpd.conf file
====================================================================================
# SECTION: Trap Destinations
trapsink localhost necops 1950
trapsink localhost necops 1900
trap2sink localhost necops 1950
trap2sink localhost necops 1900
informsink localhost necops 1950
informsink localhost necops 1900
trapcommunity necops
trapcommunity necops
authtrapenable 1
authtrapenable 1
====================================================================================
2)PROBLEM TWO:
i have included the wmanIfMib in to the standard agent using
"mib2c -c mib2c.create-dataset.conf
and added my code for its variable values.
for the same table i am able to get the SNMPGET,SNMPGETNEXT and
SNMPWALK.but the SNMPSET IS NOT WORKING.WHY?
>>HOW DID YOU DECLARE THE RELEVANT OBJECTS?
>>WHAT DOES YOUR netsnmp_table_set_multi_add_default_row() CALL LOOK LIKE?
Sir,my code looks like this:
netsnmp_table_set_multi_add_default_row(table_set,
COLUMN_WMANIFBSCONTROLLERACTIONSRESETBS,
ASN_INTEGER, 1, NULL, 0,
COLUMN_WMANIFBSCONTROLLERACTIONSRESETSECTOR,
ASN_INTEGER, 1, NULL, 0,
COLUMN_WMANIFBSCONTROLLERACTIONSSECTORIFTORESET,
ASN_INTEGER, 1, NULL, 0,
COLUMN_WMANIFBSCONTROLLERACTIONSROWSTATUS,
ASN_INTEGER, 1, NULL, 0, 0);
====================================================================================
>>CAN YOU SUCCESSFULLY SET OTHER OBJECTS(say "sysLocation.0")
NO SIR, i am not able to set for the ("sysLocation.0") also. sir i have CHAGED THE ACCESS CONTROL TO WRITE FOR "PUBLIC" COMMUNITY.please do look at the ACCESS CONTROL in my file. is that correct.?
copy paste of the terminal with -d option.
====================================================================================
[EMAIL PROTECTED] net-snmp-5.2]$ snmpset -c public -v 2c -d 172.29.5.102:1650 1.3.6.1.2.1.1.6 s "thirdfloor"
Sending 52 bytes to UDP: [172.29.5.102]:1650
0000: 30 32 02 01 01 04 06 70 75 62 6C 69 63 A3 25 02 02.....public.%.
0016: 04 06 FC 23 36 02 01 00 02 01 00 30 17 30 15 06 ...#6......0.0..
0032: 07 2B 06 01 02 01 01 06 04 0A 74 68 69 72 64 66 .+........thirdf
0048: 6C 6F 6F 72 loor
Received 52 bytes from UDP: [172.29.5.102]:1650
0000: 30 32 02 01 01 04 06 70 75 62 6C 69 63 A2 25 02 02.....public.%.
0016: 04 06 FC 23 36 02 01 11 02 01 00 30 17 30 15 06 ...#6......0.0..
0032: 07 2B 06 01 02 01 01 06 04 0A 74 68 69 72 64 66 .+........thirdf
0048: 6C 6F 6F 72 loor
Error in packet.
Reason: notWritable (That object does not support modification)
[EMAIL PROTECTED] net-snmp-5.2]$
====================================================================================
>>HOW HAVE YOU CONFIGURED THE ACCESS CONTROL>
here is my ACCESS control setup in the /usr/local/share/snmp/snmpd.conf file
====================================================================================
# SECTION: Access Control Setup
rwuser npar
rwuser npar auth
rouser npar
rouser npar auth
rocommunity comname localhost
rocommunity comname localhost
rocommunity necops localhost
rwcommunity comname localhost
rwcommunity necops localhost
# Unknown directives read in from other files by snmpconf
com2sec notConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
access notConfigGroup "" any noauth exact systemview systemview
none
com2sec local localhost necops
com2sec mynet default necops
group myrwgroup v1 local
group myrwgroup v2c local
group myrogroup v1 mynet
group myrogroup v2c mynet
view all included .1.3.6.1.2.1.10.184.1 80
access myrogroup "" v1 noauth exact all none none
access myrogroup "" v2c noauth exact all none none
access myrwgroup "" v1 noauth exact all all none
access myrwgroup "" v2c noauth exact all all none
access notConfigGroup "" any noauth exact systemview systemview
none
access myrwgroup "" v2c noauth exact all all none
====================================================================================
These are the information present in the configuration file located
at /usr/local/share/snmp. i gave the information in this after checking out the below:
====================================================================================
[EMAIL PROTECTED] agent]$ ./snmpd -Dread_config -H 2>&1|grep "Reading"|sort -u
read_config: Reading configuration /usr/local/share/snmp/snmpd.conf
[EMAIL PROTECTED] agent]$
====================================================================================
sir, in this file all the contents(SECTIONS) such as "System Information Setup,Access Control Setup Trap Destinations, Extending the Agent and Unknown directives read " are present TWICE.second set of these information are given after first one.
sir, please do say me what i am to do next? what is wrong in my settings???
Expecting your reply,
with sincere thanks & love,
n.parthiban
- AGENT EXT SIT ON NAILS - 8 Parthiban Naliiamudali
- Re: AGENT EXT SIT ON NAILS - 8 Dave Shield