Hi Mike Ayers,
Thank's for response.
My requirement is , I have to create a rows in
SNMP-COMMUNITY-MIB::snmpCommunityTable,
SNMP-COMMUNITY-MIB::snmpTargetAddrExtTable,
SNMP-VIEW-BASED-ACM-MIB::vacmAccessTable,
SNMP-VIEW-BASED-ACM-MIB::vacmAccessTable,
SNMP-VIEW-BASED-ACM-MIB::vacmSecurityToGroupTable,
SNMP-VIEW-BASED-ACM-MIB::vacmViewTreeFamilyTable .
By default i will start my Agent and Subagent with the
snmpd.conf file and after some time I will get a callback call( A method
implemented by me in Subagent "get_list_of_Rows()" , which gives the list
of rows -values( example given below) , To create a rows in a above tables).
( So now how I can update the snmpd.conf file or How to
create this rows in the specified tables, So that any of the updates of the
tables by using "get_list_of_Rows()" my call back will effect my query /(
Its like Query the Agnet/Subagent with my own dynamically changed Community
list and Access control created )
example row's:
SNMP-COMMUNITY-MIB::snmpCommunityTable Row:: Example:
index i have given as "Index_0" (as index can be string )
SNMP-COMMUNITY-MIB::snmpCommunityName.'Index_0' = STRING: "MIKE"
SNMP-COMMUNITY-MIB::snmpCommunitySecurityName.'Index_0' = STRING:
@STBconfig_0
SNMP-COMMUNITY-MIB::snmpCommunityContextEngineID.'Index_0' = ""
SNMP-COMMUNITY-MIB::snmpCommunityContextName.'Index_0' = STRING:
SNMP-COMMUNITY-MIB::snmpCommunityTransportTag.'Index_0' = STRING:
@STBconfigTag_0
SNMP-COMMUNITY-MIB::snmpCommunityStorageType.'Index_0' = INTEGER:
volatile(2)
SNMP-COMMUNITY-MIB::snmpCommunityStatus.'Index_0' = INTEGER: active(1)
( "snmpwalk -v2c -c MIKE IP system" --------- Should work after creating
the row with community string MIKE)
SNMP-COMMUNITY-MIB::snmpTargetAddrExtTable Row:: Example:
SNMP-COMMUNITY-MIB::snmpTargetAddrTMask.'@Index_0_0' = STRING: "FF 00 00 00
00 00"
SNMP-COMMUNITY-MIB::snmpTargetAddrMMS.'@Index_0' = INTEGER: 484
SNMP-VIEW-BASED-ACM-MIB::vacmAccessTable Row:: Example:
SNMP-VIEW-BASED-ACM-MIB::vacmAccessContextMatch."MyRWGroup"."".0.noAuthNoPriv
= INTEGER: exact(1)
SNMP-VIEW-BASED-ACM-MIB::vacmAccessReadViewName."MyRWGroup"."".0.noAuthNoPriv
= STRING: roview
SNMP-VIEW-BASED-ACM-MIB::vacmAccessWriteViewName."MyRWGroup"."".0.noAuthNoPriv
= STRING: all
SNMP-VIEW-BASED-ACM-MIB::vacmAccessNotifyViewName."MyRWGroup"."".0.noAuthNoPriv
= STRING: all
SNMP-VIEW-BASED-ACM-MIB::vacmAccessStorageType."MyRWGroup"."".0.noAuthNoPriv
= INTEGER: volital(2)
SNMP-VIEW-BASED-ACM-MIB::vacmAccessStatus."MyRWGroup"."".0.noAuthNoPriv =
INTEGER: active(1)
etc...
Note:: My Snmpd.conf file data is:
-----------------------------------------
com2sec local default public
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
# Third, create a view for us to let the groups have rights to:
# incl/excl subtree mask
view all included .1 80
view roview included .1 80
access MyRWGroup "" any noauth exact roview all all
master agentx
agentXSocket tcp:127.0.0.1:705
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Thank's
Regards
ManuKumar
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users