Follow

SNMP commands allow you to configure an SNMP trap for the InfiniBox events.


config.notifications.snmp.define 

ROLE: Admin 

Description

Create a new SNMP notification target.

Define an SNMP trap to which the InfiniBox sends events. State the name and host and then select the version of the SNMP protocol. 

Syntaxconfig.notifications.snmp.define name=NAME host=HOSTNAME version=SNMPPROTOCOL [port=PORT] [community=STR] [engine_id=SNMPENGINE] [username=STR] [security=SNMPSECURITY] [password=STR] [auth_type=SNMPAUTHPROTOCOL] [priv_key=STR] [encryption=SNMPENCRYPTION] 
Argumentspriv_key Any sequence of characters 
auth_type MD5 or SHA 
password Any sequence of characters 
security NoAuthNoPriv, AuthNoPriv or AuthPriv 
username Any sequence of characters 
engine_id Engine should be a 5-byte value represented in 10 hex characters preceded with '0x', e.g. 0xAB4F398C43 
community Any sequence of characters 
portAn integer number between 1 and 65535 (inclusive)
version1, 2c or 3
hostA valid hostname or IPv4 address
name A maximum of 65 Latin characters, numbers, spaces, and the following symbols: "^&'@()[]$=!-#{}%.+~_" (excluding quotation marks). Leading and trailing whitespace characters are stripped.
encryptionAES or DES
ExampleThe following example describes how to set an SNMP target for SNMP versions 1 and 2c. For these SNMP versions you need to define a community.
config.notifications.snmp.define name=snmp-v1-dest host=snmp version=1 community=infinidat
SNMP notification target snmp-v1-dest created 
ExampleThe following example describes how to set an SNMP target for SNMP version 3. For this SNMP version you need to define an SNMP Engine ID and a user name. You also need to select the user-based security model among authentication and privacy, authentication without privacy and no authentication and no privacy. Optionally, you may set the authentication type, and whether to encrypt the events and a private key. 
config.notifications.snmp.define name=snmp-v3-dest host=snmp version=3 engine_id=1 username=user1 security=NoAuthNoPriv 
SNMP notification target snmp-v3-dest created 
ExampleIn this SNMP version 3 example, the messages are authenticated and not encrypted. 
config.notifications.snmp.define name=snmp-v3-dest host=snmp version=3 engine_id=1 username=user1 security=AuthPriv password=123456 auth_type=SHA priv_key=privatekey encryption=DES 
SNMP notification target snmp-v3-dest created 
ExampleIn this SNMP version 3 example, the messages are both authenticated and encrypted.
config.notifications.snmp.define name=snmp-v3-authpriv host=snmp version=3 engine_id=1 username=user1 security=AuthPriv password=123456 auth_type=SHA priv_key=privatekey encryption=DES
SNMP notification target snmp-v3-dest created



config.notifications.snmp.modify 

ROLE: Admin 

Description

Modify SNMP notification target.

Modify some of the SNMP definitions.

Syntaxconfig.notifications.snmp.modify snmp=SNMPTARGET [host=HOSTNAME] [port=PORT] [community=STR] [engine_id=SNMPENGINE] [username=STR] [security=SNMPSECURITY] [password=STR] [auth_type=SNMPAUTHPROTOCOL] [priv_key=STR] [encryption=SNMPENCRYPTION] 
Argumentscommunity Any sequence of characters 
engine_id Engine should be a 5-byte value represented in 10 hex characters preceded with '0x', e.g. 0xAB4F398C43  
port An integer number between 1 and 65535 (inclusive) 
host A valid hostname or IPv4 address 
snmp Name of an existing snmp notification target 
username Any sequence of characters 
security NoAuthNoPriv, AuthNoPriv or AuthPriv
password Any sequence of characters 
auth_typeMD5 or SHA
priv_key Any sequence of characters
encryptionAES or DES
Exampleconfig.notifications.snmp.define name=NAME host=HOSTNAME version=SNMPPROTOCOL [port=PORT] [community=STR] 
SNMP notification target snmp1 updated 



config.notifications.snmp.query  

ROLE: All Roles 

Description

List existing SNMP notification targets. 

Syntaxconfig.notifications.snmp.query [snmp=SNMPTARGET] 
Argumentssnmp Name of an existing snmp notification target 
Example
config.notifications.snmp.query [name=SNMPTARGET] 

NAME   HOST  PORT VERSION  COMMUNITY  ENGINE ID  USERNAME SECURITY
snmpv1 snmp  25   SNMPv1   infinidat  -          -        -  
snmpv2 snmp  25   SNMPv2c  infinidat  -          -        - 
snmpv3 snmp  25   SNMPv3   -          1          user1    NoAuthNoPriv



config.notifications.snmp.remove 

ROLE: Admin

Description

Delete SNMP notification target. 

Syntaxconfig.notifications.snmp.remove snmp=SNMPTARGET 
Argumentssnmp Name of an existing snmp notification target 
Example
config.notifications.snmp.remove name=SNMPTARGET

SNMP notification target snmp1 deleted



config.notifications.snmp.rename 

ROLE: Admin

Description

Rename SNMP notification target. 

Syntaxconfig.notifications.snmp.rename snmp=SNMPTARGET new_name=NAME 
Argumentsnew_nameA maximum of 65 Latin characters, numbers, spaces, and the following symbols: "^&'@()[]$=!-#{}%.+~_" (excluding quotation marks). Leading and trailing whitespace characters are stripped.
snmp Name of an existing snmp notification target 
Example
config.notifications.snmp.rename name=SNMPTARGET new_name=NAME 

SNMP notification target snmp1 renamed to snmp2 



config.notifications.snmp.test 

ROLE: Admin

Description

Test SNMP notification target. 

Syntaxconfig.notifications.snmp.test snmp=SNMPTARGET 
Argumentssnmp Name of an existing snmp notification target 
Example
config.notifications.snmp.test name=SNMPTARGET 

SNMP notification target snmp1 tested successfully 

Was this article helpful?
0 out of 0 found this helpful

0 out of 0 found this helpful

Last edited: 2022-08-06 08:34:16 UTC

Comments