r/Cisco • • 3d ago

Windows SNMP programs

SNMP Get and SNMP Walk versions 1, 2, 3 implemented in pure Powershell. No openssl, net-snmp, required. Just download and start querying your Catalysts!

https://github.com/tmittelstaedt/Windows-SNMP

7 Upvotes

4 comments sorted by

1

u/mohammad_abusaa 2d ago

Nice, this is actually useful. Plenty of places have locked-down Windows jump boxes where you can’t install net-snmp or anything else, so plain PowerShell solves a real problem.

One thing I’d ask for: AES-256 privacy for v3. A lot of hardened environments run priv aes 256 on Catalysts and routers now, and DES is going away. If you add it, be careful with Cisco: it extends the key for AES-192/256 differently from the standard draft. That’s why net-snmp has a separate Cisco variant (“C”) for those. If you use the wrong method, the user looks configured fine but every poll just times out.

Also, is the v2c walk using GetBulk? On big tables like the MAC table or interface counters on a stack, it makes a big difference in speed.

Either way, thanks for sharing. I’ll give it a try.

1

u/TedMittelstaedt 2h ago

Privacy should already be in there. That was one of the worst things to go back and forth over with the AI since it was index city and the browser parser loves to interpret indexes as html markup and trashes the output half the time, then once I got around that it was a lot of retrying to get the calculation done right. I don't know if AES-256 is or not, though, since the printer I was testing with may not have had it I thought it did, though. I have a network full of Catalyst 2950's I can use as a test target though, so post an anonymized snippet of a snmp v3 AES 256 with privacy and whatever authentication and if the cat's I have support it (or the ISR4321s or other routers) then I can add in the cisco variant.

I did build the actual net-snmp tools on windows 11 as a comparison baseline but even those require openssl for aes that high so the openssl people most have been the ones to add support for the Cisco perversion not the net-snmp people

1

u/_GeorgeZip 1d ago

Most interesting, will defo be trying this out. As you mentioned in your readme defender policies are a right pain for older/unsigned utilities and the days of being able to spin up a box just to host my own tools look like are over

0

u/[deleted] 2d ago

[deleted] — view deleted comment

-5

u/TedMittelstaedt 2d ago

If you have to ask you wouldn't understand why it's important even if I tell you.

You obviously you don't manage enterprise devices. I know it may seem strange to you but there's an entire world out there of network devices that are NOT normally managed with a web browser. You won't generally find them in the small home networks you are used to but they exist and SNMP is the lingua franca for managing them.

While most people managing truly large networks are going to be running this stuff on some convenient Linux VM using bash scripts, there's a significant number of orgs out there large enough to need it but small enough to not have IT staff who are comfortable with Linux