0% found this document useful (0 votes)
74 views

Chapter 5 SNMP Command

The document discusses SNMP (Simple Network Management Protocol) and provides examples of GetRequest and GetNextRequest commands used to retrieve information from an IP address table with two index columns - ipAdEntIfIndex and ipAdEntAddr. The GetRequest and GetNextRequest commands retrieve specific attribute values from the table based on the index values.

Uploaded by

raman68
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views

Chapter 5 SNMP Command

The document discusses SNMP (Simple Network Management Protocol) and provides examples of GetRequest and GetNextRequest commands used to retrieve information from an IP address table with two index columns - ipAdEntIfIndex and ipAdEntAddr. The GetRequest and GetNextRequest commands retrieve specific attribute values from the table based on the index values.

Uploaded by

raman68
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

BCN3023

NETWORK MANAGEMENT
CHAPTER 5
Simple Network Management Protocol
(SNMP) – Command
GetRequest command

Following is a table for ipAddressTable (1.3.6.1.2.1.4.20)


ipAddrEntry ( 1.3.6.1.2.1.4.20.1)
SNMP
Index column is ipAdEntAddr
command

ipAdEntAddr ipAdEn IpAdEntNetMask ipAdEntBc ipAdEntReas


tIfIndex astAddr mMaxSize
(1) (2) (3) (4) (5)
123.45.1.2 1 255.255.255.0 0 2000
123.45.3.4 3 255.255.0.0 1 4000
165.8.9.4 2 255.255.255.252 1 3000
7.96.8.130 4 255.255.255.192 0 3500
GetRequest command

1. What is the GetResponse instance/value for the command:


(a) GetRequest(1.3.6.1.2.1.4.20.1.1. 7.96.8.130)
GetResponse(1.3.6.1.2.1.4.20.1.1. 7.96.8.130 = “7.96.8.130”) OBJECT ID
(b)GetRequest(1.3.6.1.2.1.4.20.1.5. 123.45.3.4)
GetResponse(1.3.6.1.2.1.4.20.1.5. 123.45.3.4 =“4000”)
(c)GetRequest(ipAdEntBcastAddr. 165.8.9.4)
GetResponse(ipAdEntBcastAddr. 165.8.9.4 =“1”)
(d)GetRequest(IpAdEntNetMask. 123.45.1.2) OBJECT NAME
GetResponse(IpAdEntNetMask. 123.45.1.2 =“255.255.255.0”)
(e) GetRequest(1.3.6.1.2.1.4.20)
GetResponse(1.3.6.1.2.1.4.20= invalid / Null)
(f) GetRequest(1.3.6.1.2.1.4.20.1)
GetResponse(1.3.6.1.2.1.4.20.1= invalid / Null)
GetRequest command

• 1. Rewrite the command (a) and (b) using object name


a)GetRequest(1.3.6.1.2.1.4.20.1.1. 7.96.8.130)
b)GetRequest(1.3.6.1.2.1.4.20.1.5. 123.45.3.4)

• 2. Rewrite the command (c) and (d) using object ID


c)GetRequest(ipAdEntBcastAddr. 165.8.9.4)
d)GetRequest(IpAdEntNetMask. 123.45.1.2)
GetRequest command

Following is a table for ipAddressTable (1.3.6.1.2.1.4.20)


ipAddrEntry (1.3.6.1.2.1.4.20.1)
index column is ipAdEntAddr
ipAdEntAddr ipAdEntIfIndex IpAdEntNetMask IpAdEntBcastAdd IpAdEntReasmMaxSiz
(2) (3) r e
(1)
(4) (5)
172.16.1.2 3 255.255.0.0 1 1500

172.16.2.3 4 255.255.255.0 0 5500


10.10.1.3 1 255.255.255.252 0 12000
192.168.9.5 2 255.255.255.192 0 10000
GetRequest command

1. Find the response value for the following request:

 GetRequest ( 1.3.6.1.2.1.4.20.1.2.192.168.9.5)
GetResponse ( 1.3.6.1.2.1.4.20.1.2.192.168.9.5 = “2”)

 GetRequest ( 1.3.6.1.2.1.4.20.1.1.172.16.2.3)
