- Jul 29, 2016
-
-
Adam Wujek authored
add: -- wrpcDateTAI -- wrpcDateTAIString -- wrpcSystemUptime Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
They will be implemented with different OIDs. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Mostly spacing and indentation. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
adding uint8_t data_size; to struct snmp_oid does not change memory usage due to memory alignment. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
rename: fill -> get fill_tics -> get_tics fill_date -> get_date fill_asn -> get_value fill_struct_pp_asn -> get_pp fill_struct_p_asn -> get_p fill_int32_saturate -> get_i32sat fill_int32_saturate_pp -> get_i32sat_pp Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
By this 32bytes are saved. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
It will be possible to set via SNMP system name when SNMP SET is implemented. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Respond with SNMP_ERR_GENERR for versions never than 2. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Now all snmp walks should be possible Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add object with wrpc's version. For example: WR-WRPC-MIB::wrWrpcMIB.3.1.0 = STRING: "wrpc-v3.0-161-g4d63c77-dirty" Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Convert function fill_int32_saturate to take pointer to the data and asn. The interpretation of pointer in struct snmp_oid is done in fill_int32_saturate_pp. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
From now, struct snmp_oid contais the pointer (p) which is up to the callback function to know how to interpret the pointer. It is easier to handle **data and *data in declaration of the oid_array. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
From now function adding the data to snmp packet (fill_asn), just takes pointer to the data and asn type. Interpretation of a pointer in struct snmp_oid is now up to the callback function. It makes easier to handle different data types. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
objects: --oid_wrpcNicTX --oid_wrpcNicRX Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
add: --oid_wrsPtpServoState --oid_wrsPtpServoStateN --oid_wrsPtpClockOffsetPsHR --oid_wrsPtpSkew --oid_wrpcPtpRTTHR --oid_wrpcPtpDeltaMs --oid_wrpcPtpCurSetpoint Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Used to convert 64bit to 32bit. It is better to saturate 32bit during conversion than just passing 32 LSB bits. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
snmp_get_next works only when requesting oid is valid. Otherwise it fails to find next entry. Due to the above the snmpwalk works only when the walk is started from the existing oid. Since snmp walk scans only oids in the current branch, there was a need to create a special oid .1.3. $ snmpwalk -On -c public -v 1 192.168.1.20 1.3 .1.3.6.1.2.1.1.5.0 = STRING: "wrc" .1.3.6.1.2.1.25.1.1.0 = Timeticks: (792773) 2:12:07.73 .1.3.6.1.2.1.25.1.2.0 = Hex-STRING: 07 B2 00 01 05 00 00 00 .1.3.6.1.4.1.96.100.7.5.1.15.1 = Counter32: 445 .1.3.6.1.4.1.96.100.7.5.1.16.1 = INTEGER: 10 .1.3.6.1.4.1.96.100.7.5.1.17.1 = INTEGER: 174810 .1.3.6.1.4.1.96.100.7.5.1.18.1 = INTEGER: 191115 .1.3.6.1.4.1.96.100.7.5.1.19.1 = INTEGER: 157655 Timeout: No Response from 192.168.1.20 NOTE: Timeout message appears becasue there is no responce from node when wrong packet is sent. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Move SNMP just after syslog. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
--add defines of ASN types --add 5 object from wrsPtpTable Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
The "community" string is public. We have tree items only: the host name, the date and uptime. The code is designed to make it simple any addition. But we only have snmpget support, not snmpwak (i.e. "get next" query). This is run on an host build (CONFIG_HOST_PROCESS) where the time and date are not related to the real world: # snmpget -v 1 -c public 192.168.16.1 .1.3.6.1.2.1.1.5.0 SNMPv2-MIB::sysName.0 = STRING: wrc # snmpget -v 1 -c public 192.168.16.1 .1.3.6.1.2.1.25.1.2.0 HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 1970-0-1,19:52:34.0 # snmpget -v 1 -c public 192.168.16.1 .1.3.6.1.2.1.25.1.2.0 HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 1970-0-1,19:53:2.0 # snmpget -v 1 -c public 192.168.16.1 .1.3.6.1.2.1.25.1.1.0 [...] hrSystemUptime.0 = Timeticks: (94193300) 10 days, 21:38:53.00 Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-