Re: SNMPv3 UCD and router (CISCO)

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Fri, 2005-10-07 at 13:29 -0400, Kostia Grebelsky wrote:

> The way I understand things the keys for authentication and privacy
> both need to be set up on the router (they may be generated by the
> router not sure), but they also need to be set in the code  to both
> session.securityAuthKey and session.securityPrivKey could be assigned
> keys that would be the same as on the router?

Yes.
The same key is required at both ends, so that the two processes
can communicate successfully.  (SNMP uses a single-key system,
rather than the more flexible, but higher-overhead public/private
mechanism).

> Or do these get generated based on the passphrases passed in to
> generate_KU?

Yes.
That's how the keys are typically generated.
Or strictly (as you've spotted) from a combination of the pass phrase
and the authoritative Engine ID.

>  but then how is CISCO router supposed to decrypt it?

The router generates the same key from the same pass phrase and
authoritative Engine ID.


>  However CISCO documentation suggests "The security keys used for
> authenticating and encrypting SNMPv3 packets are generated as a
> function of the authoritative SNMP engine's engine ID and user
> passwords."

Yup.

> DO I understand this correctly that UCD library will generate
> msgAuthoritativeEngineID for me?

It will *discover* the authoritative engine ID for you.
(It's actually the engine ID of the router, in most cases).

>  So at the end of the day the only things that I should care about as
> paramters to UCD APIs are keys, and user name as well as the target
> and things I am inquiring about?

What you need to be concerned with is the username  (which
specifies the authenication and encryption algorithms to use),
and the pass phrases.  You should never need to use the
localised keys directly.

Dave


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.