On Windows PC:
The Simple Network Management Protocol (SNMP) is an application-layer protocol. SNMP can help network administrators manage network performance, find and solve network problems, and plan for network growth more easily.
On Microsoft Windows, the SNMP service can be enabled and configured .When this is done, you will be allowed to retrieve information from the Microsoft Windows OS via SNMP. Proceed as follows:
- Install the SNMP service from the Add/Remove Programs -> Add/Remove Windows Components -> Management and Monitor Tools -> Details -> Simple Network Management Protocol.
- Once the service is installed, open the 'Services' panel and locate the 'SNMP Service'.
- Double click on the 'SNMP Service' to open the properties.
- Select the 'Security' tab.
- In the 'Accepted Community Names' list, add new communities, for example: 'Public' community with 'READ ONLY'rights.
- Still in the 'Security' tab, select the radio button 'Accept SNMP Packets from these hosts'.
- Click on the 'Add' button to add the GFI Network Server Monitor or GFI LANguard Network Security Scanner machine.
- Restart the 'SNMP Service'.
On Cisco Devices (routers, Switches, Access points):
Telnet <ip address>
User Access Verification
Password:<enter telnet password>
CiscoDevice>en
Password:<enter Enable Password>
CiscoDevice#config ter
Enter configuration commands, one per line. End
CiscoDevice(config)#snmp-server community ro <community string ro>
CiscoDevice(config)#snmp-server community rw <community string rw>
CiscoDevice(config)#end
User Access Verification
Password:<enter telnet password>
CiscoDevice>en
Password:<enter Enable Password>
CiscoDevice#config ter
Enter configuration commands, one per line. End
CiscoDevice(config)#snmp-server community ro <community string ro>
CiscoDevice(config)#snmp-server community rw <community string rw>
CiscoDevice(config)#end
SNMP configuration verification
CiscoDevice#sh running-config | i snmp
CiscoDevice#sh snmp
Chassis: FOC1107Y2BJ
Contact: ravindhar
Location: Chennai
1091999 SNMP packets input
0 Bad SNMP version errors
22 Unknown community name
0 Illegal operation for community name supplied
2 Encoding errors
6570917 Number of requested variables
288 Number of altered variables
23106 Get-request PDUs
1068559 Get-next PDUs
110 Set-request PDUs
1091975 SNMP packets output
0 Too big errors (Maximum packet size 1500)
14 No such name errors
2 Bad values errors
0 General errors
1091975 Response PDUs
0 Trap PDUs
SNMP global trap: enabled
CiscoDevice#sh running-config | i snmp
CiscoDevice#sh snmp
Chassis: FOC1107Y2BJ
Contact: ravindhar
Location: Chennai
1091999 SNMP packets input
0 Bad SNMP version errors
22 Unknown community name
0 Illegal operation for community name supplied
2 Encoding errors
6570917 Number of requested variables
288 Number of altered variables
23106 Get-request PDUs
1068559 Get-next PDUs
110 Set-request PDUs
1091975 SNMP packets output
0 Too big errors (Maximum packet size 1500)
14 No such name errors
2 Bad values errors
0 General errors
1091975 Response PDUs
0 Trap PDUs
SNMP global trap: enabled
SNMP logging: disabled
SNMP agent enabled
SNMP agent enabled
On HP Devices:
Follow the commands illustrated below to enable SNMP on HP devices.
HP ProCurve Switch 2512(config)# snmp-server
contact Name of the switch administrator.
location Description of the switch location.
community Add/delete SNMP community.
community Add/delete SNMP community.
host Define SNMP traps and their receivers.
enable Enable/disable authentication traps to be sent when a
management station attempts an unauthorized access.
HP ProCurve Switch 2512(config)# snmp-server community
ASCII-STR Enter an ASCII string for the 'community'
command/parameter.
HP ProCurve Switch 2512(config)# snmp-server community public
operator The community can access all except the CONFIG MIB.
manager The community can access all MIB objects.
restricted MIB variables cannot be set, only read.
unrestricted Any MIB variable that has read/write access can be set.
<cr>
HP ProCurve Switch 2512(config)# snmp-server community public manager
restricted MIB variables cannot be set, only read.
unrestricted Any MIB variable that has read/write access can be set.
<cr>
HP ProCurve Switch 2512(config)# snmp-server community public manager unrestricted
contact Name of the switch administrator.
location Description of the switch location.
community Add/delete SNMP community.
community Add/delete SNMP community.
host Define SNMP traps and their receivers.
enable Enable/disable authentication traps to be sent when a
management station attempts an unauthorized access.
HP ProCurve Switch 2512(config)# snmp-server community
ASCII-STR Enter an ASCII string for the 'community'
command/parameter.
HP ProCurve Switch 2512(config)# snmp-server community public
operator The community can access all except the CONFIG MIB.
manager The community can access all MIB objects.
restricted MIB variables cannot be set, only read.
unrestricted Any MIB variable that has read/write access can be set.
<cr>
HP ProCurve Switch 2512(config)# snmp-server community public manager
restricted MIB variables cannot be set, only read.
unrestricted Any MIB variable that has read/write access can be set.
<cr>
HP ProCurve Switch 2512(config)# snmp-server community public manager unrestricted
<cr>
HP ProCurve Switch 2512(config)# snmp-server
contact Name of the switch administrator.
location Description of the switch location.
community Add/delete SNMP community.
host Define SNMP traps and their receivers.
enable Enable/disable authentication traps to be sent when a
management station attempts an unauthorized access.
HP ProCurve Switch 2512(config)# snmp-server enable traps
HP ProCurve Switch 2512(config)# exit
HP ProCurve Switch 2512# exit
HP ProCurve Switch 2512> exit
Do you want to log out [y/n]? y
Do you want to save current configuration [y/n]?y
HP ProCurve Switch 2512(config)# snmp-server
contact Name of the switch administrator.
location Description of the switch location.
community Add/delete SNMP community.
host Define SNMP traps and their receivers.
enable Enable/disable authentication traps to be sent when a
management station attempts an unauthorized access.
HP ProCurve Switch 2512(config)# snmp-server enable traps
HP ProCurve Switch 2512(config)# exit
HP ProCurve Switch 2512# exit
HP ProCurve Switch 2512> exit
Do you want to log out [y/n]? y
Do you want to save current configuration [y/n]?y
To remove SNMP configuration, Just enter the above sequence with "no " as precedence to every command.
On Netgear Devices:
Follow these steps to configure SNMP on Netgear devices.
Step 1: access the device from http:// <ip address> the browser and enter the Admin credentials of the device.
Step 2: Go to Switch->Advanced->SNMP->Communities-> It will show the two Tables with add and delete options.
Step 3: Click on Add button for any of table depends on your need add the community string with management station as Your Agent or All.
On DLink:
Login to the DLink device using admin credentials via telnet and do follow the illustrated command to complete the SNMP configuration.
Step 1: DGS-3024:4#create snmp community public view ?
Command: create snmp community public view ?
Command: create snmp community public view ?
Next possible completions:
read_only read_write
read_only read_write
Step 2: DGS-3024:4#create snmp community <public> view read_only
Step 3: DGS-3024:4#create snmp community <private> view read_write
Step 4: DGS-3024:4#show snmp community
step 5: Command: show snmp community
step 5: Command: show snmp community
SNMP Community Table
Community Name View Name Access Right
-------------------------------- -------------------------------- ------------
private CommunityView read_write
public CommunityView read_only
Community Name View Name Access Right
-------------------------------- -------------------------------- ------------
private CommunityView read_write
public CommunityView read_only
Total Entries: 2
On 3Com Devices:
The 3Com devices can be configured SNMP either from Browser or from CLI, whichever is comfortable to you.
Via http login:
- Open Explorer, enter the device ip(3com) and login as Admin user.
- Select device view->Ststem->Management->Community Strings->Modify
- Enter the credentials and save them, with this the device will be accessible via SNMP from NMS System or SNMP manager.
- Open a Telnet terminal either using putty or windows command prompt and login to the device using admin credentials. Here are the steps to do.Login: admin
Password:
Menu options: -------3Com SuperStack 3 Switch 3824 24-port---------------------
bridge - Administer bridge-wide parameters
feature - Administer system features
gettingStarted - Basic device configuration
logout - Logout of the Command Line Interface
physicalInterface - Administer physical interfaces
protocol - Administer protocols
security - Administer security
system - Administer system-level functions
trafficManagement - Administer traffic management
Type ? for help.
--------------------------------3ComSwitch (1)--------------------------------
Select menu option: system
Menu options: -------3Com SuperStack 3 Switch 3824 24-port---------------------
backupConfig - Administer configuration backup
console - Administer console port
control - Administer system control
inventory - Stack information
management - Administer system management
summary - Display summary information
Type "quit" to return to previous menu or ? for help.
--------------------------------3ComSwitch (1)--------------------------------
Select menu option (system): management
Menu options: -------3Com SuperStack 3 Switch 3824 24-port---------------------
contact - Set the system contact
location - Set the system location
name - Set the system name
password - Set the system password
snmp - Administer SNMP
Type "quit" to return to previous menu or ? for help.
--------------------------------3ComSwitch (1)--------------------------------
Select menu option (system/management): snm
Menu options: -------3Com SuperStack 3 Switch 3824 24-port---------------------
community - Set the SNMP community string
linkTraps - Enable/disable link up/down traps
trap - Administer SNMP trap destinations
Type "quit" to return to previous menu or ? for help.
--------------------------------3ComSwitch (1)--------------------------------
Select menu option (system/management/snmp): com
Enter Read/Write community [private]: private
Enter Read Only community [public]: public
Select menu option (system/management/snmp):
On LinkSys:
- On Linksys devices, unlike IOS command line for configuring SNMP, you need to launch a brower and enter the device ip and login with your admin credentials. You will found a tab named SNMP.
- Under tab SNMP, select the communities, and enter new to add new SNMP credentials.
- With this you have configured the device to be managed via SNMP protocol.
No comments:
Post a Comment