Sony SNC-DF40N User Guide - Page 66

Using the SNMP, 1. Inquiry Commands, 2. Setting Commands - snc df40

Page 66 highlights

Others Using the SNMP This unit supports SNMP (Simple Network Management Protocol). You can read MIB-2 objects and write some MIB-2 objects using software such as SNMP manager software. This unit also supports the coldStart trap which occurs when the power is turned on or the unit restarts, and the Authentication failure trap which informs of an illegal access using SNMP. Using CGI commands, you can set community name and access limitation, reading/writing right, host to send traps, and some MIB-2 objects. To allow these settings, you need authentication by the camera administrator. 1. Inquiry Commands You can check the SNMP Agent settings using the following CGI commands. GET, POST http://ip_adr/snmpdconf/inquiry.cgi?inqjs=snmp (JavaScript parameter format) http://ip_adr/snmpdconf/inquiry.cgi?inq=snmp (standard format) With the above inquiry, you can obtain the following setting information. The following explains the setting information using the inqjs=snmp (JavaScript parameter) format. var sysDescr="SONY Network Camera SNC-DF40" ...1 var sysObjectID="1.3.6.1.4.1.122.8501" ...2 var sysLocation="" ...3 var sysContact="" ...4 var sysName="" ...5 var snmpEnableAuthenTraps="1" ...6 var community="public,0.0.0.0,read,1" ...7 var community="private,192.168.0.101,write,2" ...8 var trap="public,192.168.0.101.1" ...9 1 describes the case of "mib-2.system. sysDescr.0". You cannot change this parameter. 2 describes the case of "mib-2.system. sysObjectID.0". You cannot change this parameter. 3 describes the case of "mib-2.system. sysLocation.0". This field is used to describe information on the location of this camera. Nothing is set at the factory. 4 describes the case of "mib-2.system. sysContact.0". This field is used to describe the information on administrator of this camera. Nothing is set at the factory. 5 describes the case of "mib-2.system. sysName.0". This field is used to describe administration node of this camera. Nothing is set at the factory. 6 describes the case of "mib-2.snmpEnable AuthenTraps.0". This example shows when "1" (enable) is set. With this setting, a trap occurs when there is an Authentication failure. When "2" (disable) is set, no Authentication failure trap occurs. 7 describes the community name and the reading/ writing attributes. This example shows the identification number "ID=1", the community name public, and enables read from any IP address (0.0.0.0). 8 describes the community name and the reading/ writing attributes, similarly to 7. This example shows the identification number ID=2, the community name "private", and enables "read/ write" by the SNMP request packet from the host "192.168.0.101". 9 describes the host name to send a trap. This example shows the identification number "ID=1", the community name "public", and enables sending of traps to the host having the IP address "192.168.0.101". 2. Setting Commands The unit supports the following setting commands of SNMP. GET, POST http://ip_adr/snmpdconf/snmpdconf.cgi? =&=...&... First, perform the settings of the following parameters. 1) sysLocation= Set the case of "mib-2.system.sysLocation.0" in the position. The maximum length of is 255 characters. 2) sysContact= Set the case of "mib-2.system.sysContact.0" in the position. The maximum length of is 255 characters. 66 Using the SNMP

  • 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

Others
Using the SNMP
66
Using the SNMP
This unit supports SNMP (Simple Network
Management Protocol).
You can read MIB-2 objects
and write some MIB-2 objects using software such as
SNMP manager software.
This unit also supports the
coldStart trap which occurs when the power is turned on
or the unit restarts, and the Authentication failure trap
which informs of an illegal access using SNMP.
Using CGI commands, you can set community name
and access limitation, reading/writing right, host to send
traps, and some MIB-2 objects.
To allow these settings,
you need authentication by the camera administrator.
1.
Inquiry Commands
You can check the SNMP Agent settings using the
following CGI commands.
<Method>
GET, POST
<Command>
http://ip_adr/snmpdconf/inquiry.cgi?inqjs=snmp
(JavaScript parameter format)
http://ip_adr/snmpdconf/inquiry.cgi?inq=snmp
(standard format)
With the above inquiry, you can obtain the following
setting information.
The following explains the setting
information using the inqjs=snmp (JavaScript
parameter) format.
var sysDescr=“SONY Network Camera SNC-DF40”
...
1
var sysObjectID=“1.3.6.1.4.1.122.8501”
...
2
var sysLocation=“”
...
3
var sysContact=“”
...
4
var sysName=“”
...
5
var snmpEnableAuthenTraps=“1”
...
6
var community=“public,0.0.0.0,read,1”
...
7
var community=“private,192.168.0.101,write,2”
...
8
var trap=“public,192.168.0.101.1”
...
9
1
describes the case of “mib-2.system. sysDescr.0”.
You cannot change this parameter.
2
describes the case of “mib-2.system.
sysObjectID.0”.
You cannot change this parameter.
3
describes the case of “mib-2.system.
sysLocation.0”.
This field is used to describe
information on the location of this camera.
Nothing
is set at the factory.
4
describes the case of “mib-2.system. sysContact.0”.
This field is used to describe the information on
administrator of this camera.
Nothing is set at the
factory.
5
describes the case of “mib-2.system. sysName.0”.
This field is used to describe administration node of
this camera.
Nothing is set at the factory.
6
describes the case of “mib-2.snmpEnable
AuthenTraps.0”.
This example shows when “1”
(enable) is set.
With this setting, a trap occurs when
there is an Authentication failure.
When “2”
(disable) is set, no Authentication failure trap
occurs.
7
describes the community name and the reading/
writing attributes.
This example shows the
identification number “ID=1”, the community
name public, and
enables read from any IP address
(0.0.0.0).
8
describes the community name and the reading/
writing attributes, similarly to
7
.
This example
shows the identification number ID=2, the
community name “private”, and enables “read/
write” by the SNMP request packet from the host
“192.168.0.101”.
9
describes the host name to send a trap.
This
example shows the identification number “ID=1”,
the community name “public”, and enables sending
of traps to the host having the IP address
“192.168.0.101”.
2.
Setting Commands
The unit supports the following setting commands of
SNMP.
<Method>
GET, POST
<Command>
http://ip_adr/snmpdconf/snmpdconf.cgi?
<parameter>=<value>&<parameter>=...&...
First, perform the settings of the following parameters.
1)
sysLocation=<string>
Set the case of “mib-2.system.sysLocation.0” in the
<string> position.
The maximum length of
<string> is 255 characters.
2)
sysContact=<string>
Set the case of “mib-2.system.sysContact.0” in the
<string> position.
The maximum length of
<string> is 255 characters.