@@ -107,7 +107,7 @@ def _create_command(self, target_ip: IPv4Address, command_name: str, community_s
107
107
),
108
108
ContextData (),
109
109
ObjectType (
110
- ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendStatus" , f'" { command_name } "' ),
110
+ ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendStatus" , command_name ),
111
111
"createAndWait" ,
112
112
),
113
113
lookupNames = True ,
@@ -143,11 +143,11 @@ def _set_command(
143
143
),
144
144
ContextData (),
145
145
ObjectType (
146
- ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendCommand" , f'" { command_name } "' ),
146
+ ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendCommand" , command_name ),
147
147
"/bin/sh" ,
148
148
),
149
149
ObjectType (
150
- ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendArgs" , f'" { command_name } "' ),
150
+ ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendArgs" , command_name ),
151
151
command ,
152
152
),
153
153
lookupNames = True ,
@@ -166,7 +166,7 @@ def _activate_command(self, target_ip: IPv4Address, command_name: str, community
166
166
),
167
167
ContextData (),
168
168
ObjectType (
169
- ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendStatus" , f'" { command_name } "' ),
169
+ ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendStatus" , command_name ),
170
170
"active" ,
171
171
),
172
172
)
@@ -198,10 +198,10 @@ def execute_command(self, target_ip: IPv4Address, command_name: str, community_s
198
198
),
199
199
ContextData (),
200
200
ObjectType (ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendNumEntries" , 0 )),
201
- ObjectType (ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendCommand" , f'" { command_name } "' )),
202
- ObjectType (ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendArgs" , f'" { command_name } "' )),
203
- ObjectType (ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendInput" , f'" { command_name } "' )),
204
- ObjectType (ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendResult" , f'" { command_name } "' )),
201
+ ObjectType (ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendCommand" , command_name )),
202
+ ObjectType (ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendArgs" , command_name )),
203
+ ObjectType (ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendInput" , command_name )),
204
+ ObjectType (ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendResult" , command_name )),
205
205
)
206
206
self ._dispatch (cmd )
207
207
@@ -226,7 +226,7 @@ def clear_command(self, target_ip: IPv4Address, command_name: str, community_str
226
226
),
227
227
ContextData (),
228
228
ObjectType (
229
- ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendStatus" , f'" { command_name } "' ),
229
+ ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendStatus" , command_name ),
230
230
"destroy" ,
231
231
),
232
232
)
@@ -244,7 +244,7 @@ def _get_rowstatus(
244
244
retries = self ._snmp_retries ,
245
245
),
246
246
ContextData (),
247
- ObjectType (ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendStatus" , f'" { command_name } "' )),
247
+ ObjectType (ObjectIdentity (SNMP_EXTEND_MIB , "nsExtendStatus" , command_name )),
248
248
)
249
249
result = self ._dispatch (cmd )
250
250
vars = [
0 commit comments