[AGENT++] snmp v1 community

Michele Marcon M.Marcon at riello-ups.com
Thu Apr 14 16:23:18 CEST 2011


Hi,
I don't understand this source code of agent.cpp:

        vacm->addNewGroup(SecurityModel_v2, "public",
                         "v1v2group", storageType_volatile);
        vacm->addNewGroup(SecurityModel_v1, "public",
                         "v1v2group", storageType_volatile);

Is SecurityModel_v2 any different from SecurityModel_v1? Doesn't v1 and v2c share the same communities?

Another question: how to have a write community string that is different from the read community string?

This is the code from agent.cpp:
        OctetStr co("public");
        MibTableRow* row = snmpCommunityEntry::instance->
            add_row(Oidx::from_string(co, FALSE));
        OctetStr tag("v1v2cPermittedManagers");
        snmpCommunityEntry::instance->
            set_row(row, co, co,
                    reqList->get_v3mp()->get_local_engine_id(),
                    "", tag, 3, 1);

Many thanks!




Michele Marcon
Centro Ricerche
RPS SpA
Viale Europa, 7
37045 Legnago (VR)
Tel. +39 0442 635811 - Fax. +39 0442 635934 - Mobile: +39 335 1233317
Skype Id:  - VoIp:
E-mail: M.Marcon at riello-ups.com
Web: http://www.riello-ups.com
 -----------------------------------------------------------------------------------------------------
Per favore non stampare questo messaggio se proprio non è necessario
Please consider the environment before printing this e-mail
-----------------------------------------------------------------------------------------------------
Chi riceve il presente messaggio e` tenuto a verificare se lo stesso non gli sia pervenuto per errore. In tal caso e` pregato di avvisare immediatamente il mittente e, tenuto conto delle responsabilita` connesse all'indebito utilizzo e/o divulgazione del messaggio e/o delle informazioni in esso contenute, voglia cancellare l'originale e distruggere le varie copie o stampe.

The receiver of this message is required to check if he/she has received it erroneously. If so, the receiver is requested to immediately inform the sender and - in consideration of the responsibilities arising from undue use and/or disclosure of the message and/or the information contained therein - destroy the original message and any copy or printout thereof.







More information about the AGENTPP mailing list