Posts RSS Comments RSS 141 Posts and 34 Comments till now

Jscott2 updates

I finally updated the switch crawling code to retry on failures. The scripts used to email me with a few timeouts on occasion. It will now retry up to 3 times.

I also realized that the code was making a SNMP connection to the switch and fetching the in and out records for each port. This part gets looped over for every port on the switch. It would be much better to connect once, then loop over the ports and query the in and out records.

And the pair of scripts that do this (for octet and packet counts) could really be combined.

Comments are closed.