Commit 440f4126 authored by Adam Wujek's avatar Adam Wujek 💬

lib/snmp: add wrpcVersionSwBuildBy

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent e556956d
......@@ -58,14 +58,14 @@ wrpcVersionSwVersion OBJECT-TYPE
"The software version, as returned from 'git describe' at build time"
::= { wrpcVersionGroup 2 }
--x wrpcVersionSwBuildBy OBJECT-TYPE
--x SYNTAX DisplayString (SIZE (0..31))
--x MAX-ACCESS read-only
--x STATUS current
--x DESCRIPTION
--x "The software build by, as returned from
--x 'git config -get-all user.name' at build time"
--x ::= { wrpcVersionGroup 3 }
wrpcVersionSwBuildBy OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..31))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The software build by, as returned from
'git config -get-all user.name' at build time"
::= { wrpcVersionGroup 3 }
--x wrpcVersionSwBuildDate OBJECT-TYPE
--x SYNTAX DisplayString (SIZE (0..31))
......
......@@ -130,12 +130,14 @@ static int set_p(uint8_t *buf, struct snmp_oid *obj);
static uint8_t oid_wrpcVersionHwType[] = {0x2B,6,1,4,1,96,101,1,1,1,0};
static uint8_t oid_wrpcVersionSwVersion[] = {0x2B,6,1,4,1,96,101,1,1,2,0};
static uint8_t oid_wrpcVersionSwBuildBy[] = {0x2B,6,1,4,1,96,101,1,1,3,0};
/* NOTE: to have SNMP_GET_NEXT working properly this array has to be sorted by
OIDs */
static struct snmp_oid oid_array[] = {
OID_FIELD_VAR( oid_wrpcVersionHwType, get_p, NO_SET, ASN_OCTET_STR, &snmp_hw_type),
OID_FIELD_VAR( oid_wrpcVersionSwVersion, get_pp, NO_SET, ASN_OCTET_STR, &build_revision),
OID_FIELD_VAR( oid_wrpcVersionSwBuildBy, get_pp, NO_SET, ASN_OCTET_STR, &build_by),
{ 0, }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment