sshHostKeyGenAction

ECS4120-MIB · .1.3.6.1.4.1.259.10.1.45.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
ECS4120-MIB
OID
.1.3.6.1.4.1.259.10.1.45.1.17.6.24
Type
scalar
Access
readwrite
Status
current
Parent
sshMgt

Scalars have one instance, identified by the .0 suffix.

Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'ECS4120-MIB' -M '/opt/observium/mibs/edgecore:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ECS4120-MIB::sshHostKeyGenAction.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'ECS4120-MIB' -M '/opt/observium/mibs/edgecore:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'ECS4120-MIB::sshHostKeyGenAction'

Syntax

Enumeration

Values & Constraints

Enumerated Values
1noGen
2genRsaKey