r/learnpython • • Feb 29 '20

Actually used python today

I've been learning python for about a month now. I started with automate the boring stuff like so many others have. Since then I have made some small games to practice. I am currently working on a hangman game and needed a list of words to use. I found a list of words and copied the whole thing to a .text file but it came with extra stuff I didn't need. So instead of manually deleting everything I didn't need I made a python script to do it for me. GREATEST FEELING EVER.

393 Upvotes

63 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Feb 29 '20

You can get in to proactive incident management. I have a lot of experience with this. I use my scripts to scan for and remediate problems before the user sees them.

After a couple of years of proactive incident management, we brought incident reports down from ~160,000 tickets a year to ~70,000. Were still continually improving this program.

Do note, I am an engineer, not front line support. If you go this route, make sure your management backs you and is willing to elevate your position if you make things run smoother. Otherwise you may make yourself redundant.

1

u/[deleted] Mar 01 '20

Could you give me an example by chance? This sounds quite interesting.

1

u/[deleted] Mar 01 '20

We went after the biggest fish first. For example we poll printers and print server queues looking for issues. If the printer isn’t responding to print jobs, we issue a reboot to it. If that doesn’t clear, we kick a ticket off to desktop and have them stop by. If the printers hostname starts with KM, we issue a service request to Konica Minolta since it’s an MFD under contract. We purge print queues and restart print services nightly to keep things tidy. We have somewhere around 16,000 printers, so things can get hairy.

We ingest logs and SNMP from every computer, server, and network appliance. We look for common issues like packet loss, failed windows updates, TPM chip issues, bitlocker problems, BSOD, brute force attempts, account lockouts, VPN instability, POE failure, access point outages, saturated links, etc etc.

We have also created a self service portal that eats up a lot of the password reset calls. If a user is locked out, they can use their neighbors computer to navigate to the portal and reset. Users can put in other tickets here too. This also reduces call volume and frees up level 1’s to troubleshoot and triage as necessary.

We’ve automated as many things as we could before issuing a ticket to a human. A lot of the inbound calls are just human error or help with an excel formula now.