Configuring A/V Services Using SNMP
SNMP Syntax for Setting Up Streams
Makito
X User’s Guide, v2.2, Issue 02
246
value will be set to the first available Stream ID (>=1) on
createAndGo
or when set to
active after
createAndWait
:
snmpset -v2c -c admin localhost haiAvtStreamAddr.0 d 198.51.100.106
haiAvtStreamPort.0 u 2000 haiAvtStreamRowStatus.0 i createAndGo
The example below shows the same command, using the prefix (-IS) and suffix (-Is)
options to remove repetition:
snmpset -v2c -c admin –IS haiAvtStream –Is .0 localhost Addr d 198.51.100.106
Port u 2000 RowStatus i createAndGo
To retrieve the Stream ID of the stream just created, the
haiAvtStreamInverseTable
is
used:
snmpget -v2c -c admin localhost
haiAvtStreamInverseID.ipv4.4.198.51.100.106.2000
HAI-AVT-STREAM-MIB::haiAvtStreamInverseID.ipv4.”198.51.100.106”.2000 =
HaiAvtStreamID: 5
To create a Stream with a known ID, the
haiAvtStreamNewID.0
object reports the next
available Stream ID. In the example below, the Transport Stream Program number is set to
7
and the video encoder
1
is selected for the video content. Note that
createAndWait
is
used so the program and content table can be set after stream creation.
snmpget -v2c -c admin localhost haiAvtStreamNewID.0
HAI-AVT-STREAM-MIB::haiAvtStreamNewID.0 = HaiAvtStreamID: 5
snmpset -v2c -c admin –IS haiAvtStream –Is .5 localhost Addr d
198.51.100.106
Port u 2000 Encapsulation i tsUdp RowStatus i createAndWait
snmpset -v2c -c admin –IS haiAvtStream localhost
PgmNumber.5.1 i 7 PgmNbContents.5.1 i 2
ContentType.5.1.1 i video ContentToolID.5.1.1 i 1
ContentType.5.1.2 i audio ContentToolID.5.1.2 i 0
snmpset -v2c -c admin localhost haiAvtStreamRowStatus.5 i active