Python Scripting For Storage Admin Part 8 Error Handling Try And Except Method

preview_player
Показать описание
Support Us By Shopping Your Own Favorite Products
#pythonscriptingforstorageadmin #errorhandlinginpython
Python: Programming Basics for Absolute Beginners
In this script we will see how we can implement error handling in python scripting by using try and except method. Sometime is the there is an error in script or in the remote device where you are trying to connect then the script will break and stop working. Error handling using try and except method deals with these kind of situation.

Below is the script which we have used error handling. Watch the video for full explanation and subscribe to the channel for more such video.

import paramiko
p = paramiko.SSHClient()
try:
opt ="".join(opt)
except Exception as error:
print(error)
Рекомендации по теме
Комментарии
Автор

Always waiting for your new videos on python scripting.Great work and good go.

kartikr.c
Автор

hi nice to hear to you again after long gap

jvprasad
Автор

hai sir
how to know the healthcheck of systems that means
storage
the system running or not
if storage s full then how to clear that

sandeepchittimalla
Автор

Authentication failed.
list index out of range


kindly help to solve error

yashsolanki
Автор

Hi,
Need your urgent help.
How to escape the special character. My password contain, .@/\
script fail because of these characters.

powerstar
Автор

Nice videos, however where is the storage thing? These are like general Python tutorials

bmkrissh
Автор

hi Bro, How to get 7mode volume utilization report with threshold (above 90%)
give me some Idea

linuxdcoredhat
Автор

Great work sir, please how do I hide the password from the output supply a placeholder for the password... Thank you

AdminAdmin-cofn