03-02-2024, 06:03 PM
R1#sh run | inc snmp
mmi snmp-timeout 180
R1#
R1#
R1#
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#snmp-server community ccnp
R1(config)#
R1(config)#do sh snmp community
Community name: ILMI
Community Index: ILMI
Community SecurityName: ILMI
storage-type: read-only active
Community name: ccnp
Community Index: ccnp
Community SecurityName: ccnp
storage-type: nonvolatile active
Adding the command, 'snmp-server host 172.16.4.4 ccnp' has no impact on the output of 'show snmp community'. There is no way to tell from the question if the command is present.
R1(config)#snmp-server host 172.16.4.4 ccnp
R1(config)#
R1(config)#
R1(config)#do sh snmp community
Community name: ILMI
Community Index: ILMI
Community SecurityName: ILMI
storage-type: read-only active
Community name: ccnp
Community Index: ccnp
Community SecurityName: ccnp
storage-type: nonvolatile active
The command snmp-server community ccnp 4 is present. It requries the snmp server to only allow hosts permitted in access-list 4.
R1(config)#snmp-server community ccnp ?
<1-99> Std IP accesslist allowing access with this community string
<1300-1999> Expanded IP accesslist allowing access with this community
string
WORD Access-list name
ipv6 Specify IPv6 Named Access-List
ro Read-only access with this community string
rw Read-write access with this community string
view Restrict this community to a named MIB view
<cr>
R1(config)#snmp-server community ccnp 4
R1(config)#
R1(config)#do sh snmp community
Community name: ILMI
Community Index: ILMI
Community SecurityName: ILMI
storage-type: read-only active
Community name: ccnp
Community Index: ccnp
Community SecurityName: ccnp
storage-type: nonvolatile active access-list: 4
R1(config)#
mmi snmp-timeout 180
R1#
R1#
R1#
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#snmp-server community ccnp
R1(config)#
R1(config)#do sh snmp community
Community name: ILMI
Community Index: ILMI
Community SecurityName: ILMI
storage-type: read-only active
Community name: ccnp
Community Index: ccnp
Community SecurityName: ccnp
storage-type: nonvolatile active
Adding the command, 'snmp-server host 172.16.4.4 ccnp' has no impact on the output of 'show snmp community'. There is no way to tell from the question if the command is present.
R1(config)#snmp-server host 172.16.4.4 ccnp
R1(config)#
R1(config)#
R1(config)#do sh snmp community
Community name: ILMI
Community Index: ILMI
Community SecurityName: ILMI
storage-type: read-only active
Community name: ccnp
Community Index: ccnp
Community SecurityName: ccnp
storage-type: nonvolatile active
The command snmp-server community ccnp 4 is present. It requries the snmp server to only allow hosts permitted in access-list 4.
R1(config)#snmp-server community ccnp ?
<1-99> Std IP accesslist allowing access with this community string
<1300-1999> Expanded IP accesslist allowing access with this community
string
WORD Access-list name
ipv6 Specify IPv6 Named Access-List
ro Read-only access with this community string
rw Read-write access with this community string
view Restrict this community to a named MIB view
<cr>
R1(config)#snmp-server community ccnp 4
R1(config)#
R1(config)#do sh snmp community
Community name: ILMI
Community Index: ILMI
Community SecurityName: ILMI
storage-type: read-only active
Community name: ccnp
Community Index: ccnp
Community SecurityName: ccnp
storage-type: nonvolatile active access-list: 4
R1(config)#