Commit graph

1039 commits

Author SHA1 Message Date
Kristofer Hallin
b37c7fe747 Don't use the NetSNMP names from the old MIB. 2022-06-13 14:13:30 +02:00
Kristofer Hallin
03fee8029b Added range for INTEGER type in CLIXON-TYPES-MIB. 2022-06-13 01:59:44 -07:00
Kristofer Hallin
e6659d7919 More updates to CLIXON-TYPES-MIB. 2022-06-11 16:58:40 +02:00
Kristofer Hallin
85da43ee70 More tests for entPhysicalMfgDate. 2022-06-09 21:03:03 +02:00
Kristofer Hallin
d2f8aec561 New test for entPhysicalVendorType 2022-06-09 19:02:31 +02:00
Olof hagsand
7e8b350fdf SNMP Test: some clixon mib table tests 2022-06-08 22:10:58 +02:00
Olof hagsand
fa57fe8be7 SNMP Tests: Added clixon sanity checks on all tests
Ie, CLICON_VALIDATE_STATE_XML=true
Changed symbolic OID to numeric
2022-06-08 20:34:48 +02:00
Kristofer Hallin
eaab900698 More tests for ENTITY-MIB. 2022-06-08 19:25:56 +02:00
Kristofer Hallin
98de800019 Added snmpwalk tests for system. 2022-06-07 21:36:40 +02:00
Kristofer Hallin
6f28d2b383 Test IF-MIB with numerical and textual OIDs + walk. 2022-06-07 21:26:40 +02:00
Kristofer Hallin
69bccaf543 Change nsIETFWGName type to integer. 2022-06-07 20:45:44 +02:00
Olof hagsand
fe3e03e4d5 Test: fixed an occasional error in actions depending on hostname including '92' 2022-06-07 11:22:45 +02:00
Olof hagsand
f67913a999 SNMP test: remove state from snmp_set 2022-06-07 11:09:02 +02:00
Kristofer Hallin
6c6a493826 MIB changes. 2022-06-06 21:27:57 +02:00
Olof hagsand
6e1c20e873 SNMP Frontend, fix handling of snmpd down and memory leaks
If snmpd is down, clixon_snmp does not start
If snmpd stops, clixon_snmp quits
Mem leaks fixed
2022-06-05 15:36:20 +02:00
Kristofer Hallin
eb6185c888 Validate both numerical and lexical OIDs. 2022-06-03 06:20:02 +02:00
Kristofer Hallin
2a181fd5de Added snmpbulkget. 2022-06-02 19:35:32 +02:00
Kristofer Hallin
8e1705495c Only run certain tests if snmp_debug is set. 2022-06-02 19:34:07 +02:00
Kristofer Hallin
c42379e874 First set of tests using bulkget. 2022-06-02 19:25:10 +02:00
Kristofer Hallin
a33db6ef15 snmpset tests re-written. 2022-06-02 16:21:59 +02:00
Kristofer Hallin
118e198a1e test_snmp_types.sh are now test_snmp_get.sh 2022-05-31 21:11:04 +02:00
Kristofer Hallin
03988e4a0f Some variables and functions now live in lib.sh 2022-05-31 21:03:04 +02:00
Kristofer Hallin
6969149a20 Modified the CLIXON-TYPES-MIB to use other OID, avoid collisions. 2022-05-31 21:00:35 +02:00
Kristofer Hallin
ee0f238fad SNMP get tests for various types. 2022-05-31 20:56:05 +02:00
Kristofer Hallin
0c370065a6 Moved generic SNMP functions to lib.sh 2022-05-31 20:55:39 +02:00
Kristofer Hallin
73710ca7bf Re-structured entity tests. 2022-05-30 15:23:40 +02:00
Kristofer Hallin
0f8d50d5a4 Added ENTITY-MIB needed for tests. 2022-05-30 13:46:23 +02:00
Olof hagsand
739193a3de SNMP frontend: Types and indexes
Added timestamp and inet address
First go at index names
2022-05-30 11:34:35 +02:00
Kristofer Hallin
25e92bf15d Verify all table elements for system MIB tests. 2022-05-29 14:55:57 +02:00
Kristofer Hallin
9b42d00219 Losts of new tests for ENTITY-MIB. 2022-05-28 21:46:45 +02:00
Kristofer Hallin
ba354dac46 One more entry for IF-MIB tests. 2022-05-28 21:29:29 +02:00
Olof hagsand
02983a025a SNMP frontend: special case for SnmpAdminString with not null-terminated string 2022-05-28 15:30:16 +02:00
Olof hagsand
bf110058bc SNMP Frontend, fixed remaining types: phys-addr, timeticks, binary, objectid 2022-05-28 10:48:17 +02:00
Kristofer Hallin
04d51b6a56 Initial entity tests. 2022-05-27 16:10:38 +02:00
Kristofer Hallin
4d82b69946 System tests for SNMP. 2022-05-26 20:17:43 +02:00
Olof hagsand
b2be7e9e1b SNMP frontend, new preli table handling code
Skipped data set and use table-helper only
Specialized SNMP error handling
2022-05-26 19:04:51 +02:00
Kristofer Hallin
1a2edb7a2a Removed test_snmp.sh, replaced by other tests. 2022-05-26 11:00:22 +02:00
Kristofer Hallin
934e4a776b Added test/mibs/ for Clixon specific MIBs. 2022-05-25 21:38:02 +02:00
Olof hagsand
f6b762f4a5 SNMP frontend: forgot GET detailed type info in last commit 2022-05-25 20:24:27 +02:00
Olof hagsand
a7df2cd2f2 SNMP frontend tests: Added more descriptic types of each get/set value and netsnmp instructions 2022-05-24 11:16:44 +02:00
Kristofer Hallin
d838f16e6a ifNumber should be enclosed by interface. 2022-05-23 21:37:34 +02:00
Olof hagsand
0fa35b6926 SNMP test typo in test_snmp_set 2022-05-23 14:42:29 +02:00
Olof hagsand
675f4c9f7e SNMP frontend: SNMP2YANG type conversion for snmpset 2022-05-23 14:33:32 +02:00
Kristofer Hallin
d78f6c5ac7 Test integer max and -1. 2022-05-23 09:51:32 +02:00
Kristofer Hallin
e44d76cc3a SNMP type tests. 2022-05-23 09:27:27 +02:00
Kristofer Hallin
299227a7ca Test all fields in an ifTable with only single entry, disabled for now. 2022-05-20 15:59:56 +02:00
Olof hagsand
ea03363c3a SNMP frontend: Generalized type handling for set functions
SPlit scalar_handler into get and set subfunctions
2022-05-20 15:05:23 +02:00
Olof hagsand
63620994e8 SNMP frontend: added -z zap command-line option and pid-file exclusive check, fixed mem check 2022-05-19 15:46:35 +02:00
Olof hagsand
eb18a60d6c SNMP frontend: changed default mibyang dir to /share/mib-yangs to be same as repo
Test: new prel test_snmp_ifmib.sh
2022-05-19 15:46:35 +02:00
Olof hagsand
14faf2b3f0 SNMP frontend: conflict typos, snmp pidfile 2022-05-19 15:46:35 +02:00