@@ -63,19 +63,19 @@ def run_host(ip)
63
63
# using the CableHome cabhPsDevMib MIB module which defines the
64
64
# basic management objects for the Portal Services (PS) logical element
65
65
# of a CableHome compliant Residential Gateway device
66
- deviceUiSelection = snmp . get_value ( '1.3.6.1.4.1.4491.2.4.1.1.6.1.3.0' ) . to_i
67
- if deviceUiSelection == 1
66
+ device_ui_selection = snmp . get_value ( '1.3.6.1.4.1.4491.2.4.1.1.6.1.3.0' ) . to_i
67
+ if device_ui_selection == 1
68
68
# manufacturerLocal(1) - indicates Portal Services is using the vendor
69
69
# web user interface shipped with the device
70
- deviceUiUsername = snmp . get_value ( '1.3.6.1.4.1.4491.2.4.1.1.6.1.1.0' ) . to_s
71
- output_data [ "Username" ] = deviceUiUsername . strip
70
+ device_ui_username = snmp . get_value ( '1.3.6.1.4.1.4491.2.4.1.1.6.1.1.0' ) . to_s
71
+ output_data [ "Username" ] = device_ui_username . strip
72
72
73
- deviceUiPassword = snmp . get_value ( '1.3.6.1.4.1.4491.2.4.1.1.6.1.2.0' ) . to_s
74
- output_data [ "Password" ] = deviceUiPassword . strip
73
+ device_ui_password = snmp . get_value ( '1.3.6.1.4.1.4491.2.4.1.1.6.1.2.0' ) . to_s
74
+ output_data [ "Password" ] = device_ui_password . strip
75
75
end
76
76
77
- primaryWifiState = snmp . get_value ( '1.3.6.1.2.1.2.2.1.8.32' ) . to_i
78
- if primaryWifiState != 1
77
+ primary_wifi_state = snmp . get_value ( '1.3.6.1.2.1.2.2.1.8.32' ) . to_i
78
+ if primary_wifi_state != 1
79
79
# primary Wifi interface is not up
80
80
print_status ( "Primary WiFi is disabled on the device" )
81
81
end
@@ -120,8 +120,8 @@ def run_host(ip)
120
120
output_data [ "WEP Key 4" ] = wep_key4 . unpack ( 'H*' ) [ 0 ]
121
121
122
122
# get current network key
123
- currentKey = snmp . get_value ( '1.3.6.1.4.1.4413.2.2.2.1.5.4.2.1.1.1.32' ) . to_s
124
- output_data [ "Current Network Key" ] = currentKey
123
+ current_key = snmp . get_value ( '1.3.6.1.4.1.4413.2.2.2.1.5.4.2.1.1.1.32' ) . to_s
124
+ output_data [ "Current Network Key" ] = current_key
125
125
126
126
if network_auth_mode == 6
127
127
get_radius_info ( snmp , output_data )
0 commit comments