[huawei]system-view
[huawei]interface Vlanif 1
[huawei]ip address 169.254.1.5 16
#Enable http & https
[huawei]system-view
[huawei]http server load s5700si-v200r003c00.001.web.7z
[huawei]http secure-server enable
[huawei]http server enable
[huawei]stelnet server enable
[huawei]user-interface vty 0 4
[huawei]authentication-mode aaa
[huawei]protocol inbound ssh
#Add user and password for telnet
[huawei]aaa
[huawei-aaa]local-user admin password cipher password123
[huawei-aaa]local-user admin privilege level 15
[huawei-aaa]quit
#add service-type for user
[huawei]ssh user admin authentication-type password
[huawei]ssh user admin service-type all
[huawei]quit
<huawei>save
--------------------------------------------------------------------------
Reset the original default factory settings
#<Quidway>reset saved-configuration
The configuration will be erased to reconfigure. Continue? [Y/N]:y
#<Quidway>reboot
The configuration will be erased to reconfigure. Continue? [Y/N]:y
#<Quidway>reboot
Warning: All the configuration will be saved to the configuration file for the n ext startup:, Continue?[Y/N]:n
At this time need choose n, if choose y the former configuration will save, restart is still the original configuration.
At this time need choose n, if choose y the former configuration will save, restart is still the original configuration.
Turn off and Turn on switch again.
-----------------------------------------------------------------------------
Set SNMP Community Name and password-go to configure mode
<huawei> system-view
[huawei]snmp-agent
#set community name public (encrypt name when display current configuration)
[huawei]snmp-agent community read cipher public
#set community version( now is support all version)
[huawei]snmp-agent sys-info version all =>if you want to define only on version,just replace all to v3,v1 or v2c
#configure a destination IPv4 address for the traps and error codes sent from the device and encrypt password cipher
[huawei]snmp-agent target-host trap address udp-domain 10.105.9.28 udp-port 161 params securityname cipher public
#enable snmp trap
[huawei]snmp-agent trap enable
quit and save.
#verify configuration:
# View traps output to the NMS station by the SNMP agent.
<huawei> display snmp-agent target-host
#View SNMP trap version
<huawei> display snmp-agent system-info
-------------------------------------------------------------------
Configure send log to linux Server
1. enable command in huawei switch
<Switch>system-view
[Switch]info-center enable
[Switch]info-center loghost 203.217.168.48 facility local7 language English log-counter enable
[Switch]undo info-center source default channel loghost
2. On the linux side you have to have syslog (or syslog-ng if you want)
configuration should be similar to the following:
# mkdir /var/log/Switch(alternate accordingly on your system)
# touch /var/log/Switch/information
# Switch configuration messages
local7.info /var/log/Switch/information
– restart your syslog daemon
=======================================
More related:
-http://huaweioverview.blog.fc2.com/blog-entry-11.html
-http://huaweiswitchesrouters.blogspot.com/2013/11/how-to-configure-basic-snmpv3-functions.html
-http://huaweis3700.weebly.com/blog/huawei-s5700-snmp-configuration
-http://www.kuncar.net/blog/huawei-equipment-and-syslog-daemon/2008/