Using SNMP version 3, I am creating a user. Right now, I have it set up where I clone a user and that works just fine. However, I need to change the new user's authKey. How can I do this? I know the oid for authKeyChange, however, I don't know how to generate the new key. How do I generate that key? Can it be done using SNMPSharpNet? If there is an easier way to do this while I'm creating the user, I can do that as well. ANY way to change the authKey (and privKey, but one step at a time) is much appreciated. I'm using VB.net if it means anything.
1
There are 1 answers
Related Questions in SNMP
- calculating availability of node using SysUpTime.0 variable collcted in prometheus and exposing to grafana
- pysnmp-lextudio using next() with the getCmd() generator leads to TypeError: 'tuple' object is not an iterator
- Perl / Undefined value as a HASH reference when running SNMP queries
- How do I stop my snmp4j USM users from overwrighting at runtime?
- IPv6 send is not working in pysnmp when snmpwalk is being run through IPv6 from external servers
- snmp v3 with snmp4j unable to authenticate
- Run a shell command from an web excel dropdown
- snmp4j agent responds to snmpget requests but fails to respond to snmpwalk request
- Crashing after receiving SNMP-response with PySNMP library
- Snmp4j agent table, oid in the wrong order
- Docker issue: SNMP Listener doesn't work only when it has been deployed from docker: Permission Denied
- How do I get multiple OID values in PySNMP?
- Grafana Mimir: Configuration & data source
- Grafana Mimir - SNMP data source
- Snmp_ex2_simple_standard_test throws an error “failed retrieving agent data”
Related Questions in SNMPSHARPNET
- Cannot receive SNMP trap on Windows 11
- In c# I am doing a development with the SNMP protocol. I am trying to get the header of a table
- SnmpSharpNet and Get with a single wrong OID in a list
- SNMP GET snmpexception when response in V1 has trailing data bytes when using SharpSnmp
- snmp trap listener no message receiving
- SnmpSharpNet.SnmpException: 'Request has reached maximum retries.'
- Snmp community indexing string with snmpsharpnet library
- How to check if ObjectIdentifier is root of another ObjectIdentifier? (SnmpSharpNet)
- SNMP How can I add additional OID to request?
- maximum try when i need usign snmp request
- SNMPsharpnet SnmpNetworkException: 'Network error: connection reset by peer.'
- C# monitor SNMP timeticks from multiple IP addresses
- Change authKey of a user
- SnmpSharpNet Add User (SNMPv3)
- Configure an Access point using SNMP
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
So I've figured out how to do this. It's a bit of a complex process. I followed this document, which is rfc2574. Do a ctrl+F for "keyChange ::=" and you'll find the paragraph walking you through the algorithm to generate the keyChange value. The following code has worked reliably to generate the keyChange value. All you have to do from this point is push the keyChange value to the usmAuthKeyChange OID. If you are changing the privacy password, you push the keyChange value to the usmPrivKeyChange OID. I'm ashamed to say that due to the time crunch, I did not have time to make this work completely, so when using SHA, I had to code an entirely new method that did almost the exact same thing. Again, I'm ashamed to post it, but I know how much I was banging my head against a wall, and if someone comes here later and sees this, I would like them to know what to do without going through the struggle.
Here is all of the code you need using VB.Net and the SNMPSharpNet library:
Again, I am oh so well aware this code is hideous, but it works, and that is all I needed in the meantime. I understand this is technical debt and not the way I should code, but it's here and I hope you can get some use out of it.
If this doesn't work, don't forget to go to frc2574 and look at the algorithm.