GetResponse ( 1.3.6.1.2.1.4.20.1.1.172.16.2.3= “172.16.2.3 ”)

 GetRequest ( ipAdEntBcastAddr.192.168.9.5) -> object name


 GetRequest ( 1.3.6.1.2.1.4.20.1.4.192.168.9.5) -> object id
GetResponse (ipAdEntBcastAddr.192.168.9.5 = “0”)
GetRequest command

2. Write the request message for the following response:

 GetResponse ( “4”)
 Get Request (1.3.6.1.2.1.4.20.1.2.172.16.2.3)
 Get Request (ipAdEntIfIndex.172.16.2.3)
 GetNextRequest (1.3.6.1.2.1.4.20.1.2.172.161.1.2)

 GetResponse ( “0”)
 Get Request (1.3.6.1.2.1.4.20.1.4. 172.16.2.3) or
 Get Request (1.3.6.1.2.1.4.20.1.4. 10.10.1.3) or
 Get Request (1.3.6.1.2.1.4.20.1.4. 192.168.9.5)

3. Get Request (1.3.6.1.2.1.4.20)= NULL / invalid command


GetNextRequest Command
Following is a table for ipAddressTable (1.3.6.1.2.1.4.20)
ipAddrEntry ( 1.3.6.1.2.1.4.20.1)
Index column is ipAdEntAddr
ipAdEntAddr ipAdEn IpAdEntNetMask ipAdEntBca ipAdEntReas
tIfIndex stAddr mMaxSize
(1) (2) (3) (4) (5)
123.45.1.2 1 255.255.255.0 0 2000
123.45.3.4 3 255.255.0.0 1 4000
165.8.9.4 2 255.255.255.252 1 3000
7.96.8.130 4 255.255.255.192 0 3500

1. Rearrange the table based on index column in ascending order


1. Rearrange the table based on index column in
ascending order

ipAdEntAddr ipAdEn IpAdEntNetMask ipAdEntBca ipAdEntReas


tIfIndex stAddr mMaxSize
Index (1) (2) (3) (4) (5)
column 7.96.8.130 4 255.255.255.192 0 3500
123.45.1.2 1 255.255.255.0 0 2000
123.45.3.4 3 255.255.0.0 1 4000
165.8.9.4 2 255.255.255.252 1 3000
column
What is the GetResponse instance/value for the command:
(a) GetNextRequest(1.3.6.1.2.1.4.20.1.2.7.96.8.130)
GetResponse(1.3.6.1.2.1.4.20.1.1. 7.96.8.130 = “1”)
GetNextRequest command

1. What is the GetResponse instance/value for the command:


(a)GetNextRequest(1.3.6.1.2.1.4.20.1.1.7.96.8.130)
(b)GetNextRequest(1.3.6.1.2.1.4.20.1.5.123.45.3.4)
(c)GetNextRequest(ipAdEntBcastAddr. 165.8.9.4)
(d)GetNextRequest(IpAdEntNetMask. 123.45.1.2)
(e) GetNextRequest(1.3.6.1.2.1.4.20.1.2.7.96.8.130)
(f) GetNextRequest(1.3.6.1.2.1.4.20.1.4.123.45.1.2)
(e) GetNextRequest(1.3.6.1.2.1.4.20)
(f) GetNextRequest(1.3.6.1.2.1.4.20.1)
GetNextRequest command

 1. What is the GetResponse instance/value for the command:


 (a)GetNextRequest(1.3.6.1.2.1.4.20.1.1.7.96.8.130)
 GetResponse (1.3.6.1.2.1.4.20.1.1.7.96.8.130=“123.45.1.2)
 (b)GetNextRequest(1.3.6.1.2.1.4.20.1.5.123.45.3.4)
 GetResponse(1.3.6.1.2.1.4.20.1.5.123.45.3.4=“3000”)
 (c)GetNextRequest(ipAdEntBcastAddr. 165.8.9.4)
 GetResponse(ipAdEntBcastAddr. 165.8.9.4=“”) -> the answer inside ipAddressTable (1.3.6.1.2.1.4.21)
 (d)GetNextRequest(IpAdEntNetMask. 123.45.1.2)
 GetResponse(IpAdEntNetMask. 123.45.1.2=“255.255.0.0“)
 (e) GetNextRequest(1.3.6.1.2.1.4.20.1.2.7.96.8.130)
 GetResponse(1.3.6.1.2.1.4.20.1.2.7.96.8.130=“1”)
 (f) GetNextRequest(1.3.6.1.2.1.4.20.1.4.123.45.1.2)
 GetResponse(1.3.6.1.2.1.4.20.1.4.123.45.1.2=“1”)
 (e) GetNextRequest(1.3.6.1.2.1.4.20)
 GetResponse(1.3.6.1.2.1.4.20=“7.96.8.130”)
 (f) GetNextRequest(1.3.6.1.2.1.4.20.1)
 GetResponse(1.3.6.1.2.1.4.20.1 =“7.96.8.130”)
