# Configuring SNMP Location

You can configure the SNMP Location string using the below command:

#### Reference

<table data-header-hidden><thead><tr><th></th><th></th><th data-hidden></th></tr></thead><tbody><tr><td>Command</td><td>[no] snmp-server location &#x3C;location_name></td><td></td></tr><tr><td>Description</td><td>SNMP location configuration</td><td></td></tr><tr><td>Parameters</td><td>SNMP location</td><td></td></tr><tr><td>Mode</td><td>CONFIG</td><td></td></tr></tbody></table>

#### Example

```

pbnoscli# configure terminal
pbnoscli(config)# snmp-server 
  community             Community string authentication
  contact               Configure SNMP contact
  location              Configure SNMP location
  trap                  Trap configuration
  user                  SNMP user
pbnoscli(config)# snmp-server location 
  <loc_str>                
pbnoscli(config)# snmp-server location Location-1
pbnoscli(config)#

pbnoscli(config)# no snmp-server location           
pbnoscli(config)# 
```

You can verify the configuration by using the command(s) below:

```
pbnoscli# show snmp-location 
===================================================
Location     
===================================================
Location-1
pbnoscli# 
```

```
pbnoscli# show running-config 
configure terminal
!
interface mgmt
ip address 10.4.4.52/24 gateway 10.4.4.1
!
snmp-server location Location-1
!
pbnoscli# 
```
