J'ai suivi la doc officielle VMware :
Configure vCenter Server Appliance for SNMP v3
J'ai remplacé les mots de passe et hashs par des noms entre < et >.
root@vcenter [ ~ ]# appliancesh
Password:
Connected to service
* List APIs: "help api list"
* List Plugins: "help pi list"
* Launch BASH: "shell"
Command> snmp.set --authentication SHA1
Command> snmp.set --privacy AES128
Command> snmp.hash --auth_hash <authpassphrase> --priv_hash <privpassphrase> --raw_secret true
Hash:
Auth_key: <authpassphrasehash>
Priv_key: <privpassphrasehash>
Command> snmp.set --users exp_supervision/<authpassphrasehash>/<privpassphrasehash>/priv
Command> snmp.enable
Command> snmp.get
Config:
Users:
1:
Username: exp_supervision
Sec_level: priv
Auth_key: <authpassphrasehash>
Priv_key: <privpassphrasehash>
Enable: True
Notraps: ''
Targets:
Privacy: AES128
Processlist: False
Loglevel: warning
Authentication: SHA1
Syscontact: ''
Syslocation: ''
Engineid: <engineid>
Port: 161
V3targets:
Remoteusers:
Communities: ''
Pid: 24793
Command> snmp.test
Results:
Message: Must first configure at least one v1|v2c|v3 trap target.
Success: False
Command>