From bae1c38a8d7ad6d176389cbd4d6f06cd75d2db56 Mon Sep 17 00:00:00 2001 From: sfarouq-ext <116093375+sfarouq-ext@users.noreply.github.com> Date: Wed, 11 Dec 2024 10:32:02 +0100 Subject: [PATCH] WIP --- tests/network/cyberoam/snmp/interfaces.robot | 6 +++--- tests/network/cyberoam/snmp/requests.robot | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/network/cyberoam/snmp/interfaces.robot b/tests/network/cyberoam/snmp/interfaces.robot index 09d9c252da..47eb9b9503 100644 --- a/tests/network/cyberoam/snmp/interfaces.robot +++ b/tests/network/cyberoam/snmp/interfaces.robot @@ -30,9 +30,9 @@ interfaces ${tc} ... 2 --add-global OK: Total port : 33, AdminStatus Up : 21, AdminStatus Down : 12, OperStatus Up : 18, OperStatus Down : 15 | 'total_port'=33;;;0;33 'total_admin_up'=21;;;0;33 'total_admin_down'=12;;;0;33 'total_oper_up'=18;;;0;33 'global_oper_down'=15;;;0;33 ... 3 --add-status='UP' CRITICAL: Interface 'Anonymized 232' Status : down (admin: up) - Interface 'Anonymized 191' Status : down (admin: up) - Interface 'Anonymized 141' Status : down (admin: up) ... 4 --add-duplex-status CRITICAL: Interface 'Anonymized 232' Status : down (admin: up) (duplex: n/a) - Interface 'Anonymized 191' Status : down (admin: up) (duplex: n/a) - Interface 'Anonymized 141' Status : down (admin: up) (duplex: n/a) - ... 5 --add-traffic='' OK: All interfaces are ok | 'traffic_in_Anonymized 250'=0.00b/s;;;0;10000000 'traffic_out_Anonymized 250'=0.00b/s;;;0;10000000 'traffic_in_Anonymized 012'=0.00b/s;;;0;1000000000 'traffic_out_Anonymized 012'=0.00b/s;;;0;1000000000 'traffic_in_Anonymized 118'=0.00b/s;;;0;1000000000 'traffic_out_Anonymized 118'=0.00b/s;;;0;1000000000 'traffic_in_Anonymized 073'=0.00b/s;;;0;1000000000 'traffic_out_Anonymized 073'=0.00b/s;;;0;1000000000 'traffic_in_Anonymized 071'=0.00b/s;;;0; 'traffic_out_Anonymized 071'=0.00b/s;;;0; 'traffic_in_Anonymized 073'=0.00b/s;;;0;1000000000 'traffic_out_Anonymized 073'=0.00b/s;;;0;1000000000 'traffic_in_Anonymized 232'=0.00b/s;;;0; 'traffic_out_Anonymized 232'=0.00b/s;;;0; 'traffic_in_Anonymized 191'=0.00b/s;;;0; 'traffic_out_Anonymized 191'=0.00b/s;;;0; 'traffic_in_Anonymized 242'=0.00b/s;;;0;1000000000 'traffic_out_Anonymized 242'=0.00b/s;;;0;1000000000 'traffic_in_Anonymized 175'=0.00b/s;;;0; 'traffic_out_Anonymized 175'=0.00b/s;;;0; - ... 6 --add-errors --name='Anonymized 203' OK: All interfaces are ok | 'packets_discard_in_Anonymized 250'=0.00%;;;0;100 'packets_error_in_Anonymized 250'=0.00%;;;0;100 'packets_discard_out_Anonymized 250'=0.00%;;;0;100 'packets_error_out_Anonymized 250'=0.00%;;;0;100 'packets_discard_in_Anonymized 012'=0.00%;;;0;100 'packets_error_in_Anonymized 012'=0.00%;;;0;100 'packets_discard_out_Anonymized 012'=0.00%;;;0;100 'packets_error_out_Anonymized 012'=0.00%;;;0;100 'packets_discard_in_Anonymized 118'=0.00%;;;0;100 'packets_error_in_Anonymized 118'=0.00%;;;0;100 'packets_discard_out_Anonymized 118'=0.00%;;;0;100 'packets_error_out_Anonymized 118'=0.00%;;;0;100 'packets_discard_in_Anonymized 073'=0.00%;;;0;100 'packets_error_in_Anonymized 073'=0.00%;;;0;100 'packets_discard_out_Anonymized 073'=0.00%;;;0;100 'packets_error_out_Anonymized 073'=0.00%;;;0;100 'packets_discard_in_Anonymized 071'=0.00%;;;0;100 'packets_error_in_Anonymized 071'=0.00%;;;0;100 'packets_discard_out_Anonymized 071'=0.00%;;;0;100 - ... 7 --add-cast --name='Anonymized 203' OK: All interfaces are ok | 'Anonymized 250#interface.packets.in.unicast.percentage'=0.00%;;;0;100 'Anonymized 250#interface.packets.in.broadcast.percentage'=0.00%;;;0;100 'Anonymized 250#interface.packets.in.multicast.percentage'=0.00%;;;0;100 'Anonymized 250#interface.packets.out.unicast.percentage'=0.00%;;;0;100 'Anonymized 250#interface.packets.out.broadcast.percentage'=0.00%;;;0;100 'Anonymized 250#interface.packets.out.multicast.percentage'=0.00%;;;0;100 'Anonymized 012#interface.packets.in.unicast.percentage'=0.00%;;;0;100 'Anonymized 012#interface.packets.in.broadcast.percentage'=0.00%;;;0;100 'Anonymized 012#interface.packets.in.multicast.percentage'=0.00%;;;0;100 'Anonymized 012#interface.packets.out.unicast.percentage'=0.00%;;;0;100 'Anonymized 012#interface.packets.out.broadcast.percentage'=0.00%;;;0;100 'Anonymized 012#interface.packets.out.multicast.percentage'=0.00%;;;0;100 'Anonymized 118#interface.packets.in.unicast.percentage'=0.00%;;;0;100 + ... 5 --add-traffic='' OK: All interfaces are ok + ... 6 --add-errors --name='Anonymized 203' OK: All interfaces are ok + ... 7 --add-cast --name='Anonymized 203' OK: All interfaces are ok ... 8 --add-speed --name='Anonymized 203' CRITICAL: Interface 'Anonymized 232' Status : down (admin: up) - Interface 'Anonymized 191' Status : down (admin: up) - Interface 'Anonymized 141' Status : down (admin: up) | 'speed_Anonymized 250'=10000000b/s;;;0; 'speed_Anonymized 012'=1000000000b/s;;;0; 'speed_Anonymized 118'=1000000000b/s;;;0; 'speed_Anonymized 073'=1000000000b/s;;;0; 'speed_Anonymized 071'=0b/s;;;0; 'speed_Anonymized 073'=1000000000b/s;;;0; 'speed_Anonymized 232'=0b/s;;;0; 'speed_Anonymized 191'=0b/s;;;0; 'speed_Anonymized 242'=1000000000b/s;;;0; 'speed_Anonymized 175'=0b/s;;;0; 'speed_Anonymized 128'=0b/s;;;0; 'speed_Anonymized 037'=0b/s;;;0; 'speed_Anonymized 080'=0b/s;;;0; 'speed_Anonymized 092'=0b/s;;;0; 'speed_Anonymized 187'=0b/s;;;0; 'speed_Anonymized 163'=0b/s;;;0; 'speed_Anonymized 103'=0b/s;;;0; 'speed_Anonymized 151'=0b/s;;;0; 'speed_Anonymized 141'=0b/s;;;0; 'speed_Anonymized 171'=1000000000b/s;;;0; 'speed_Anonymized 184'=0b/s;;;0; 'speed_Anonymized 107'=1000000000b/s;;;0; 'speed_Anonymized 239'=1000000000b/s;;;0; 'speed_Anonymized 137'=1000000000b/s;;;0; 'speed_Anonymized 028'=0b/s;;;0; 'speed_Anonymized 105'=0b/s;;;0; 'speed_Anonymized 045'=0b/s;;;0; 'speed_Anonymized 101'=0b/s;;;0; 'speed_Anonymized 252'=0b/s;;;0; 'speed_Anonymized 012'=0b/s;;;0; 'speed_Anonymized 232'=10000000000b/s;;;0; 'speed_Anonymized 072'=0b/s;;;0; 'speed_Anonymized 037'=0b/s;;;0; ... 9 --add-volume --name='Anonymized 203' CRITICAL: Interface 'Anonymized 232' Status : down (admin: up) - Interface 'Anonymized 191' Status : down (admin: up) - Interface 'Anonymized 141' Status : down (admin: up) ... 10 --check-metrics='\\\%{opstatus} ne "up"' CRITICAL: Interface 'Anonymized 232' Status : down (admin: up) - Interface 'Anonymized 191' Status : down (admin: up) - Interface 'Anonymized 141' Status : down (admin: up) diff --git a/tests/network/cyberoam/snmp/requests.robot b/tests/network/cyberoam/snmp/requests.robot index bc9f45274a..5788b045b6 100644 --- a/tests/network/cyberoam/snmp/requests.robot +++ b/tests/network/cyberoam/snmp/requests.robot @@ -26,9 +26,9 @@ requests ${tc} Ctn Run Command And Check Result As Strings ${command} ${expected_result} Examples: tc extra_options expected_result -- - ... 1 --filter-counters='' --verbose OK: Requests live users: 38, http hits: 0, ftp hits: 0, pop3 hits: 0, imap hits: 0, smtp hits: 0 | 'live_users'=38;;;0; 'http_hits'=0;;;0; 'ftp_hits'=0;;;0; 'pop3_hits'=0;;;0; 'imap_hits'=0;;;0; 'smtp_hits'=0;;;0; - ... 2 --filter-counters='http-hits' --verbose OK: Requests http hits: 0 | 'http_hits'=0;;;0; - ... 3 --warning-live-users=0 --critical-live-users=0 CRITICAL: Requests live users: 38 | 'live_users'=38;0:0;0:0;0; 'http_hits'=0;;;0; 'ftp_hits'=0;;;0; 'pop3_hits'=0;;;0; 'imap_hits'=0;;;0; 'smtp_hits'=0;;;0; + ... 1 --filter-counters='' --verbose OK: Requests live users: 38, http-hits : Buffer creation, ftp-hits : Buffer creation, pop3-hits : Buffer creation, imap-hits : Buffer creation, smtp-hits : Buffer creation | 'live_users'=38;;;0; + ... 2 --filter-counters='http-hits' --verbose OK: Requests http-hits : Buffer creation + ... 3 --warning-live-users=0 --critical-live-users=0 CRITICAL: Requests live users: 38 | 'live_users'=38;0:0;0:0;0; ... 4 --warning-http-hits=0 --critical-http-hits=10 OK: Requests live users: 38, http hits: 0, ftp hits: 0, pop3 hits: 0, imap hits: 0, smtp hits: 0 | 'live_users'=38;;;0; 'http_hits'=0;0:0;0:10;0; 'ftp_hits'=0;;;0; 'pop3_hits'=0;;;0; 'imap_hits'=0;;;0; 'smtp_hits'=0;;;0; ... 5 --warning-ftp-hits=5 --critical-ftp-hits=10 OK: Requests live users: 38, http hits: 0, ftp hits: 0, pop3 hits: 0, imap hits: 0, smtp hits: 0 | 'live_users'=38;;;0; 'http_hits'=0;;;0; 'ftp_hits'=0;0:5;0:10;0; 'pop3_hits'=0;;;0; 'imap_hits'=0;;;0; 'smtp_hits'=0;;;0; ... 6 --warning-smtp-hits=20 --critical-smtp-hits=10 OK: Requests live users: 38, http hits: 0, ftp hits: 0, pop3 hits: 0, imap hits: 0, smtp hits: 0 | 'live_users'=38;;;0; 'http_hits'=0;;;0; 'ftp_hits'=0;;;0; 'pop3_hits'=0;;;0; 'imap_hits'=0;;;0; 'smtp_hits'=0;0:20;0:10;0;