CmdID / aws / aws networkmonitor
aws networkmonitor create-probe
Create a probe within a monitor. AWS CLI reference
2 examples 4 options Its page in the AWS CLI reference
Examples
Example 1: To create a probe that uses TCP and add it to a network monitor
The following create-probe example creates a probe that uses the TCP protocol and adds the probe to a monitor named Example_NetworkMonitor. Once created, the state of the monitor with the probe will be PENDING until the monitor is ACTIVE. This might take several minutes, at which point the state will change to ACTIVE, and you can start viewing CloudWatch metrics.
aws networkmonitor create-probe --monitor-name Example_NetworkMonitor --probe sourceArn=arn:aws:ec2:region:123456789012:subnet/subnet-id,destination=10.0.0.100,destinationPort=80,protocol=TCP,packetSize=56,tags={Name=Probe1}Identify--monitor-nameThe name of the monitor to associated with the probe.--probeDescribes the details of an individual probe for a monitor.Its output
{
"probeId": "probe-12345",
"probeArn": "arn:aws:networkmonitor:region:123456789012:probe/probe-12345",
"destination": "10.0.0.100",
"destinationPort": 80,
"packetSize": 56,
"addressFamily": "IPV4",
"vpcId": "vpc-12345",
"state": "PENDING",
"createdAt": "2024-03-29T12:41:57.314000-04:00",
"modifiedAt": "2024-03-29T12:41:57.314000-04:00",
"tags": {
"Name": "Probe1"
}
}Example 2: To create a probe that uses probe using ICMP and add it to a network monitor
The following create-probe example creates a probe that uses the ICMP protocol and adds the probe to a monitor named Example_NetworkMonitor. Once created, the state of the monitor with the probe will be PENDING until the monitor is ACTIVE. This might take several minutes, at which point the state will change to ACTIVE, and you can start viewing CloudWatch metrics.
aws networkmonitor create-probe --monitor-name Example_NetworkMonitor --probe sourceArn=arn:aws:ec2:region:123456789012:subnet/subnet-id,destination=10.0.0.100,protocol=ICMP,packetSize=56,tags={Name=Probe1}Identify--monitor-nameThe name of the monitor to associated with the probe.--probeDescribes the details of an individual probe for a monitor.Its output
{
"probeId": "probe-12345",
"probeArn": "arn:aws:networkmonitor:region:123456789012:probe/probe-12345",
"destination": "10.0.0.100",
"packetSize": 56,
"addressFamily": "IPV4",
"vpcId": "vpc-12345",
"state": "PENDING",
"createdAt": "2024-03-29T12:44:02.452000-04:00",
"modifiedAt": "2024-03-29T12:44:02.452000-04:00",
"tags": {
"Name": "Probe1"
}
}For more information, see How Amazon CloudWatch Network Monitor Works in the Amazon CloudWatch User Guide.
Options
--client-tokenUnique, case-sensitive identifier to ensure the idempotency of the request.--monitor-nameThe name of the monitor to associated with the probe.--probeDescribes the details of an individual probe for a monitor.--tagsThe list of key-value pairs created and assigned to the probe.