sshHostKeyGenAction
ECS4100-MIB ·
.1.3.6.1.4.1.259.10.1.46.1.17.6.24
Object
scalar r/w
Enumeration
This variable is for host key generating.
For the set behavior:
Set it to genRsaKey(2) to generate the RSA host key.
For the get behavior:
You will get genRsaKey(2) when the key gen action is in
progress. Otherwise, you will get noGen(1).
Context
- MIB
- ECS4100-MIB
- OID
.1.3.6.1.4.1.259.10.1.46.1.17.6.24- Type
- scalar
- Access
- readwrite
- Status
- current
- Parent
- sshMgt
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'ECS4100-MIB' -M '/opt/observium/mibs/edgecore:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ECS4100-MIB::sshHostKeyGenAction.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'ECS4100-MIB' -M '/opt/observium/mibs/edgecore:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'ECS4100-MIB::sshHostKeyGenAction'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | noGen |
2 | genRsaKey |