More than 1 index column

Following is a table for ipAddressTable (1.3.6.1.2.1.4.20)


ipAddrEntry (1.3.6.1.2.1.4.20.1)
index column is ipAdEntIfIndex and ipAdEntAddr
ipAdEntI ipAdEntAddr IpAdEntNetMask ipAdEntBca ipAdEntReas
fIndex stAddr mMaxSize
(1) (2) (3) (4) (5)
1 123.45.1.2 255.255.255.0 0 2000
3 123.45.3.4 255.255.0.0 1 4000
2 165.8.9.4 255.255.255.252 1 3000
4 7.96.8.130 255.255.255.192 0 3500
GetRequest command

1. What is the GetResponse instance/value for the command:


(a) GetRequest(1.3.6.1.2.1.4.20.1.3.2.165.8.9.4)
GetResponse(1.3.6.1.2.1.4.20.1.3.2.165.8.9.4 = “255.255.255.252”)
(b)GetRequest(1.3.6.1.2.1.4.20.1.5.3.123.45.3.4)
GetResponse(1.3.6.1.2.1.4.20.1.5.3.123.45.3.4 =“4000”)
(c)GetRequest(ipAdEntBcastAddr. 2.165.8.9.4)
GetResponse(ipAdEntBcastAddr.2.165.8.9.4 =“1”)
(d)GetRequest(IpAdEntNetMask.1.123.45.1.2)
GetResponse(IpAdEntNetMask.1.123.45.1.2=“255.255.255.0”)
(e) GetRequest(1.3.6.1.2.1.4.20)
GetResponse(1.3.6.1.2.1.4.20= invalid / Null)
(f) GetRequest(1.3.6.1.2.1.4.20.1)
GetResponse(1.3.6.1.2.1.4.20.1= invalid / Null)
GetNextRequest

ipAdEntI ipAdEntAddr IpAdEntNetMask ipAdEntBca ipAdEntReas


fIndex stAddr mMaxSize
(1) (2) (3) (4) (5)
1 123.45.1.2 255.255.255.0 0 2000
2 165.8.9.4 255.255.255.252 1 3000
3 123.45.3.4 255.255.0.0 1 4000
4 7.96.8.130 255.255.255.192 0 3500

What is the GetResponse instance/value for the command:


(a) GetNextRequest(1.3.6.1.2.1.4.20.1.3.2.165.8.9.4)
GetResponse(1.3.6.1.2.1.4.20.1.3.2.165.8.9.4 = “255.255.0.0”)
(b)GetNextRequest(1.3.6.1.2.1.4.20.1.5.3.123.45.3.4)
GetResponse(1.3.6.1.2.1.4.20.1.5.3.123.45.3.4 =“3500”)
GetBulkRequest command

• GetBulkRequest (1,2,SysName,ipAdEntNetMask) Variable


in array
Example :
A = 1,2,3
Scalar
variable:
• GetBulkRequest (2,2,SysName, SysID,ipAdEntNetMask) Example:
A=1,
B=2
GetBulkRequest

• Write the Response for the following command:(Note: Value


for SysName =PCI)
• GetBulkRequest (1,1,SysName, ipAdEntReasmMaxSize)
GetResponse((sysName.0=PCI),(2000)
• GetBulkRequest (1,2,SysName, (1.3.6.1.2.1.4.20.1.2.1.
123.45.1.2, ipAdEntReasmMaxSize)
GetResponse((sysName.0=PCI),(“123.45.1.2,2000, 165.8.9.4,3000”)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy