4.353 ent-snmp-host
Use this command to write an entry into the SNMP Host table to configure an SNMP northbound interface.
Parameters
- host (mandatory)
- Host name. This parameter specifies the logical name of the device associated with the specified IP address.
- ipaddr (mandatory)
- The IP address associated with the host name. This is a TCP/IP address expressed in standard dot notation.
- trapcomm (optional)
- The value used in the community name field when SNMP traps are
generated.
- Range:
- zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Any string up to 32 characters in length.
If the string contains characters other than alphanumeric characters, the entire string must be enclosed in double quotes (" ").
The string can be entered in upper and lower case; however, the system converts upper case alphabetic characters to lower case.
- Default:
- public
- version (mandatory) SNMP version
- This value is used to associate version with SNMP host.
- Range:
-
- snmpv2c: SNMP version 2
- snmpv3: SNMP version 3
- Default: snmpv2c
- username
(optional)
The value used in the username field when SNMPv3 traps are generated.
- Range:
- zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Any string up to 32 characters in length.
If the string contains characters other than alphanumeric characters, the entire string must be enclosed in double quotes (" ").
The string can be entered in upper and lower case; however, the system converts upper case alphabetic characters to lower case.
- Default:
- No change to the current value
- seclevel optional
-
This parameter specifies security level for SNMPv3 host.
- authprot: optional
-
This parameter specifies authentication protocol for SNMPv3 host.
- privprot: optional
-
This parameter specifies privacy protocol for SNMPv3 host.
Example
ent-snmp-host:host=snmpmgr:ipaddr=192.168.54.100
ent-snmp-host:host="linux-server":
ipaddr=10.25.60.99:hb=300:trapcomm="password"
Dependencies
An entry for the specified IPADDR cannot already exist.
An entry for the specified HOST cannot already exist.
A maximum of two SNMP Hosts can be configured.
The specified heartbeat value must be within the range for the HB parameter.
The SNMP feature must be enabled before an SNMP Host can be configured.
The specified PORT value must be within the allowed range.
A separate prompt appears for you to enter the Authentication and privacy password based on value of SECLEVEL that will be used with the SNMP authentication and privacy protocol. You must enter a password that is at least 8 and not more than 16 characters long. If you enter an invalid password (you press the Return key without entering a password, or you enter more than 16 characters), you must enter the entire command again to cause the password prompt to appear again. The password that you enter is not displayed as you enter it.
SNMPv3 mandatory parameters (USERNAME or SECLEVEL) are missing. AUTHPROT must be specified with “SECLEVEL=authpriv” or “SECLEVEL=authnopriv”. PRIVPROT must be specified with “SECLEVEL=authpriv”
USERNAME, SECLEVEL, AUTHPROT, PRIVPROT are not valid parameter for snmpv2c. AUTHPROT and PRIVPROT must not be specified with “SECLEVEL=noauthnopriv”. PRIVPROT must not be specified with “SECLEVEL=authnopriv”
An entry for the specified USERNAME is already exist.
Notes
None.
Output
ent-snmp-host:host=snmphost1:ipaddr=192.168.54.100
tekelecstp 12-06-13 10:31:11 EST 45.0.0-64.66.0
ent-snmp-host:host=snmphost1:ipaddr=192.168.54.100
Command entered at terminal #4.
SNMP HOST table is (1 of 2) 50% full
ENT-SNMP-HOST: MASP A-COMPLTD
;
ent-snmp-host:host="snmp-srvr":ipaddr=10.25.55.25:hb=300:trapcomm="passwd"
tekelecstp 12-06-13 10:33:31 EST 45.0.0-64.66.0
ent-snmp-host:host="snmp-srvr":ipaddr=10.25.55.25:hb=300:trapcomm="passwd"
Command entered at terminal #4
SNMP HOST table is (2 of 2) 100% full
ENT-SNMP-HOST: MASP A - COMPLTD
;
ent-snmp-host:host=snmphost1:ipaddr=10.75.136.129:version=snmpv3:seclevel=auth
priv:authprot=md5:privprot=des:username=pvtest
Enter Auth Password :
Enter Priv Password :
Command Accepted - Processing
e1121002 22-12-08 04:44:47 EST EAGLE 47.1.0.0.0-79.16.0
ent-snmp-host:host=snmphost1:ipaddr=10.75.136.129:version=snmpv3:seclevel=au
thpriv:authprot=md5:privprot=des:username=pvtest
Command entered at terminal #2.
;
e1121002 22-12-08 04:44:53 EST EAGLE 47.1.0.0.0-79.16.0
SNMP HOST table is (2 of 2 ) 100% full
ENT-SNMP-HOST: MASP B - COMPLTD