Hi,

I'd like to leverage the agent's "override" configuration directive to 
implement custom control of the IP-MIB::ifAlias values. The agent target has 
its own "aliases" for the standard interface names, for e.g., "Interface 1" 
might be an alias for "eth0". It's easy to hardcode this information in the 
agent's configuration file:

# IF-MIB::ifAlias.4
override override 1.3.6.1.2.1.31.1.1.1.18.4 octet_str "Interface 1"

The issue I'm having is how to dynamically determine the ifAlias instances and 
then to add these to the configuration file. Ideally, I'd like to determine 
this from my AgentX sub-agent that's running on the agent target, but I don't 
believe there's any equivalent to a programmatic get request from the sub to 
the master (i.e., to retrieve ifNumber and then to query the set of ifAlias.x 
values). Is this correct? I can't rely on running any of the client-based shell 
applications (snmpget, snmpwalk, etc.) on the target (to retrieve this 
information) as there may be no known MIB access available to these clients 
(i.e., no community based access and no access to any v3 user passphrases). 

Of course I could try to mimic the heuristic that the master uses to enumerate 
the interfaces and construct the if[X]Table, but that seems like cheating (and 
also results in far too much coupling for my liking).

I'm hoping someone might have some ideas for how to do this?

Thanks,
-David


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to