HP 3PAR StoreServ 7400 2-node HP 3PAR Command Line Interface Administrator& - Page 168

Viewing Registered Managers, Removing a Manager, Agent Community Strings, Testing SNMP Managers

Page 168 highlights

Viewing Registered Managers Use the HP 3PAR CLI command showsnmpmgr to see which managers are already registered with the SNMP agent. NOTE: If the manager that monitors the system has changed, remove the old manager and register the new one. Removing a Manager To remove a manager from the agent's list of registered managers, thus preventing that manager from receiving traps, use the removesnmpmgr command. If there is more than one manager running on the same server, you can distinguish between them by using the -p option followed by the port to which the manager is listening. Follow the command (and the option and its argument, if applicable) with the IP address of the manager's server. For more information about the removesnmpmgr command, see the HP 3PAR Command Line Interface Reference. Agent Community Strings In order for the SNMP Manager to communicate with the HP 3PAR SNMP agent, it must pass the agent the correct community string. To do this, the manager needs to know the agent community string. The system comes with the single default community string "public" with reading permissions for the agent. You can add read-only and write-only community strings, and you can change or remove any of the community strings. To see community strings that are currently available on the system, use the HP 3PAR CLI command showsnmppw. By default, this command shows the read/write community string. If the community string you are requesting does not exist, you will get an error message. To add or update a community string, use the setsnmppw command followed by the new community string. By default, this command changes the read/write community string. To remove a community string, use the removesnmppw command. Once the community string is removed, the manager can no longer send requests to the SNMP agent. By default, this command removes the read/write community string. For any of these three HP 3PAR CLI commands (showsnmppw, setsnmppw, and removesnmppw), you can follow the command with one or more of the following options to specify the community string to which the command applies: • -r for the read-only community string. • -w for the write-only community string. • -rw for the read/write community string. Testing SNMP Managers To send a test trap to all SNMP managers displayed with the showsnmpmgr command, issue the checksnmp command. The CLI displays the IP addresses of the tested mangers. For details about the test trap sent by the checksnmp command, see the HP 3PAR Command Line Interface Reference and the HP 3PAR CLI Help. Creating SNMPv3 Users To create SNMPv3 users you must have Super role user rights, or any role that has been granted the snmpuser_create right. The createsnmpuser command creates the SNMPv3 user secret key, which is used for generating authentication and privacy keys. The user name must be an existing HP 3PAR OS local user. 168 Using the HP 3PAR SNMP Infrastructure

  • 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
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204

Viewing Registered Managers
Use the HP 3PAR CLI command
showsnmpmgr
to see which managers are already registered
with the SNMP agent.
NOTE:
If the manager that monitors the system has changed, remove the old manager and
register the new one.
Removing a Manager
To remove a manager from the agent’s list of registered managers, thus preventing that manager
from receiving traps, use the
removesnmpmgr
command. If there is more than one manager
running on the same server, you can distinguish between them by using the
-p
option followed
by the port to which the manager is listening. Follow the command (and the option and its argument,
if applicable) with the IP address of the manager’s server. For more information about the
removesnmpmgr
command, see the
HP 3PAR Command Line Interface Reference
.
Agent Community Strings
In order for the SNMP Manager to communicate with the HP 3PAR SNMP agent, it must pass the
agent the correct community string. To do this, the manager needs to know the agent community
string. The system comes with the single default community string “
public
” with reading permissions
for the agent. You can add read-only and write-only community strings, and you can change or
remove any of the community strings.
To see community strings that are currently available on the system, use the HP 3PAR CLI command
showsnmppw
. By default, this command shows the read/write community string. If the community
string you are requesting does not exist, you will get an error message.
To add or update a community string, use the
setsnmppw
command followed by the new community
string. By default, this command changes the read/write community string.
To remove a community string, use the
removesnmppw
command. Once the community string is
removed, the manager can no longer send requests to the SNMP agent. By default, this command
removes the read/write community string.
For any of these three HP 3PAR CLI commands (
showsnmppw
,
setsnmppw
, and
removesnmppw
),
you can follow the command with one or more of the following options to specify the community
string to which the command applies:
-r
for the read-only community string.
-w
for the write-only community string.
-rw
for the read/write community string.
Testing SNMP Managers
To send a test trap to all SNMP managers displayed with the
showsnmpmgr
command, issue the
checksnmp
command. The CLI displays the IP addresses of the tested mangers.
For details about the test trap sent by the
checksnmp
command, see the
HP 3PAR Command Line
Interface Reference
and the HP 3PAR CLI Help.
Creating SNMPv3 Users
To create SNMPv3 users you must have Super role user rights, or any role that has been granted
the
snmpuser_create
right. The
createsnmpuser
command creates the SNMPv3 user secret
key, which is used for generating authentication and privacy keys. The user name must be an
existing HP 3PAR OS local user.
168
Using the HP 3PAR SNMP Infrastructure