while doing --channel send manage show raw1 all a n the all a taking as 2nd line so getting error

0 votes

 connected to server using SSH.client and  able to inject alarm using Channel.Send(‘command’) .

We need help for below commands--- what we are getting output from server --- we are assigning to the variable('+raw1+') to one attribute (RCA) –  raw1= OPERATION_CONTEXT .oc.CSCORE alarm_object

channel.send('manage show '+raw1+' all a'+"\n")

raw1 = .oc.CSCORE alarm_object 27731866

o/p---( 

manage show OPER .oc.CSCORE alarm_object 27731866 
TeMIP Framework (V8.3.0)

Using default ALL IDENTIFIERS

OPERATION_CONTEXT dev_ns:.oc.CSCORE alarm_object 27731866 
On director: dev_ns:.temip.TEDEV_director 
AT 2022-08-12-17:31:27.795 Identifiers

Examination of Attributes Shows:
                             Identifier = 27731866

[temipadm@vtemip1test STP]$  all a
bash: all: command not found...  

)

and we are using that variable to trigger another command— above one

But we are getting issue -à the command is braking.

But if we use hardcoded value instated of variable  that time it will work.----

channel.send('manage show OPERATION_CONTEXT .oc.CSCORE alarm_object 27731776 all a'+"\n")

i need this to be work-- channel.send('manage show '+raw1+' all a'+"\n")

Aug 12, 2022 in Python by Basavraj

edited Mar 4 17 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP