HP 6125XLG R2306-HP 6125XLG Blade Switch Network Management and Monitoring Con - Page 75

Configuring SNMPv1 or SNMPv2c basic parameters

Page 75 highlights

Configuring SNMPv1 or SNMPv2c basic parameters SNMPv1 and SNMPv2c settings are supported only in non-FIPS mode. To configure SNMPv1 or SNMPv2c basic parameters: Step 1. Enter system view. Command system-view Remarks N/A 2. (Optional.) Enable the SNMP agent. snmp-agent By default, the SNMP agent is disabled. The SNMP agent is enabled when you perform any command that begins with snmp-agent except for the snmp-agent calculate-password command. 3. (Optional.) Configure the system contact. snmp-agent sys-info contact sys-contact By default, no system contact is configured. 4. (Optional.) Configure the system location. snmp-agent sys-info location sys-location By default, no system location is configured. 5. Enable SNMPv1 or SNMPv2c. snmp-agent sys-info version { all | { v1 | v2c | v3 } * } If the device starts up with the initial settings (or empty configuration), SNMPv3 is enabled by default. If the device starts up with the default configuration file (or factory defaults), SNMPv1, SNMPv2c, and SNMPv3 are enabled by default. For more information about the startup configuration, see Fundamentals Configuration Guide. 6. (Optional.) Change the local engine ID. snmp-agent local-engineid engineid By default, the local engine ID is the company ID plus the device ID. 7. (Optional.) Create or update a MIB view. snmp-agent mib-view { excluded | included } view-name oid-tree [ mask mask-value ] By default, the MIB view ViewDefault is predefined. In this view, all the MIB objects in the iso subtree but the snmpUsmMIB, snmpVacmMIB, and snmpModules.18 subtrees are accessible. Each view-name oid-tree pair represents a view record. If you specify the same record with different MIB sub-tree masks multiple times, the most recent configuration takes effect. Except for the four sub-trees in the default MIB view, you can create up to 16 unique MIB view records. 69

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148

69
Configuring SNMPv1 or SNMPv2c basic parameters
SNMPv1 and SNMPv2c settings are supported only in non-FIPS mode.
To configure SNMPv1 or SNMPv2c basic parameters:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
(Optional.) Enable the
SNMP agent.
snmp-agent
By default, the SNMP agent is
disabled.
The SNMP agent is enabled when
you perform any command that
begins with
snmp-agent
except for
the
snmp-agent
calculate-password
command.
3.
(Optional.) Configure
the system contact.
snmp-agent sys-info
contact
sys-contact
By default, no system contact is
configured.
4.
(Optional.) Configure
the system location.
snmp-agent sys-info
location
sys-location
By default, no system location is
configured.
5.
Enable SNMPv1 or
SNMPv2c.
snmp-agent sys-info
version
{
all
| {
v1
|
v2c
|
v3
}
*
}
If the device starts up with the initial
settings (or empty configuration),
SNMPv3 is enabled by default.
If the device starts up with the
default configuration file (or
factory defaults), SNMPv1,
SNMPv2c, and SNMPv3 are
enabled by default.
For more information about the
startup configuration, see
Fundamentals Configuration
Guide
.
6.
(Optional.) Change
the local engine ID.
snmp-agent local-engineid
engineid
By default, the local engine ID is
the company ID plus the device ID.
7.
(Optional.) Create or
update a MIB view.
snmp-agent mib-view
{
excluded
|
included
}
view
-
name
oid
-
tree
[
mask
mask-value
]
By default, the MIB view
ViewDefault
is predefined. In this
view, all the MIB objects in the
iso
subtree but the
snmpUsmMIB
,
snmpVacmMIB
, and
snmpModules.18
subtrees are
accessible.
Each
view-name oid-tree
pair
represents a view record. If you
specify the same record with
different MIB sub-tree masks
multiple times, the most recent
configuration takes effect. Except
for the four sub-trees in the default
MIB view, you can create up to 16
unique MIB view records.